Bug#1038841: libsys-info-driver-linux-perl: transition from /etc/timezone to /etc/localtime

gregor herrmann gregoa at debian.org
Fri Jun 23 16:47:10 BST 2023


On Wed, 21 Jun 2023 23:16:58 +0100, bluca at debian.org wrote:

> libsys-info-driver-linux-perl is currently referencing /etc/timezone
> without support for /etc/localtime. /etc/timezone is a legacy
> interface that is Debian specific. The cross-distro standard
> /etc/localtime (as a symlink to the appropriate timezone file), so
> please switch your package to /etc/localtime. tzsetup will stop
> creating /etc/timezone soon.

/etc/localtime is a _text_ file, containing the name of the timezone;
/etc/timezone is a symlink to the corresponding _binary_ timezone
file.

The code in lib/Sys/Info/Driver/Linux/OS.pm just reads the text from
/etc/localtime currently; replacing it with /etc/localtime therefore
won't work.

Is there any facility to get the name of the timezone out of
/etc/localtime (short of following the symlink and mangling the
target file name)?


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20230623/730c2018/attachment.sig>


More information about the pkg-perl-maintainers mailing list