[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1036104: tzdata.zi has a typo in the backported Egypt DST rules



Package: tzdata
Version: 2021a-1+deb11u10
Severity: important
Tags: patch
X-Debbugs-Cc: debian@kayari.org

Dear Maintainer,

   * What led up to the situation?

GCC 13 uses the /usr/share/zoneinfo/tzdata.zi file to implement support for
the C++20 time zone library.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Basic use of std::chrono::tzdb with GCC 13 fails on Debian stable, because
the tzdata.zi file cannot be parsed, and so only UTC time zones are
supported.

I originally filed this upstream:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109857
Further investigation revealed it's a Debian-specific bug in the tzdata.zi
file.

   * What was the outcome of this action?

Attempting to use any non-UTC time zone in C++ programs will fail.

   * What outcome did you expect instead?

The tzdata.zi file should be valid according to the zic(8) man page.
Specifically:

   The fields that make up a rule line are:
   [...]
   TO      Gives the final year in which the rule applies.  In addition
   to minimum and maximum (as above), the word only (or an abbreviation)
   may be used to repeat the value of the FROM field.

The tzdata-2021a-1+deb11u10 package contains a backport of the Egypt DST
changes from this commit:
https://github.com/eggert/tz/commit/dcd8cbed23201416cbd3bbf43f669737693282d7

However that has a typo, which was fixed by this commit, which is not
present in the Debian package:
https://github.com/eggert/tz/commit/af242d11b62584808a66851b8707148bf1ee8d0a

Please backport the typo fix.


-- System Information:
Debian Release: 11.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.2.14-200.fc37.x86_64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages tzdata depends on:
ii  debconf [debconf-2.0]  1.5.77

tzdata recommends no packages.

tzdata suggests no packages.

-- debconf information:
  tzdata/Zones/America:
  tzdata/Zones/Asia:
* tzdata/Areas: Etc
  tzdata/Zones/Africa:
  tzdata/Zones/Pacific:
  tzdata/Zones/Indian:
  tzdata/Zones/US:
  tzdata/Zones/Arctic:
* tzdata/Zones/Etc: UTC
  tzdata/Zones/Australia:
  tzdata/Zones/Europe:
  tzdata/Zones/Antarctica:
  tzdata/Zones/Atlantic:


Reply to: