Changeset 143068


Ignore:
Timestamp:
Dec 2, 2015, 9:54:18 PM (4 years ago)
Author:
cal@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portdestroot.tcl

    r138099 r143068  
    248248                            system "cd ${manpath} && \
    249249                            $gunzip -f [file join ${mandir} ${gzfile}] && \
    250                             $gzip -9vf [file join ${mandir} ${manfile}]"
     250                            $gzip -9vnf [file join ${mandir} ${manfile}]"
    251251                        } elseif {[regexp "^(.*\[.\]${manindex}\[a-z\]*)\[.\]bz2\$" ${manfile} bz2file manfile]} {
    252252                            set found 1
    253253                            system "cd ${manpath} && \
    254254                            $bunzip2 -f [file join ${mandir} ${bz2file}] && \
    255                             $gzip -9vf [file join ${mandir} ${manfile}]"
     255                            $gzip -9vnf [file join ${mandir} ${manfile}]"
    256256                        } elseif {[regexp "\[.\]${manindex}\[a-z\]*\$" ${manfile}]} {
    257257                            set found 1
    258258                            system "cd ${manpath} && \
    259                             $gzip -9vf [file join ${mandir} ${manfile}]"
     259                            $gzip -9vnf [file join ${mandir} ${manfile}]"
    260260                        }
    261261                        set gzmanfile ${manfile}.gz
Note: See TracChangeset for help on using the changeset viewer.