Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109556 - Timezone info is out of date in glibc
Summary: Timezone info is out of date in glibc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 68403 94088 109472 110968 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-17 05:04 UTC by Rodrigo Severo
Modified: 2007-05-31 10:54 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the "glibc/timezone" directory to bring it up to date with tzdata and tzcode 2005n (timezone.patch,98.94 KB, patch)
2005-10-17 05:22 UTC, Rodrigo Severo
Details | Diff
Brings "glibc/timezone" up to date (changed orignal and final directories). (timezone-2005n.patch,99.75 KB, patch)
2005-10-17 07:48 UTC, Rodrigo Severo
Details | Diff
tzdata.tar.bz2 (tzdata.tar.bz2,2.17 KB, application/octet-stream)
2005-10-17 17:51 UTC, SpanKY
Details
The tz ebuild with a few modifications. (tz.tar.bz2,2.45 KB, application/octet-stream)
2005-10-18 07:47 UTC, Rodrigo Severo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Severo 2005-10-17 05:04:47 UTC
I am filing this bug report as a more compreensive version of bug #109472.

All timezone info present in "glibc-2.3.5/timezone" is out of date. The info
there has been extracted from tzdata2005h.tar.gz and tzcode2005h.tar.gz. Current
versions are tzdata2005n.tar.gz and tzcode2005n.tar.gz.

Please update these info as each release of tzdata and tzcode present updates
for several different timezones in the world.

Here is a copy of a portion of the README file inside "glibc-2.3.5/timezone"
that will help you updating the proper files:

------------------------------------------------------------
The files
        zic.c zdump.c ialloc.c scheck.c tzfile.h
        private.h tzselect.ksh checktab.awk
come from the tzcode package by Arthur David Olson et.al.

The files
        africa antarctica asia australasia europe
        northamerica southamerica pacificnew etcetera factory
        backward systemv solar87 solar88 solar89
        iso3166.tab zone.tab leapseconds yearistype
come from the tzdata package by Arthur David Olson et.al.
------------------------------------------------------------

My intention is to file a bug for each tzdata and tzcode released for now on
(I'm subscribed to the tz mailing list). I don't think there should be a new
glibc ebuild for each tzdata release. The tzdata releases much more often than
Gentoo should release glibc's ebuilds. My intention is just to guarantee that
each glibc ebuild has the must up to date timezone info available. I mean,
please keep the same schedule of glibc's ebuilds. Just get the more up to date
tzdata and tzcode available at the time release. This is my idea.

I am not sure the toolchain mantainers are interested in these bug reports.
Please advise.
Comment 1 Rodrigo Severo 2005-10-17 05:07:17 UTC
*** Bug 109472 has been marked as a duplicate of this bug. ***
Comment 2 Rodrigo Severo 2005-10-17 05:22:15 UTC
Created attachment 70840 [details, diff]
Patch for the "glibc/timezone" directory to bring it up to date with tzdata and tzcode 2005n

Here is a patch to the "glibc/timezone" directory to bring it up to date.

If you are interested, I can prepare a similar patch for each tz release.

This patch used glibc-2.3.5-r2 ebuild as it's starting point.
Comment 3 Rodrigo Severo 2005-10-17 07:48:21 UTC
Created attachment 70850 [details, diff]
Brings "glibc/timezone" up to date (changed orignal and final directories).

I've only changed the original and final directories of the diff command. The
real content is the same.

I believe it will be easier to apply the patch the way it is now.
Comment 4 SpanKY gentoo-dev 2005-10-17 15:15:19 UTC
Comment on attachment 70850 [details, diff]
Brings "glibc/timezone" up to date (changed orignal and final directories).

we're going to go the route that fedora is using at the moment ... that is,
we're going to break the timezone out into a sep package since it really is an
external package from glibc
Comment 5 Rodrigo Severo 2005-10-17 16:02:31 UTC
Great idea. Any release dates?

Please let me know if I can help.
Comment 6 SpanKY gentoo-dev 2005-10-17 17:51:19 UTC
Created attachment 70894 [details]
tzdata.tar.bz2

give this a try ... it'll overwrite your glibc zoneinfo files, but that's ok as
long as you dont unmerge the package ;)
Comment 7 Rodrigo Severo 2005-10-18 07:47:47 UTC
Created attachment 70942 [details]
The tz ebuild with a few modifications.

I am sending the tz ebuild with a few modifications:

1. changed name. I don't think neither tzdata nor tzcode are good names as this
ebuild effectivelly installs both. I am proposing simply tz. I think tzlib is
another good option. There might be other options. Please don't name it tzdata
nor tzcode.

