Skip to content

Commit 4108382

Browse files
committed
compress-man-pages: don't leak build timestamp into archive
without `-n`, gzip leaks the file timestamp into the compressed file, which is likely to leak the build timestamp into the output. This fixes #434930, a regression introduced in c5252e1 / #406922
1 parent fbcf476 commit 4108382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/build-support/setup-hooks/compress-man-pages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ compressManPages() {
1111
# Compress all uncompressed manpages. Don't follow symlinks, etc.
1212
# gzip -f is needed to not error out on hard links.
1313
find "$dir"/share/man/ -type f -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 \
14-
| xargs -0 -n1 -P "$NIX_BUILD_CORES" gzip -f
14+
| xargs -0 -n1 -P "$NIX_BUILD_CORES" gzip -n -f
1515

1616
# Point symlinks to compressed manpages.
1717
find "$dir"/share/man/ -type l -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 \

0 commit comments

Comments
 (0)