[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#56729] [RFC PATCH v3 20/32] gnu: gap: Build reproducibly.
From: |
vicvbcun |
Subject: |
[bug#56729] [RFC PATCH v3 20/32] gnu: gap: Build reproducibly. |
Date: |
Mon, 29 May 2023 22:38:29 +0200 |
* gnu/packages/algebra.scm (gap)[arguments]<#:phases> {'pin-build-time}
{'remove-logs}: New phases.
---
Notes:
Some packages seem to include pdfs, LaTeX output; pdflatex missing
gnu/packages/algebra.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index c2d1c3ce1e..4d5483bf4d 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -1412,6 +1412,12 @@ (define-public gap
(guix build utils))
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'pin-build-time
+ ;; https://github.com/gap-system/gap/issues/5204
+ (lambda _
+ (substitute* "src/version.c.in"
+ (("@GAP_BUILD_DATETIME@")
+ "@GAP_RELEASEDAY@"))))
(add-after 'build 'build-packages
;; Compile all packages that have not been deleted by the
;; code snippet above.
@@ -1428,7 +1434,14 @@ (define-public gap
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(share (string-append out "/share/gap")))
- (copy-recursively "pkg" (string-append share "/pkg"))))))))
+ (copy-recursively "pkg" (string-append share "/pkg")))))
+ ;; configure logs and LaTeX output that contains timestamps, uname
+ ;; output etc
+ (add-after 'install-packages 'remove-logs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (for-each
+ delete-file
+ (find-files (assoc-ref outputs "out") "\\.(out|log)$")))))))
(home-page "https://www.gap-system.org/")
(synopsis
"System for computational group theory")
--
2.40.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug#56729] [RFC PATCH v3 20/32] gnu: gap: Build reproducibly.,
vicvbcun <=