2. modified patch. The prior patch didn't install the "right" timezones. That's
not glibc's behaviour.

3. modified ebuild. Included ~x86 in KEYWORDS.

This version is installed in my system and it seems to be ok.
Comment 8 SpanKY gentoo-dev 2005-10-18 15:56:49 UTC
> 1. changed name. I don't think neither tzdata nor tzcode are good names as

reason to go with tzdata is that is what Fedora uses

> 2. modified patch. The prior patch didn't install the "right" timezones.

sounds good
Comment 9 Rodrigo Severo 2005-10-18 17:12:24 UTC
> reason to go with tzdata is that is what Fedora uses

Well, I can't tell why Fedora named it tzdata but please don't do it in Gentoo.
Either tzdata or tzcode would be misleading names.
Comment 10 SpanKY gentoo-dev 2005-10-18 17:18:22 UTC
maybe, but 'tz' is just obscure while 'libtz' doesnt apply since we dont install
libtz

'timezone' or 'zoneinfo' might be ok
Comment 11 Rodrigo Severo 2005-10-19 02:29:09 UTC
> maybe, but 'tz' is just obscure while 'libtz' doesnt apply since we dont install
libtz

I agree.

> 'timezone' or 'zoneinfo' might be ok

I see the point of both. I vote for 'timezone' as it seems more descriptive.

What will be the relation between 'glibc' and 'timezone' ebuilds? Should 'glibc'
have a PDEPEND on 'timezone'?
Comment 12 SpanKY gentoo-dev 2005-10-19 06:19:22 UTC
glibc will probably DEPEND/RDEPEND on this package
Comment 13 Rodrigo Severo 2005-10-19 07:54:19 UTC
I believe glibc can't DEPEND on this package (timezone?) as it would make
timezone be installed before glibc.

I am not sure about the behaviour of RDEPENDs. Do they get installed after the
main package?

Anyway I believe they better relation would be PDEPEND. glibc doesn't depends on
timezone to run (which is the meaning of RDEPEND as I far as I can understand).
timezone should be installed after glibc is installed (which is the precise
meaning of PDEPEND as I understand it).

BTW, to minimize the chances of unexpected behaviours, I believe that there
should be added a comment (or warning) at the end of glibc installation stating
that after an upgrade of glibc timezone should be reemerged to guarantee that
the timezone info is properlly updated. Otherwise the user would get old
timezone info (the one available in glibc) until there is another timezone
package. The text could be something like:

"Upgrading sys-libs/glibc usually downgrades timezone info. Please (re)emerge
sys-libs/timezone."
Comment 14 SpanKY gentoo-dev 2005-10-19 08:32:55 UTC
*** Bug 94088 has been marked as a duplicate of this bug. ***
Comment 15 SpanKY gentoo-dev 2005-10-19 08:33:14 UTC
*** Bug 68403 has been marked as a duplicate of this bug. ***
Comment 16 SpanKY gentoo-dev 2005-10-26 18:07:21 UTC
glibc-2.3.5-r3 and timezone-data now in portage
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2005-10-30 23:00:57 UTC
*** Bug 110968 has been marked as a duplicate of this bug. ***
Comment 18 Grant Slater 2006-03-02 02:37:42 UTC
Reminder: Summer time in 2006 Australia is incorrect, without this timezone-data. Incorrectly changes on 26 March 2006, URGENT?

The change effects Melbourne, Sydney, Adelaide, Hobart and related zones.

Info:
http://www.lawlink.nsw.gov.au/lawlink/Corporate/ll_agdinfo.nsf/pages/community_relations_daylight_saving

zdump -v /usr/share/zoneinfo/Australia/Adelaide  |grep "2006"

The output should contain "Sun Apr  2" not "Sun Mar 26"
Comment 19 SpanKY gentoo-dev 2006-03-02 06:45:18 UTC
wrong forum for such concerns

e-mail tz@elsie.nci.nih.gov
Comment 20 Grant Slater 2006-03-02 07:40:25 UTC
Sorry for the confusion, the timezone data supplied by sys-libs/timezone-data-2006b (and upstream) is correct for Australia.

The problem: STABLE series of gentoo's glibc does NOT install timezone-data AND does not have a correct timezone data for Australia.

So unless Australians install the (currently) unstable timezone-data, their time will be wrong for a week from Sunday March 26th. I believe this matter may need urgent attention. (else end-user headaches)

The timezone data for Australia has been fixed in Fedora and Ubuntu. And Windows via hotfix. :-)