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>
This commit is contained in:
Kaelyn Takata 2023-02-02 21:24:21 +00:00 committed by Liliana Marie Prikler
parent d9a7bc96ae
commit d9e2ad989a
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

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