guix-commits
[Top][All Lists]
Advanced

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

36/36: gnu: ruby-yard: Make the package reproducible.


From: guix-commits
Subject: 36/36: gnu: ruby-yard: Make the package reproducible.
Date: Fri, 17 Jul 2020 23:24:48 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 479c032495b8c872dc4fb5348702a6d4fa07ca8c
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jul 17 17:23:38 2020 -0400

    gnu: ruby-yard: Make the package reproducible.
    
    * gnu/packages/ruby.scm (ruby-yard)[phases]: Add a 
'do-not-set-date-in-gemspec
    phase.
---
 gnu/packages/ruby.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e03edfc..99ef4fb 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -8098,7 +8098,15 @@ A modified copy of yajl is used, and included in the 
package.")
     (arguments
      ;; Note: Tests are willfully disabled to alleviate dependency cycle
      ;; problems.
-     `(#:tests? #f))
+     `(#:tests? #f
+       #:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'do-not-set-date-in-gemspec
+                    ;; Fix a reproducibility issue (see:
+                    ;; https://github.com/lsegal/yard/issues/1343).
+                    (lambda _
+                      (substitute* "yard.gemspec"
+                        ((".*s\\.date.*") ""))
+                      #t)))))
     (synopsis "Documentation generation tool for Ruby")
     (description "YARD is a documentation generation tool for the Ruby
 programming language.  It enables the user to generate consistent, usable



reply via email to

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