bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date broken in coreutils-6.7 and new glibc-2.7


From: Clemens Koller
Subject: date broken in coreutils-6.7 and new glibc-2.7
Date: Wed, 07 Nov 2007 12:20:31 +0100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Hi, there!

I have a problem setting the system date together with the time with
date -s. This happens since I migrated my embedded powerpc system to
the latest glibc-2.7. glibc-2.3.4 was working fine with same kernel.
Since I did a full toolchain bootstrap while upgrading glibc, lots of
stuff has changed.

Conclusion:
1) date -s can only set either the date or the time, but it's clearing the time or the date, then.

2) date -s cannot set both: date und time at once. -> resets to
Thu Jan  1 01:00:00 CET 1970

3) date -u works as expected.

Any ideas? How to debug this?
Please CC me as I'm not subscribed.


Here are some details:

logged in as: root
Last login: Thu Jan  1 01:02:53 1970

address@hidden:~$ date
Thu Jan  1 01:00:00 CET 1970

address@hidden:~$ date -s 20071107
Wed Nov  7 00:00:00 CET 2007

address@hidden:~$ date -s 12:01
Thu Jan  1 12:01:00 CET 1970

address@hidden:~$ date
Thu Jan  1 01:00:00 CET 1970

address@hidden:~$ date -s 20071107
Wed Nov  7 00:00:00 CET 2007

address@hidden:~$ date -s 12:01
Thu Jan  1 12:01:00 CET 1970

address@hidden:~$ date
Thu Jan  1 01:00:00 CET 1970

address@hidden:~$ date -s 20071107
Wed Nov  7 00:00:00 CET 2007

address@hidden:~$ date -s 12:01
Thu Jan  1 12:01:00 CET 1970

address@hidden:~$ date -s 2007-11-07
Wed Nov  7 00:00:00 CET 2007

address@hidden:~$ date
Wed Nov  7 00:00:01 CET 2007

address@hidden:~$ date -u 110711032007.00
Wed Nov  7 11:03:00 UTC 2007

address@hidden:~$ date
Wed Nov  7 12:03:01 CET 2007

address@hidden:~$ date -u 110711042007.00
Wed Nov  7 11:04:00 UTC 2007

address@hidden:~$ date
Wed Nov  7 12:04:01 CET 2007

address@hidden:~$ date
Wed Nov  7 12:04:03 CET 2007

address@hidden:~$ date --version
date (GNU coreutils) 6.9

address@hidden:~$ ld -v
GNU ld (GNU Binutils) 2.18.50.20071019

address@hidden:~$ gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.2.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-shared --disable-nls --with-x=no --with-cpu=8540 --with-tune=8540 --with-float=soft --with-long-double-128 --disable-multilib --enable-e500_double --enable-bootstrap
Thread model: posix
gcc version 4.2.2 (ckcore)

address@hidden:~$ uname -a
Linux fox_1 2.6.22-rc6-gb75ae860 #5 Fri Jun 29 19:58:04 CEST 2007 ppc e500 GNU/Linux

address@hidden:~$ ls -la /lib/libc-*
-rwxr-xr-x 1 root root 1492828 Nov  2 18:18 /lib/libc-2.7.so

address@hidden:~$ ld -v
GNU ld (GNU Binutils) 2.18.50.20071019
(same for binutils-2.18 and other snapshots in between)

Regards,
--
Clemens Koller
__________________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Straße 45/1
Linhof Werksgelände
D-81379 München
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]