summary refs log tree commit diff
path: root/pkgs/development/libraries/libfaketime
diff options
context:
space:
mode:
authorAlexander Kjeldaas <ak@formalprivacy.com>2014-04-13 15:46:27 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2016-12-20 12:54:23 +0100
commit6b4a41a360efe14e6cb632d024467b19e991813c (patch)
tree39b4f4bb2f06e2c6785f0d6c67c967dd8e574183 /pkgs/development/libraries/libfaketime
parentfb2a7cd705a6f706872463e6cec481503414bd75 (diff)
downloadnixpkgs-6b4a41a360efe14e6cb632d024467b19e991813c.tar
nixpkgs-6b4a41a360efe14e6cb632d024467b19e991813c.tar.gz
nixpkgs-6b4a41a360efe14e6cb632d024467b19e991813c.tar.bz2
nixpkgs-6b4a41a360efe14e6cb632d024467b19e991813c.tar.lz
nixpkgs-6b4a41a360efe14e6cb632d024467b19e991813c.tar.xz
nixpkgs-6b4a41a360efe14e6cb632d024467b19e991813c.tar.zst
nixpkgs-6b4a41a360efe14e6cb632d024467b19e991813c.zip
libfaketime: make the build reproducible
A rebased version of https://github.com/NixOS/nixpkgs/pull/2281/commits/cb8bd05a0172db9c02ba0067b21bbc0ce17cc522
Note: we no longer apply the spurious lrt patch.

This allows `nix-build --check -A libfaketime` to succeed.
Diffstat (limited to 'pkgs/development/libraries/libfaketime')
-rw-r--r--pkgs/development/libraries/libfaketime/default.nix4
-rw-r--r--pkgs/development/libraries/libfaketime/no-date-in-gzip-man-page.patch12
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libfaketime/default.nix b/pkgs/development/libraries/libfaketime/default.nix
index 7d430614257..16ee2151faa 100644
--- a/pkgs/development/libraries/libfaketime/default.nix
+++ b/pkgs/development/libraries/libfaketime/default.nix
@@ -8,6 +8,10 @@ stdenv.mkDerivation rec {
     sha256 = "1dw2lqsv2iqwxg51mdn25b4fjj3v357s0mc6ahxawqp210krg29s";
   };
 
+  patches = [
+    ./no-date-in-gzip-man-page.patch
+  ];
+
   preBuild = ''
     makeFlagsArray+=(PREFIX="$out" LIBDIRNAME=/lib)
   '';
diff --git a/pkgs/development/libraries/libfaketime/no-date-in-gzip-man-page.patch b/pkgs/development/libraries/libfaketime/no-date-in-gzip-man-page.patch
new file mode 100644
index 00000000000..7b7e362fbf0
--- /dev/null
+++ b/pkgs/development/libraries/libfaketime/no-date-in-gzip-man-page.patch
@@ -0,0 +1,12 @@
+diff -ur libfaketime-0.9.5.orig/man/Makefile libfaketime-0.9.5/man/Makefile
+--- libfaketime-0.9.5.orig/man/Makefile	2013-10-13 11:19:30.000000000 +0200
++++ libfaketime-0.9.5/man/Makefile	2014-04-13 01:22:14.362296519 +0200
+@@ -6,7 +6,7 @@
+ 
+ install:
+ 	$(INSTALL) -Dm0644 faketime.1 "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
+-	gzip -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
++	gzip -9nf "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
+ 
+ uninstall:
+ 	rm -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1.gz"