gnu: tbb: Build in a reproducible fashion.
authorLudovic Courtès <ludo@gnu.org>
Thu, 26 Sep 2019 19:58:47 +0000 (21:58 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 26 Sep 2019 21:15:28 +0000 (23:15 +0200)
Fixes <https://bugs.gnu.org/37522>.

* gnu/packages/tbb.scm (tbb)[source](snippets): Annihilate attempts to
capture the build time and kernel version.

gnu/packages/tbb.scm

index 5e427ff..f6d7e9b 100644 (file)
                   (substitute* "build/common.inc"
                     (("export tbb_build_prefix.+$")
                      "export tbb_build_prefix?=guix\n"))
+
+                  ;; Don't capture the build time and kernel version.
+                  (substitute* "build/version_info_linux.sh"
+                    (("uname -srv") "uname -s")
+                    (("`date -u`") "01 Jan 1970"))
+
+                  (substitute* "build/linux.inc"
+                    (("os_kernel_version:=.*")
+                     "os_kernel_version:=5\n")
+                    (("os_version:=.*")
+                     "os_version:=1\n"))
                   #t))))
     (outputs '("out" "doc"))
     (build-system gnu-build-system)