diff mbox series

[bug#61067,v3,5/5] gnu: wine-minimal: Build more reproducibly.

Message ID 9ff684d88b3c0f7a3dfde6ef86d07e11f2f9c38d.1675372737.git.kaelyn.alexi@protonmail.com
State New
Headers show
Series Update wine and wine-staging packages to 8.0 | expand

Commit Message

Kaelyn Takata Feb. 2, 2023, 9:24 p.m. UTC
* gnu/packages/wine.scm (wine-minimal)[phases]: Add a new 'set-widl-time-override phase.
---
 gnu/packages/wine.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--
2.39.1
diff mbox series

Patch

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 @@  (define-public wine-minimal
                (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")))