Merge pull request #141081 from trofi/fix-p7zip-determinism

p7zip: fix determinism of compressed manpages
This commit is contained in:
Michael Raskin 2021-10-09 13:19:15 +00:00 committed by GitHub
commit d86eb3b53e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,9 @@ stdenv.mkDerivation rec {
# Default makefile is full of impurities on Darwin. The patch doesn't hurt Linux so I'm leaving it unconditional
postPatch = ''
sed -i '/CC=\/usr/d' makefile.macosx_llvm_64bits
# Avoid writing timestamps into compressed manpages
# to maintain determinism.
substituteInPlace install.sh --replace 'gzip' 'gzip -n'
chmod +x install.sh
# I think this is a typo and should be CXX? Either way let's kill it