Merge pull request #77202 from raboof/jitterentropy-reproducible-manpages

jitterentropy: make man pages reproducible
This commit is contained in:
Daniel Schaefer 2020-01-07 11:13:23 +01:00 committed by GitHub
commit 5992086c28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -9,6 +9,10 @@ stdenv.mkDerivation rec {
rev = "v${version}";
sha256 = "0n2l1fxr7bynnarpwdjifb2fvlsq8w5wmfh31yk5nrc756cjlgyw";
};
patches = [
# Can be removed when upgrading beyond 2.2.0
./reproducible-manpages.patch
];
enableParallelBuilding = true;

View File

@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 4ff069b..3b8714a 100644
--- a/Makefile
+++ b/Makefile
@@ -58,7 +58,7 @@ cppcheck:
install:
install -d -m 0755 $(DESTDIR)$(PREFIX)/share/man/man3
install -m 644 doc/$(NAME).3 $(DESTDIR)$(PREFIX)/share/man/man3/
- gzip -9 $(DESTDIR)$(PREFIX)/share/man/man3/$(NAME).3
+ gzip -n -9 $(DESTDIR)$(PREFIX)/share/man/man3/$(NAME).3
install -d -m 0755 $(DESTDIR)$(PREFIX)/$(LIBDIR)
install -m 0755 -s lib$(NAME).so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/$(LIBDIR)/
install -d -m 0755 $(DESTDIR)$(PREFIX)/$(INCDIR)