guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19/21: gnu: eid-mw: Build reproducibly.


From: guix-commits
Subject: 19/21: gnu: eid-mw: Build reproducibly.
Date: Wed, 11 Nov 2020 11:49:04 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit d2bf896155851fee524b045a790b949ea6863c76
Author: Raphaël Mélotte <raphael.melotte@mind.be>
AuthorDate: Fri Nov 6 20:16:20 2020 +0100

    gnu: eid-mw: Build reproducibly.
    
    * gnu/packages/security-token.scm (eid-mw)[arguments]: Add
    a "make-reproducible" phase to set build date to the epoch.
    
    Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
---
 gnu/packages/security-token.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm
index cf6bf18..162868a 100644
--- a/gnu/packages/security-token.scm
+++ b/gnu/packages/security-token.scm
@@ -139,7 +139,13 @@ readers and is needed to communicate with such devices 
through the
              (substitute* "scripts/build-aux/genver.sh"
                (("/bin/sh") (which "sh"))
                (("^(GITDESC=).*" _ match) (string-append match ,version "\n")))
-             (invoke "sh" "./bootstrap.sh"))))))
+             (invoke "sh" "./bootstrap.sh")))
+         (add-after 'unpack 'make-reproducible
+           (lambda _
+             (substitute* "scripts/mac/create-vers.sh"
+               (("NOW=.*")
+                "NOW=1970-01-01\n"))
+             #t)))))
     (synopsis "Belgian eID Middleware")
     (description "The Belgian eID Middleware is required to authenticate with
 online services using the Belgian electronic identity card.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]