Bug#689315: zic: creates dangling symlink for /etc/localtime

2012-10-26 Thread Aurelien Jarno
Le 01/10/2012 16:18, John Paul Adrian Glaubitz a écrit :
 Package: libc-bin
 Version: 2.13-35
 Severity: important
 
 Hello,
 
 the version of 'zic' in 'libc-bin' in Debian Wheezy seems to no
 longer creates the localtime conversion file correctly.
 
 On Debian Squeeze:
 
 root@squeeze32:~ zic -l Europe/Berlin
 root@squeeze32:~ file /etc/localtime
 /etc/localtime: timezone data, version 2, 8 gmt time flags, 8 std time flags, 
 no leap seconds, 144 transition times, 8 abbreviation chars
 
 On Debian Wheezy:
 
 root@wheezy32:~ zic -l Europe/Berlin
 root@wheezy32:~ file /etc/localtime
 /etc/localtime: broken symbolic link to `../posix/Europe/Berlin'
 
 zic obviously tries to create a symbolic link to the correct timezone
 conversion file. Alas, the symbolic link created is relative and
 the source directory is obviously a subdirectory of /usr/share/zoneinfo
 while the localtime conversion file is saved as /etc/localtime, hence
 a dangling symbolic link is created.
 

I am not able to reproduce this issue. Are you sure that /etc/localtime
was not a broken symlink already before running the zic command?

Aurelien

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#689315: zic: creates dangling symlink for /etc/localtime

2012-10-26 Thread John Paul Adrian Glaubitz
On Fri, Oct 26, 2012 at 10:11:45AM +0200, Aurelien Jarno wrote:
 I am not able to reproduce this issue. Are you sure that /etc/localtime
 was not a broken symlink already before running the zic command?

Interesting, I cannot reproduce the issue anymore either and I am
pretty sure it occurred the way I described it. Strangely, there has
been no updated to libc-bin ever since, so this cannot be a bug in
zic.

However, tzdata has been recently upgraded. I don't know, but maybe
it's somehow related?

In any case, I can remove the local workaround here and close the bug.

Adrian


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#689315: zic: creates dangling symlink for /etc/localtime

2012-10-01 Thread John Paul Adrian Glaubitz
Package: libc-bin
Version: 2.13-35
Severity: important

Hello,

the version of 'zic' in 'libc-bin' in Debian Wheezy seems to no
longer creates the localtime conversion file correctly.

On Debian Squeeze:

root@squeeze32:~ zic -l Europe/Berlin
root@squeeze32:~ file /etc/localtime
/etc/localtime: timezone data, version 2, 8 gmt time flags, 8 std time flags, 
no leap seconds, 144 transition times, 8 abbreviation chars

On Debian Wheezy:

root@wheezy32:~ zic -l Europe/Berlin
root@wheezy32:~ file /etc/localtime
/etc/localtime: broken symbolic link to `../posix/Europe/Berlin'

zic obviously tries to create a symbolic link to the correct timezone
conversion file. Alas, the symbolic link created is relative and
the source directory is obviously a subdirectory of /usr/share/zoneinfo
while the localtime conversion file is saved as /etc/localtime, hence
a dangling symbolic link is created.

Cheers,

Adrian

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org