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

Re: rebuilding the archive in a dirty chroot: results



Michal Čihař wrote:

> Hi
> 
> Dne Fri, 25 Jan 2008 16:37:36 +0100
> Lucas Nussbaum <lucas@lucas-nussbaum.net> napsal(a):
> 
>> Seems like gzip didn't compress the files in the exact same way, even if
>> the resulting size was the same:
>> $ diff -burN t t2
>> Binary files t/usr/share/doc/docbook-xsl-doc-html/changelog.Debian.gz
>> and t2/usr/share/doc/docbook-xsl-doc-html/changelog.Debian.gz differ
>> Binary files t/usr/share/doc/docbook-xsl-doc-html/NEWS.Debian.gz and
>> t2/usr/share/doc/docbook-xsl-doc-html/NEWS.Debian.gz differ
>> 
>> -rw-r--r-- 1 lnussbaum grenoble 10286 2008-01-23 22:35
>> t2/usr/share/doc/docbook-xsl-doc-html/changelog.Debian.gz
>> -rw-r--r-- 1 lnussbaum grenoble  1592 2008-01-23 22:35
>> t2/usr/share/doc/docbook-xsl-doc-html/NEWS.Debian.gz
>> -rw-r--r-- 1 lnussbaum grenoble 10286 2008-01-23 22:35
>> t/usr/share/doc/docbook-xsl-doc-html/changelog.Debian.gz
>> -rw-r--r-- 1 lnussbaum grenoble  1592 2008-01-23 22:35
>> t/usr/share/doc/docbook-xsl-doc-html/NEWS.Debian.gz
>> 
>> zdiff doesn't show any difference.
> 
> AFAIR there it timestamp somewhere in gzip headers.
> 

from gzip(1):

>        -n --no-name
>               When compressing, do not save the original file name and
time stamp by default.  (The  original
>               name  is  always saved if the name had to be truncated.)
When decompressing, do not restore the
>               original file name if present (remove only the gzip suffix
from the compressed file  name)  and
>               do  not  restore  the  original  time stamp if present (copy
it from the compressed file). This
>               option is the default when decompressing.
> 
>        -N --name
>               When compressing, always save the original file name and
time stamp; this is the default.  When
>               decompressing,  restore the original file name and time
stamp if present. This option is useful
>               on systems which have a limit on file name length or when
the time stamp has been lost after  a
>               file transfer.

Probably dh_compress should use the --no-name option by default.

Cheers,
Raphael Geissert





Reply to: