From patchwork Fri Jun 26 09:37:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Espinasse X-Patchwork-Id: 32537 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5Q9c0Mw017564 for ; Fri, 26 Jun 2009 09:38:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752306AbZFZJhz (ORCPT ); Fri, 26 Jun 2009 05:37:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753351AbZFZJhz (ORCPT ); Fri, 26 Jun 2009 05:37:55 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]:58665 "EHLO smtp1-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752306AbZFZJhz (ORCPT ); Fri, 26 Jun 2009 05:37:55 -0400 Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id B32A79401B7; Fri, 26 Jun 2009 11:37:50 +0200 (CEST) Received: from localhost (vir91-2-82-236-101-3.fbx.proxad.net [82.236.101.3]) by smtp1-g21.free.fr (Postfix) with ESMTP id B276E940179; Fri, 26 Jun 2009 11:37:47 +0200 (CEST) From: Gilles Espinasse To: linux-pci@vger.kernel.org, mj@ucw.cz Cc: Gilles Espinasse Subject: [PATCH] file timestamp not needed in pci.ids.gz Date: Fri, 26 Jun 2009 11:37:47 +0200 Message-Id: <1246009067-4532-1-git-send-email-g.esp@free.fr> X-Mailer: git-send-email 1.6.0.6 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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 files changed, 1 insertions(+), 1 deletions(-) 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