Your message dated Mon, 13 Jan 2025 23:09:06 +0000
with message-id <e1txtyq-00hoxj...@fasolo.debian.org>
and subject line Bug#848143: fixed in tzdata 2024b-6
has caused the Debian Bug report #848143,
regarding No non-systemd way of programmatically changing the timezone without 
re-doing what tzdata does
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
848143: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848143
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: tzdata
Version: 2016a-1
Severity: minor

The fix for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803144
<https://www.google.com/url?q=https://bugs.debian.org/cgi-bin/bugreport.cgi?bug%3D803144&sa=D&usg=AFQjCNFpL_n8tg3iXyS6B09KW1sWkMLIcQ>
means
that it's no longer possible to change the timezone without user
interaction unless one does what tzdata is already doing.

In the past, it was possible to replace the contents of /etc/timezone, run
dpkg-reconfigure tzdata and have the system update it's timezone without
any user interaction.  This is particularly handy when combined with DHCP
servers that serve the timezone information.

However, since the move to the symlink instead of a file, this is no longer
possible.  This is caused by this snippet in tzdata's config file:

https://sources.debian.net/src/tzdata/2016j-2/debian/tzdata.config/#L332
# If /etc/localtime is a link, update /etc/timezone
if [ -L /etc/localtime ] ; then
    TIMEZONE="$(readlink /etc/localtime)"
    TIMEZONE="${TIMEZONE#/usr/share/zoneinfo/}"
    if [ -f "/usr/share/zoneinfo/$TIMEZONE" ] ; then
        echo ${TIMEZONE} > /etc/timezone
    fi
fi

# Read /etc/timezone
if [ -e /etc/timezone ]; then
    TIMEZONE="$(head -n 1 /etc/timezone)"
    TIMEZONE="${TIMEZONE%% *}"
    TIMEZONE="${TIMEZONE##/}"
    TIMEZONE="${TIMEZONE%%/}"
    TIMEZONE="$(convert_timezone $TIMEZONE)"
    if [ -f "/usr/share/zoneinfo/$TIMEZONE" ] ; then
        AREA="${TIMEZONE%%/*}"
        ZONE="${TIMEZONE#*/}"
    else
        rm -f /etc/timezone
    fi
fi

Which means that the symlink takes precedence over the file.  In the end,
in order to make a programmatical change, I would need to re do what tzdata
does regarding translating the string into a symlink (fixing the timezone
along the way), which means unnecessary code duplication.

Some possibilities to change this:
A) Remove the symlink reading code from the config (or only use it if the
/etc/timezone file is missing)
B) Provide a separate tool that takes a string and does what tzdata maint
scripts do (convert the timezone, split it, update the symlink, etc).

For systemd systems, it's possible to do:
timedatectl set-timezone <timezone>

However, for non systemd systems, this is now impossible.

Thanks!
-- 
Cheers,
Marga

--- End Message ---
--- Begin Message ---
Source: tzdata
Source-Version: 2024b-6
Done: Aurelien Jarno <aure...@debian.org>

We believe that the bug you reported is fixed in the latest version of
tzdata, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 848...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aure...@debian.org> (supplier of updated tzdata package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 13 Jan 2025 23:41:11 +0100
Source: tzdata
Architecture: source
Version: 2024b-6
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Aurelien Jarno <aure...@debian.org>
Closes: 498171 602563 848143
Changes:
 tzdata (2024b-6) unstable; urgency=medium
 .
   * Update debconf autopkgtest following the /etc/timezone change
   * Rework README.Debian. Explain how timezone are named, the split between
     the tzdata and tzdata-legacy packages, the difference between the 'posix'
     and 'right' version and the way to configure the timezone either
     interactively and programmatically (with and without systemd).
     (Closes: #498171, #602563, #848143)
   * Add a note in NEWS about the /etc/timezone deprecation
Checksums-Sha1:
 43b66789b5a16b920e546b19b25a79db47456589 2429 tzdata_2024b-6.dsc
 ddc6294aa56cadb078b5baa2a10dc2928258b9bc 125656 tzdata_2024b-6.debian.tar.xz
 e8e9da85b479d2df909aad357580e2ab0af40df2 5462 tzdata_2024b-6_source.buildinfo
Checksums-Sha256:
 d35ce4bf22e2dd9cddf220a8c65ee8d56aef0554845bd2bf3e9b891e117a4ec7 2429 
tzdata_2024b-6.dsc
 da652e7b9e2d5c2557b4eb7d3c5b2711b40a0311dcfda735a76f0e5298a46e68 125656 
tzdata_2024b-6.debian.tar.xz
 ea1f027f7deb86d74da541f03bab576d33269cc447f9a388252d1bf2df0f5989 5462 
tzdata_2024b-6_source.buildinfo
Files:
 7b801b85f88d779695f5dc5b5831f289 2429 localization required tzdata_2024b-6.dsc
 ef9c3d843fdc5e622e1990b51b62b17f 125656 localization required 
tzdata_2024b-6.debian.tar.xz
 ad9fe535f35b00ffdfa4ae4eb06e05e4 5462 localization required 
tzdata_2024b-6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAmeFmOcACgkQE4jA+Jno
M2tvDQ//YZurx1Ri0zLar8oZjhrTdS8IEIfXnODqfNNptwuqZxqReC1Nnjd2y4IJ
JW2+N9CWLuRgfrXF2CA+sILzh56NrKbsjHKNBexdFAriufAmtJy4imPdd5j6L57F
0CIxRA7lBCGKxSE90tSv5wWZ+/oHP0HTTjs5spPLUHYD8udJE7mC/eSAPnWf+Amr
mwrac2o7fWnCu2x2phrS8kKHv8P2fxchWMQoBp/hG4+pL4uz1U8n/Jd1UqVqNKWT
hBtiPbYeJA2vHHPcg4Hr8bMnWdoVEu6q2Tst9EflxEsSNR8MJaNVKLt0xS0c3XX3
QvhpWZqKH94SUDvGHEXAqNSpzgs9j/v2G4df6MIOiC6dYRoVtCXT9a0NxGfX04pV
D94DioHpNaqp+E9p/mlk/QDRIg8nOkoo4NtbSAqGT80GiD8SP1DFU8YbcWrJ0Ukm
1cLvbYRPv4a5cv8gJEo/jAfJHV53/f2q6kBmh8y69V4sPSz6YC0U4OB97ClWQMF5
cVaXOlBYe4GaRxZWbYu8CivJcRcnYXlmtK+/kA5TrVcUPp91x9PBe00BRL9iGWqM
OYpoWS75M24DvP2vhBYdQ9rtbzgxGlFLtG03JJOqkCDeJX1V+jc2W9bcW5mTQKG4
YIinYwNoKVgWlmqBu5joxyR2PPY2wf5mag9SjjrIwGDydvPRrM4=
=7rQ3
-----END PGP SIGNATURE-----

Attachment: pgpT9DCLaFXrZ.pgp
Description: PGP signature


--- End Message ---

Reply via email to