Bug 46672 - Удаление zone.tab сломало многие программы
Summary: Удаление zone.tab сломало многие программы
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: tzdata (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 47375
  Show dependency tree
 
Reported: 2023-06-27 17:12 MSK by Владимир Диденко
Modified: 2023-08-29 00:15 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Владимир Диденко 2023-06-27 17:12:09 MSK
Вешаю пока на gnome-control-center, так как времени разбираться в деталях сейчас нет.

Описание проблемы. 

В последней версии пакета tzdata ldv@ убрал упаковку файла zone.tab и это изменение поломало мне гном - gnome-calendar стал неправильно показывать время событий, а gnome-control-center просто падает при попытке зайти в настройки даты/времени. Пока ручками себе создал zone.tab, но нужно, видимо, переходить на zone1970.tab.
Comment 1 Yuri N. Sedunov 2023-06-27 17:40:11 MSK
Cломались все, -- icu, libical. Дешевле вернуть zone.tab.
Comment 2 Владимир Диденко 2023-06-27 18:03:13 MSK
Тогда на tzdata перевешиваю
Comment 3 Dmitry V. Levin 2023-06-27 18:10:23 MSK
Попробуйте, пожалуйста, отрепортить в апстрим, что пора переходить на zone1970.tab - может быть, у них есть план.  Возможно, нам придётся отказаться от zone.tab в любом случае по нетехническим причинам.
Comment 4 Yuri N. Sedunov 2023-06-27 18:52:17 MSK
Обоснование перехода и технические подробности, чтоб что-то там репортить апстримам мне не ведомы.

А вот, g-c-c из этого задания

[#323803] TESTED srpm=gnome-control-center-44.2-alt2.src.rpm

прикидывается рабочим, после простой замены zone.tab -> zone1970.tab

--- panels/datetime/tz.h~	2023-06-27 18:41:21.197260155 +0300
+++ panels/datetime/tz.h	2023-06-27 18:07:30.013533043 +0300
@@ -28,7 +28,7 @@
 G_BEGIN_DECLS
 
 #ifndef __sun
-#  define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
+#  define TZ_DATA_FILE "/usr/share/zoneinfo/zone1970.tab"
 #else
 #  define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab"
 #endif
Comment 5 Dmitry V. Levin 2023-06-27 19:07:06 MSK
(In reply to Yuri N. Sedunov from comment #4)
> Обоснование перехода и технические подробности, чтоб что-то там репортить
> апстримам мне не ведомы.

$ sed '/^#country-/,$d' zone.tab
# tzdb timezone descriptions (deprecated version)
#
# This file is in the public domain, so clarified as of
# 2009-05-17 by Arthur David Olson.
#
# From Paul Eggert (2021-09-20):
# This file is intended as a backward-compatibility aid for older programs.
# New programs should use zone1970.tab.  This file is like zone1970.tab (see
# zone1970.tab's comments), but with the following additional restrictions:
#
# 1.  This file contains only ASCII characters.
# 2.  The first data column contains exactly one country code.
#
# Because of (2), each row stands for an area that is the intersection
# of a region identified by a country code and of a timezone where civil
# clocks have agreed since 1970; this is a narrower definition than
# that of zone1970.tab.
#
# Unlike zone1970.tab, a row's third column can be a Link from
# 'backward' instead of a Zone.
#
# This table is intended as an aid for users, to help them select timezones
# appropriate for their practical needs.  It is not intended to take or
# endorse any position on legal or territorial claims.
#