2011/3/8 Cristian Morales Vega <cmorve69@yahoo.es>:
2011/3/7 Cristian Rodríguez <crrodriguez@opensuse.org>:
El 07/03/11 15:42, Cristian Morales Vega escribió:
2011/3/7 Cristian Morales Vega <cmorve69@yahoo.es>:
I have a package that "tar czf"s a directory in the build process. This breaks build-compare since every compression generates a different file.
a file with different timestamps or one with different checksum ?
No in the original files. Otherwise the bzip2 file would also be different ;-) The problem was the timestamp of the temporal tar file... but now I have a different problem. I can create reproducible gzip files from the tar, but now I'm unable to create reproducible tar files.
In my local system everything is OK. Using "osc build" I get reproducible results. If I manually create .tar.gz files from different copies of the directory I get reproducible results. If I uncompress the .tar.gz files created in the build service and create new .tar.gz from them I get reproducible results... But the builds in the (Packman) Build Service are not reproducible.
I'm going to look through the tar file format specs, but any help is welcome.
The problem was tar was adding the files in a different order each time. Finally I had to convert tar cvvzf skins2/default.vlt --exclude .svn -C $(srcdir)/skins2 default/ into (cd $(srcdir)/skins2; find default -print0 | sort -z | tar cvv --exclude .svn --no-recursion --null -T -) | gzip -n > skins2/default.vlt Works. But if someone knows of a simpler way... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org