gnu make .LOW_RESOLUTION_TIME (was: Re: build.pl debug=1 for sw and svx

tora - Takamichi Akiyama <[email protected]> Thu, 07 Apr 2011 12:03:37 +0900
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
Sorry again,

I have just come up with a quick solution for the file systems using nanosecond time stamps.

Problem:
make: *** Warning: .LOW_RESOLUTION_TIME file `/xxxxx/solver/300/unxsoli4/inc/svx/sxsoitm.hxx' has a high resolution time stamp

Cause:
"cp -p" does not preserve a nanosecond part of time stamp.
$ echo > x
$ ls -l x
-rw-r--r--   1 tora     users          1 Apr  7 10:32 x
$ ls -E x
-rw-r--r--   1 tora     users          1 2011-04-07 10:32:52.028730567 +0900 x
$ cp -p x y
$ ls -E x y
-rw-r--r--   1 tora     users          1 2011-04-07 10:32:52.028730567 +0900 x
-rw-r--r--   1 tora     users          1 2011-04-07 10:32:52.028730000 +0900 y

http://www.gnu.org/software/make/manual/html_node/Special-Targets.html
http://wiki.services.openoffice.org/wiki/Build_Environment_Effort/Status_And_Next_Steps

Possible Solution:
"touch itself" before "cp -p" to loose a nanosecond part of its time stamp.
Makefile:
========================================
all : target1 target2

target1 : source
	cp -p source target1
	ls -E source target1

target2 : source
	touch -r source source
	cp -p source target2
	ls -E source target2
========================================

outputs:
========================================
$ echo > source
$ make
cp -p source target1
ls -E source target1
-rw-r--r--   1 tora     users          1 2011-04-07 11:50:52.415342276 +0900 source
-rw-r--r--   1 tora     users          1 2011-04-07 11:50:52.415342000 +0900 target1
touch -r source source
cp -p source target2
ls -E source target2
-rw-r--r--   1 tora     users          1 2011-04-07 11:50:52.415342000 +0900 source
-rw-r--r--   1 tora     users          1 2011-04-07 11:50:52.415342000 +0900 target2
========================================

I am trying to apply this type of idea to DEV300_m106 or later.

Best regards,
Tora
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help