Nanosecond timestamp truncated to 000000000, breaks build scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
New
|
Undecided
|
Unassigned |
Bug Description
1). Short description:
The ext4 nanosecond timestamp on the Makefile generated by configure is truncated to 000000000 on my ecryptfs filesystem. This causes the Makefile to appear newer than the configure script, which means that the Makefile is generated twice (once during the first call to ./configure, and once again during make). This breaks some build wrapper scripts, like crosstool-ng (http://
2). Environment:
Fresh install of Ubuntu 10.10.
$ uname -a
Linux XXX 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 10:18:49 UTC 2010 i686 GNU/Linux
Home partition mounted with ecryptfs, as configured by the Ubuntu installer:
$ mount | grep ecryptfs
/home/XXX/.Private on /home/XXX type ecryptfs (ecryptfs_
3). How to reproduce the bug
Download and expand the sourcecode for binutils-2.19.1 from http://
$ cd /home/XXX
$ tar jxvf binutils-
$ cd /tmp/YYY
$ tar jxvf binutils-
Configure and generate the libiberty Makefile, first on ecryptfs:
$ cd /home/XXX/
$ ./configure
$ make maybe-configure
Now do the same on the regular (non-ecryptfts) partition:
$ cd /tmp/YYY/
$ ./configure
$ make maybe-configure
Look at the timestamps on the ecryptfs partition, in particular notice that the timestamp for the Makefile is truncated, and appears newer than the timestamp for config.status (which causes the Makefile to be re-generated later, and breaks the patch):
$ ls -l --full-time /home/XXX/
-rwxr-xr-x 1 XXX XXX 49031 2010-12-04 21:09:31.487142002 -0800 libiberty/
-rw-r--r-- 1 XXX XXX 42846 2010-12-04 21:09:31.000000000 -0800 libiberty/Makefile
In contrast, the timestamps on the regular (non-ecryptfs partition) are as expected, where Makefile is older than config.status:
$ ls -l --full-time /tmp/YYY/
-rwxr-xr-x 1 XXX XXX 49004 2010-12-04 21:10:29.875142002 -0800 libiberty/
-rw-r--r-- 1 XXX XXX 42846 2010-12-04 21:10:30.031142002 -0800 libiberty/Makefile