gnu: ruby-yard: Make the package reproducible.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Fri, 17 Jul 2020 21:23:38 +0000 (17:23 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Sat, 18 Jul 2020 03:01:35 +0000 (23:01 -0400)
* gnu/packages/ruby.scm (ruby-yard)[phases]: Add a 'do-not-set-date-in-gemspec
phase.

gnu/packages/ruby.scm

index e03edfc..99ef4fb 100644 (file)
@@ -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