[tz] zic changes (2/2)

Aurelien Jarno aurelien at aurel32.net
Mon Mar 7 16:50:56 UTC 2016


On 2016-03-06 16:24, Paul Eggert wrote:
> On Wed, 2 Mar 2016 23:41:22 +0100 Aurelien Jarno wrote:
> 
> >It happens that this patch causes the generated zoneinfo files to not
> >behave correctly wrt daylight saving time on 32-bit machines. On 64-bit
> >machines or before this patch one get:
> >
> >   $ TZ=PST+8PDT date --date=@1152995400
> >   Sat Jul 15 13:30:00 PDT 2006
> >
> >With this patch on 32-bit machines, one get:
> >
> >   $ TZ=PST+8PDT date --date=@1152995400
> >   Sat Jul 15 12:30:00 PST 2006
> >
> >As you can see the daylight saving time is not applied.
> 
> I reproduced this problem on Fedora 23 x86 with glibc 2.22-11.fc23, by
> building tzcode as follows:
> 
> $ make clean
> $ make CFLAGS='-m32' DATEOBJS=date.o date
> $ TZ=PST+8PDT ./date -r 1152995400 +'%Y-%m-%d %H:%M:%S %z %Z'
> 2006-07-15 12:30:00 -0800 PST
> 
> However, if I use GNU glibc built from git (sourceware.org commit
> 4e940b2f4b577f3a530e0580373f7c2d569f4d63, configured with
> '../glibc/configure CC=gcc -m32 --build=i486-pc-linux-gnu
> --prefix=/tmp/prefix') the problem goes away:
> 
> $ make clean
> $ make CFLAGS='-m32 -Wl,--rpath=/tmp/prefix/lib
> -Wl,--dynamic-linker=/tmp/prefix/lib/ld-linux.so.2' DATEOBJS=date.o date
> $ TZ=PST+8PDT ./date -r 1152995400 +'%Y-%m-%d %H:%M:%S %z %Z'
> 2006-07-15 13:30:00 -0700 PDT

Are you sure you have the posixrules file installed in
/tmp/prefix/zoneinfo/posixrules? I don't observe the problem on my
system when posixrules is not installed.

> >This is reproducible with
> >GNU libc from git as the date of today.
> 
> Which glibc commit were you using? Does it contain any patches compared to
> upstream glibc?

I have just redone a test just now, I still have an issue with upstream
commit 9ff72da471a509a8c19791efe469f47fa6977410. This is without any
additional patch.

> I assume your commit contain the fix for glibc bug 19253. This was fixed in
> commit c83196b0df4340209f260ffaf90e787c711c268e in November. This issue
> seems to be on point. See:
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=19253
> 
> Does the problem go away if you revert commit
> c83196b0df4340209f260ffaf90e787c711c268e?

Reverting this commit doesn't change anything.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien at aurel32.net                 http://www.aurel32.net


More information about the tz mailing list