Bug 7098 - Remove gzip timestamp on localedata files
Summary: Remove gzip timestamp on localedata files
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 minor
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-13 20:20 UTC by Gilles Espinasse
Modified: 2014-07-04 05:31 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Removal of gzip timestamp for localdata (565 bytes, patch)
2008-12-13 20:23 UTC, Gilles Espinasse
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles Espinasse 2008-12-13 20:20:48 UTC
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)
Comment 1 Gilles Espinasse 2008-12-13 20:23:51 UTC
Created attachment 3106 [details]
Removal of gzip timestamp for localdata
Comment 2 Ulrich Drepper 2009-02-07 05:29:26 UTC
OK, I checked the patch in.