From 7b2bf3a29fd337711d597807c6ef5594cc50e70f Mon Sep 17 00:00:00 2001 From: Gilles Espinasse Date: Fri, 26 Jun 2009 11:37:47 +0200 Subject: [PATCH] file timestamp not needed in pci.ids.gz 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 140c87a..0169f76 100644 --- a/Makefile +++ b/Makefile @@ -131,6 +131,6 @@ ifeq ($(SHARED),yes) endif pci.ids.gz: pci.ids - gzip -9 <$< >$@ + gzip -9n <$< >$@ .PHONY: all clean distclean install install-lib uninstall force -- 2.39.2