guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: r-rgraphviz: Build reproducibly.


From: guix-commits
Subject: branch master updated: gnu: r-rgraphviz: Build reproducibly.
Date: Mon, 14 Sep 2020 15:25:09 -0400

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 62881be  gnu: r-rgraphviz: Build reproducibly.
62881be is described below

commit 62881beb4d63a9910b2d640779b7705c120d643f
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Sep 14 21:25:17 2020 +0200

    gnu: r-rgraphviz: Build reproducibly.
    
    Fixes <https://bugs.gnu.org/43398>.
    
    * gnu/packages/graph.scm (r-rgraphviz)[arguments]: Add phase
    "make-reproducible".
---
 gnu/packages/graph.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index a307fee..ccffccb 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -134,6 +134,16 @@ more.")
          "1calpvzgcz6v7s4x6bf35kj83sga95zjp7x87p5d3qnbv7q2wz5y"))))
     (properties `((upstream-name . "Rgraphviz")))
     (build-system r-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'make-reproducible
+           (lambda _
+             ;; The replacement value is taken from src/graphviz/builddate.h
+             (substitute* "src/graphviz/configure"
+               (("VERSION_DATE=.*")
+                "VERSION_DATE=20200427.2341\n"))
+             #t)))))
     ;; FIXME: Rgraphviz bundles the sources of an older variant of
     ;; graphviz.  It does not build with the latest version of graphviz, so
     ;; we do not add graphviz to the inputs.



reply via email to

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