about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAlexander Kjeldaas <ak@formalprivacy.com>2014-04-09 15:05:48 +0200
committerVladimír Čunát <vcunat@gmail.com>2014-09-13 15:05:27 +0200
commite431a3e0b592b772c81cde81be09d47b1c9b4622 (patch)
treed04ebd964cb6a8d8502b779b7d9db67928416bb8 /pkgs
parentbee22ab79e4853e65b819ec2f0f966b01c1359e1 (diff)
downloadnixlib-e431a3e0b592b772c81cde81be09d47b1c9b4622.tar
nixlib-e431a3e0b592b772c81cde81be09d47b1c9b4622.tar.gz
nixlib-e431a3e0b592b772c81cde81be09d47b1c9b4622.tar.bz2
nixlib-e431a3e0b592b772c81cde81be09d47b1c9b4622.tar.lz
nixlib-e431a3e0b592b772c81cde81be09d47b1c9b4622.tar.xz
nixlib-e431a3e0b592b772c81cde81be09d47b1c9b4622.tar.zst
nixlib-e431a3e0b592b772c81cde81be09d47b1c9b4622.zip
openssl: make it deterministic
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/openssl/default.nix2
-rw-r--r--pkgs/development/libraries/openssl/no-date-in-library.patch12
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix
index c972635c9c72..396eaa88fbff 100644
--- a/pkgs/development/libraries/openssl/default.nix
+++ b/pkgs/development/libraries/openssl/default.nix
@@ -19,6 +19,8 @@ let
       # cannot be overriden per-process.  For security, the
       # environment variable is ignored for setuid binaries.
       ./cert-file.patch
+      # Remove the compilation time from the library
+      ./no-date-in-library.patch
     ]
 
     ++ stdenv.lib.optionals (isCross && opensslCrossSystem == "hurd-x86")
diff --git a/pkgs/development/libraries/openssl/no-date-in-library.patch b/pkgs/development/libraries/openssl/no-date-in-library.patch
new file mode 100644
index 000000000000..3eb501dfa020
--- /dev/null
+++ b/pkgs/development/libraries/openssl/no-date-in-library.patch
@@ -0,0 +1,12 @@
+diff -ur openssl-1.0.1f.orig/crypto/Makefile openssl-1.0.1f/crypto/Makefile
+--- openssl-1.0.1f.orig/crypto/Makefile	2014-01-06 15:35:56.000000000 +0100
++++ openssl-1.0.1f/crypto/Makefile	2014-04-09 13:05:28.071346204 +0200
+@@ -57,7 +57,7 @@
+ 	echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
+ 	echo '  #define CFLAGS "$(CC) $(CFLAG)"'; \
+ 	echo '  #define PLATFORM "$(PLATFORM)"'; \
+-	echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
++	echo "  #define DATE \"Thu Jan  1 00:00:01 UTC 1970\""; \
+ 	echo '#endif' ) >buildinf.h
+ 
+ x86cpuid.s:	x86cpuid.pl perlasm/x86asm.pl