From 479c032495b8c872dc4fb5348702a6d4fa07ca8c Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 17 Jul 2020 17:23:38 -0400 Subject: 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(-) (limited to 'gnu') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index e03edfc747..99ef4fbd6b 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 -- cgit 1.4.1