openssl: make it deterministic

This commit is contained in:
Alexander Kjeldaas 2014-04-09 15:05:48 +02:00 committed by Vladimír Čunát
parent bee22ab79e
commit e431a3e0b5
2 changed files with 14 additions and 0 deletions

@ -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")

@ -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