gnu: pharo-vm: Fix reproducibility issue.

* gnu/packages/smalltalk.scm (pharo-vm) [#:phases]
{make-reproducible}: New phase.

Change-Id: I7e06b66c7ac1cf19fd66b6dd91515f286becc43b
This commit is contained in:
Maxim Cournoyer 2025-11-05 15:38:23 +09:00
parent 8a80f086e9
commit f3467360cb
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -94,6 +94,14 @@
"-DVERSION_UPDATE_FROM_GIT=OFF")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'make-reproducible
(lambda _
(substitute* "include/pharovm/config.h.in"
;; Per (info "(cmake) CMAKE_SYSTEM"), CMAKE_SYSTEM includes
;; CMAKE_SYSTEM_VERSION, which is the version of the kernel.
;; Do not capture that, as it introduces non-reproducibilities.
(("\\$\\{CMAKE_SYSTEM}")
"${CMAKE_SYSTEM_NAME}"))))
(add-after 'install 'wrap-ld-library-path
;; The following libraries are dlopen'd.
(lambda* (#:key inputs #:allow-other-keys)