This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/7098] New: Remove gzip timestamp on localedata files


When building glibc localedata, gzip is used with -9 option, so timestamp of 
each compressed file is include.

First the timestamp/filename is not required.

Secondly, with timestamp removed, each charmaps gz file and locale-archive have 
always the same md5.
This make paranoid people looking why files are different happier.

Third, with timestamp removed, charmaps files are a few bytes smaller.

Even the oldest gzip I find (gzip-1.2.4) support the -n option.
So use gzip -9n
Index: localedata/Makefile
===================================================================
RCS file: /cvs/glibc/libc/localedata/Makefile,v
retrieving revision 1.109
diff -u -r1.109 Makefile
--- localedata/Makefile	31 Oct 2008 15:12:03 -0000	1.109
+++ localedata/Makefile	13 Dec 2008 19:42:41 -0000
@@ -114,7 +114,7 @@
 	$(make-target-directory)
 	rm -f $(@:.gz=) $@
 	$(INSTALL_DATA) $< $(@:.gz=)
-	gzip -9 $(@:.gz=)
+	gzip -9n $(@:.gz=)
 
 # Install the locale source files in the appropriate directory.
 $(inst_i18ndir)/locales/%: locales/% $(+force); $(do-install)

-- 
           Summary: Remove gzip timestamp on localedata files
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales at sources dot redhat dot com
        ReportedBy: g dot esp at free dot fr
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=7098

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]