summary refs log tree commit diff
diff options
context:
space:
mode:
authorKaelyn Takata <kaelyn.alexi@protonmail.com>2023-02-02 21:24:21 +0000
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-02-05 06:56:43 +0100
commitd9e2ad989a651846e24d28e0c8b837833e440f7c (patch)
tree9496f19ebc741d4ca75f1f3d53688ff46a89afb1
parentd9a7bc96aeba4cf501daa5b4bd8eb2dfbd1152a5 (diff)
downloadguix-d9e2ad989a651846e24d28e0c8b837833e440f7c.tar.gz
gnu: wine-minimal: Build more reproducibly.
* gnu/packages/wine.scm (wine-minimal)[phases]: Add a new 'set-widl-time-override phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r--gnu/packages/wine.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/wine.scm b/gnu/packages/wine.scm
index 3b637f76e5..88f146b46b 100644
--- a/gnu/packages/wine.scm
+++ b/gnu/packages/wine.scm
@@ -134,7 +134,12 @@
                (substitute* "tools/makedep.c"
                  (("output_filenames\\( unix_libs \\);" all)
                   (string-append all
-                   "output ( \" -Wl,-rpath=%s \", arch_install_dirs[arch] );"))))))
+                   "output ( \" -Wl,-rpath=%s \", arch_install_dirs[arch] );")))))
+           (add-before 'build 'set-widl-time-override
+             ;; Set WIDL_TIME_OVERRIDE to avoid embedding the current date in
+             ;; files generated by WIDL.
+             (lambda _
+               (setenv "WIDL_TIME_OVERRIDE" "315532800"))))
        #:configure-flags
        #~(list "--without-freetype"
                "--without-x")))