File timestamp (and file name) have no use for pci.ids.gz
This allow to produce the exact same file even when compiled at different times.
That make paranoid happy.
Even gzip-1.2.4 from 1993 support -n option
Concerning the fact that -n did not include file name, that does not matter
unless the compressed file is moved under a different name and later -N option
is used to open the file.
[chroot-i486] root:/$ gzip -9 /usr/share/pci.ids
[chroot-i486] root:/$ gzip -l /usr/share/pci.ids.gz
compressed uncompressed ratio uncompressed_name
161106 590309 72.7% /usr/share/pci.ids
[chroot-i486] root:/$ mv /usr/share/pci.ids.gz /usr/share/pci.foo.gz
[chroot-i486] root:/$ gzip -lN /usr/share/pci.foo.gz
compressed uncompressed ratio uncompressed_name
161106 590309 72.7% /usr/share/pci.ids
[chroot-i486] root:/$ gzip -dN /usr/share/pci.foo.gz
[chroot-i486] root:/$ ls -l /usr/share/pci.ids
-rw-r--r-- 1 root root 590309 Jun 26 07:59 /usr/share/pci.ids
[chroot-i486] root:/$ gzip -9n /usr/share/pci.ids
[chroot-i486] root:/$ mv /usr/share/pci.ids.gz /usr/share/pci.foo.gz
[chroot-i486] root:/$ gzip -lN /usr/share/pci.foo.gz
compressed uncompressed ratio uncompressed_name
161098 590309 72.7% /usr/share/pci.foo
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
endif
pci.ids.gz: pci.ids
- gzip -9 <$< >$@
+ gzip -9n <$< >$@
.PHONY: all clean distclean install install-lib uninstall force