On 2011/3/10 Denis Barbier wrote: > On 2011/3/10 Adam C Powell IV wrote: >> On Thu, 2011-03-10 at 15:15 +0100, Denis Barbier wrote: >>> Hi again, >>> >>> I just found that current tree does not compile because of one of my >>> patches, I do not know why I did not detect this problem earlier. >>> Here is a fix I am currently testing and will commit later today, feel >>> free to commit it if you want. >>> >>> Denis >> >> Thanks again Denis. >> >> BTW, the tarball I make with tar cjf is about 1.8 MiB larger than yours, >> with the .bak files removed. Is there a way to pass --best to bzip2 >> using tar? I don't see it in the tar manpage. > > Mathieu already answered, but please do not run tar directly, use instead > git archive --prefix=opencascade-6.5.0.dfsg/ upstream \ > | bzip2 --best > ../opencascade_6.5.0.dfsg.orig.tar.bz2 > > This will preserve file attributes, and the tarball will be identical > whether you or me (or anyone else) generate it, it will only depend on > the commit 'upstream' is pointing to.
Update: back on the machine I use to hack on this package, history shows that I ran git-buildpackage --pristine-tar --git-verbose --git-ignore-new to generate my tar.bz2. I do not remember where I found the --pristine-tar option, it is not documented. Anyway it generates the exact same tarball as 'git archive' above. I just removed .bak files from 'upstream', and pushed 'master', 'upstream' and 'pristine-tar' branches on Alioth. As an alternative, you may now generate a tar.bz2 by running pristine-tar checkout ../opencascade_6.5.0.dfsg.orig.tar.bz2 My new one contains 40389652 bytes and: $ md5sum opencascade_6.5.0.dfsg.orig.tar.bz2 537699c4d4018c118dd1ca306bdd9861 opencascade_6.5.0.dfsg.orig.tar.bz2 Denis -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org