[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dealing with get-orig-source and md5sum



David Paleino wrote:

> On Fri, 20 Jun 2008 09:29:37 +0200, David Paleino wrote:
> 
>> On Fri, 20 Jun 2008 09:24:09 +0200, David Paleino wrote:
>> 
>> > On Thu, 19 Jun 2008 20:05:31 -0400, Felipe Sateler wrote:
>> > 
>> > > David Paleino wrote:
>> > > 
>> > > > Now, the fact is that the resulting tarball has very different md5sums
>> > > > at each run -- and I found no way to have the same exact md5sum of the
>> > > > .orig.tar.gz that would be uploaded to Debian:
>> > > > 
>> > > > [..]
>> > > > 
>> > > > I thought that this could be related to timestamps -- but I found no
>> > > > option in `man tar` to remove timestamps from archived files (I thought
>> > > > that, removing timestamps, the files would have been all the same).
>> > > > I can also confirm that the files in the archives are always the same
>> > > > (checked with `tar -tf` and diffing the lists).
>> > > > 
>> > > > What can I do here?
>> > > 
>> > > AFAIK the problem is not tar, but gzip. If I read correctly man gzip,
>> > > your solution would be to use tar first, and then gzip -9n.
>> > 
>> > -n... I'll try that, thanks :)
>> 
>> Great, it worked :)
> 
> No, it didn't... I md5sum'ed the same file before... :(
> 
> I'm open to other suggestions,

I was thinking a bit about this, and apparently this is a not-so-trivial
problem. Maybe you can try pristine-tar which attempts to do this.

-- 

  Felipe Sateler


Reply to: