[143068] trunk/base/src/port1.0/portdestroot.tcl
cal at macports.org
cal at macports.org
Sat Dec 12 08:25:21 PST 2015
Revision: 143068
https://trac.macports.org/changeset/143068
Author: cal at macports.org
Date: 2015-12-02 13:54:18 -0800 (Wed, 02 Dec 2015)
Log Message:
-----------
base: stop recording mtimes and names when compressing manpages
The manpage modification times get stored into a header of the gzip format when
compressing them. This leads to non-reproducible builds, because the file
modification times of those manpages differ between builds.
Of course the file modification times themselves are an issue that still needs
to be fixed because the generated tarballs will not be reproducible otherwise,
but this change itself is still worthwhile.
Modified Paths:
--------------
trunk/base/src/port1.0/portdestroot.tcl
Modified: trunk/base/src/port1.0/portdestroot.tcl
===================================================================
--- trunk/base/src/port1.0/portdestroot.tcl 2015-12-02 20:58:05 UTC (rev 143067)
+++ trunk/base/src/port1.0/portdestroot.tcl 2015-12-02 21:54:18 UTC (rev 143068)
@@ -247,16 +247,16 @@
set found 1
system "cd ${manpath} && \
$gunzip -f [file join ${mandir} ${gzfile}] && \
- $gzip -9vf [file join ${mandir} ${manfile}]"
+ $gzip -9vnf [file join ${mandir} ${manfile}]"
} elseif {[regexp "^(.*\[.\]${manindex}\[a-z\]*)\[.\]bz2\$" ${manfile} bz2file manfile]} {
set found 1
system "cd ${manpath} && \
$bunzip2 -f [file join ${mandir} ${bz2file}] && \
- $gzip -9vf [file join ${mandir} ${manfile}]"
+ $gzip -9vnf [file join ${mandir} ${manfile}]"
} elseif {[regexp "\[.\]${manindex}\[a-z\]*\$" ${manfile}]} {
set found 1
system "cd ${manpath} && \
- $gzip -9vf [file join ${mandir} ${manfile}]"
+ $gzip -9vnf [file join ${mandir} ${manfile}]"
}
set gzmanfile ${manfile}.gz
set gzmanfilepath [file join ${mandirpath} ${gzmanfile}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/80f5f286/attachment.html>
More information about the macports-changes
mailing list