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