forked from mirrors/nixpkgs
determinism: change some fixed timestamp to != (time_t)0
vcunat removed the unrelated glib change. Conflicts: pkgs/development/libraries/glib/default.nix pkgs/os-specific/linux/kernel/generic.nix pkgs/os-specific/linux/kernel/manual-config.nix
This commit is contained in:
parent
e53471eb54
commit
d8c5d95330
|
@ -4,7 +4,7 @@
|
|||
|
||||
: who configured the system
|
||||
cf_time=`LC_ALL=C; LANGUAGE=C; export LC_ALL; export LANGUAGE; $date 2>&1`
|
||||
+cf_time='Thu Jan 1 00:00:00 UTC 1970'
|
||||
+cf_time='Thu Jan 1 00:00:01 UTC 1970'
|
||||
+
|
||||
case "$cf_by" in
|
||||
"")
|
||||
|
|
|
@ -5,7 +5,7 @@ diff -ur libgcrypt-1.5.3.orig/configure libgcrypt-1.5.3/configure
|
|||
|
||||
|
||||
BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
|
||||
+BUILD_TIMESTAMP=1970-01-01T00:00+0000
|
||||
+BUILD_TIMESTAMP=1970-01-01T00:01+0000
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
|
|
|
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1dapxzxl1naghf342fwfc2w2f2c5hb9gr1a1s4n8dsqn26kybx1z";
|
||||
};
|
||||
|
||||
postPatch = "sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:00+0000/' -i ./configure";
|
||||
postPatch = "sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure";
|
||||
|
||||
# If architecture-dependent MO files aren't available, they're generated
|
||||
# during build, so we need gettext for cross-builds.
|
||||
|
|
|
@ -57,6 +57,7 @@ let
|
|||
autoModules = stdenv.platform.kernelAutoModules;
|
||||
arch = stdenv.platform.kernelArch;
|
||||
|
||||
KBUILD_BUILD_TIMESTAMP = 1; # (time_t)1
|
||||
crossAttrs = let
|
||||
cp = stdenv.cross.platform;
|
||||
in {
|
||||
|
|
|
@ -104,7 +104,7 @@ let
|
|||
buildFlagsArray+=("KBUILD_BUILD_TIMESTAMP=Thu Jan 1 00:00:01 UTC 1970")
|
||||
'';
|
||||
|
||||
buildFlags = [
|
||||
KBUILD_BUILD_TIMESTAMP=1; # (time_t)1
|
||||
"KBUILD_BUILD_VERSION=1-NixOS"
|
||||
platform.kernelTarget
|
||||
] ++ optional isModular "modules";
|
||||
|
|
Loading…
Reference in a new issue