Author d.amian
Recipients d.amian, eric.araujo, jsjgruber, tarek
Date 2011-11-18.13:53:54
SpamBayes Score 8.76979e-11
Marked as misclassified No
Message-id <>
sorry, I didn't explain well.
I've a project, in the file, I've a function called update_prefix, that updates the 'path_project' variable with prefix arguments from
If you runs with --prefix=/usr, then the file in 'projectname/' is modified changing the 'path_project' variable from @PREFIX@+"share/projectname" to '/usr/share/projectname'.
If you runs without prefix arguments, the prefix is '/usr/local'.

Debuild which is the tool used to build debian package, in this case using CDBS, gives this output:
it first runs:
python build \
running build
running build_py
creating /tmp/buildd/pdal2-0.3.1/build
creating /tmp/buildd/pdal2-0.3.1/build/lib.linux-i686-2.7
creating /tmp/buildd/pdal2-0.3.1/build/lib.linux-i686-2.7/pdal
copying pdal/ -> /tmp/buildd/pdal2-0.3.1/./build/lib.linux-i686-2.7/pdal
copying pdal/ -> /tmp/buildd/pdal2-0.3.1/./build/lib.linux-i686-2.7/pdal
then it runs:
cd . && \
		python install \
		--root="/tmp/buildd/pdal2-0.3.1/debian/pdal2/" \
		--install-purelib=/usr/lib/python2.7/site-packages/ \
		--prefix=/usr --no-compile -O0 --install-layout=deb 
running install
running build
running build_py
running build_scripts

It doesn't copy pdal/ becouse the file in /tmp/buildd/pdal2-0.3.1/./build/lib.linux-i686-2.7/pdal have the same st_mtime in seconds than pdal/, but if you see de st_mtime, both are different in millisec and the file is different.

 File: «pdal/»
Modify: 2011-11-16 11:55:52.665727826 +0100

File: «/tmp/buildd/pdal2-0.3.1/./build/lib.linux-i686-2.7/pdal/»
Modify: 2011-11-16 11:55:52.000000000 +0100

but if you print the st_mtime of both files within newer() function you can check the file's timestamp are the same when they are really not:

That is cause of the issue, that I explain in the early comment, I fixed it rounding to two decimals instead of rounding to integer.
Date User Action Args
2011-11-18 13:53:55d.amiansetrecipients: + d.amian, tarek, eric.araujo, jsjgruber
2011-11-18 13:53:55d.amiansetmessageid: <>
2011-11-18 13:53:54d.amianlinkissue13420 messages
2011-11-18 13:53:54d.amiancreate