Drop /usr/share/zoneinfo/posix and move /usr/share/zoneinfo/right into tzdata-legacy

Bug #2008076 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chrony (Ubuntu)
Fix Released
Low
Unassigned
moment-timezone.js (Ubuntu)
Fix Released
Low
Unassigned
rdate (Ubuntu)
Fix Released
Low
Unassigned
tzdata (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

The tzdata package ships /usr/share/zoneinfo/posix/ (for Coordinated Universal Time) and /usr/share/zoneinfo/right/ (for International Atomic Time). The files in /usr/share/zoneinfo/posix/ are identical to their counterpart in /usr/share/zoneinfo/. The tzdata package converts the
configured posix/* and right/* timezones to their unprefixed variant on every package upgrade (e.g. it changes "posix/Europe/Berlin" to "Europe/Berlin").

Drop /usr/share/zoneinfo/right from tzdata and move /usr/share/zoneinfo/right into separate tzdata-legacy package.

ubuntu-devel discussion: https://lists.ubuntu.com/archives/ubuntu-devel/2023-January/042405.html

Two packages need to be adjusted:

* chrony: reads /usr/share/zoneinfo/right/UTC for leap seconds
* moment-timezone.js: uses /usr/share/zoneinfo/posix/ in debian/rules
* rdate: reads /usr/share/zoneinfo/right/UTC -> depend on tzdata-legacy

Following packages were checked and do not need to be touched:

Only in source code documentation and/or tests suite:

* mariadb
* mariadb-10.6

Copies of tz soure code:

* rust-chrono-tz (in tz)
* udm (in tzdatabase)
* r-cran-tzdb (in inst/tzdata)
* pike8.0 (in lib/modules/Calendar.pmod/tzdata)

Referencing only /usr/share/zoneinfo/posixrules:

* manpages-l10n
* libdatetime-timezone-perl
* asterisk
* mozjs102
* mozjs78
* thunderbird

Benjamin Drung (bdrung)
description: updated
Benjamin Drung (bdrung)
description: updated
Benjamin Drung (bdrung)
Changed in tzdata (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
Changed in rdate (Ubuntu):
importance: Undecided → Low
Changed in moment-timezone.js (Ubuntu):
importance: Undecided → Low
Benjamin Drung (bdrung)
summary: Drop /usr/share/zoneinfo/posix and move /usr/share/zoneinfo/right into
- tzdata-right
+ tzdata-legacy
description: updated
Benjamin Drung (bdrung)
Changed in chrony (Ubuntu):
importance: Undecided → Low
Changed in rdate (Ubuntu):
status: New → Fix Committed
Changed in moment-timezone.js (Ubuntu):
status: New → Fix Committed
Changed in chrony (Ubuntu):
status: New → Fix Committed
Revision history for this message
Vincent Blut (vinceb) wrote :

Hi Benjamin,

chrony reads "/usr/share/zoneinfo/right/UTC" to determine when will the next leap second occur and what is the current offset between TAI and UTC. So I’ll have to add "tzdata-legacy" to the list of dependencies.

Cheers,
Vincent

Revision history for this message
Benjamin Drung (bdrung) wrote :

Hi Vincent, I uploaded chrony 4.3-1ubuntu3 to add the tzdata-legacy a few hours ago.

Note: The leap seconds can also be read from /usr/share/zoneinfo/leap-seconds.list

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package chrony - 4.3-1ubuntu4

---------------
chrony (4.3-1ubuntu4) lunar; urgency=medium

  * Let upstream-simulation-test-suite depend on tzdata-legacy as well
    (LP: #2008076)

chrony (4.3-1ubuntu3) lunar; urgency=medium

  * Depend on tzdata-legacy for reading leapsectz from
    /usr/share/zoneinfo/right/UTC (LP: #2008076)

 -- Benjamin Drung <email address hidden> Wed, 15 Mar 2023 15:42:10 +0100

Changed in chrony (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tzdata - 2022g-7ubuntu2

---------------
tzdata (2022g-7ubuntu2) lunar; urgency=medium

  * Merge with Debian experimental. Remaining changes:
    - Ship ICU 2022g timezone data which are utilized by PHP in tzdata-icu
    - Do not rename NEWS into changelog.gz, this fixes a build failure on
      moment-timezone.js
    - Point Vcs-Browser/Git to Launchpad
  * Rename new tzdata-right package to tzdata-legacy

tzdata (2022g-7exp1) experimental; urgency=medium

  * Drop /usr/share/zoneinfo/posix (identical to /usr/share/zoneinfo)
    (LP: #2008076)
  * Split right/* timezones into separate tzdata-legacy package (LP: #2008076)

 -- Benjamin Drung <email address hidden> Mon, 13 Mar 2023 15:45:25 +0100

Changed in tzdata (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rdate - 1:1.11-3ubuntu1

---------------
rdate (1:1.11-3ubuntu1) lunar; urgency=medium

  * Depend on tzdata-legacy for reading /usr/share/zoneinfo/right/UTC
    (LP: #2008076)

 -- Benjamin Drung <email address hidden> Wed, 15 Mar 2023 08:54:23 +0100

Changed in rdate (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package moment-timezone.js - 0.5.40+dfsg-2~ubuntu2+2022g

---------------
moment-timezone.js (0.5.40+dfsg-2~ubuntu2+2022g) lunar; urgency=medium

  * Use files from /usr/share/zoneinfo instead of /usr/share/zoneinfo/posix
    for building (LP: #2008076)

 -- Benjamin Drung <email address hidden> Wed, 15 Mar 2023 10:29:04 +0100

Changed in moment-timezone.js (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.