aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@reproducible-builds.org>2022-06-06 11:20:39 -0700
committerVagrant Cascadian <vagrant@debian.org>2022-06-06 13:50:46 -0700
commita04a987450908a84fa5fde0caa25a6a50027c73c (patch)
tree9eefcbf8b51881f34f43c7dd7d21acb5954e399c /gnu
parent264ca9452fae827d6621b28b8972f4b1d68401a1 (diff)
downloadguix-a04a987450908a84fa5fde0caa25a6a50027c73c.tar
guix-a04a987450908a84fa5fde0caa25a6a50027c73c.tar.gz
gnu: itpp: Avoid embedding build dates.
* gnu/packages/maths.scm (itpp): Add 'set-man-page-date and 'set-force-source-date phases.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maths.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 46e5d3a5d0..83f0a1810b 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1724,7 +1724,18 @@ HDF5 file is encoded according to the HDF File Format Specification.")
(base32
"14ddy2xnb6sgp4hiax9v5sv4pr4l4dd4ps76nfha3nrpr1ikhcqm"))))
(build-system cmake-build-system)
- (arguments `(#:tests? #f)) ; Tests require googletest *sources*
+ (arguments `(#:tests? #f ; Tests require googletest *sources*
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'set-man-page-date
+ (lambda _
+ (substitute* "itpp-config.1.cmake.in"
+ ((".PACKAGE_DATE.") "2012-04-18"))))
+ (add-before 'build 'set-force-source-date
+ ;; for reproducible dates, texlive needs this to respect respect
+ ;; SOURCE_DATE_EPOCH
+ (lambda _
+ (setenv "FORCE_SOURCE_DATE" "1"))))))
(inputs (list lapack fftw))
;; FIXME: Even though the fonts are available dvips complains:
;; "Font cmmi10 not found; characters will be left blank."