[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/17: gnu: ruby-nokogiri: Make it reproducible.
From: |
guix-commits |
Subject: |
13/17: gnu: ruby-nokogiri: Make it reproducible. |
Date: |
Sun, 8 Jan 2023 01:46:27 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit cc79e4b53910fb669b4031f04e25b2a85744411e
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 6 14:32:59 2023 -0500
gnu: ruby-nokogiri: Make it reproducible.
Fixes <https://issues.guix.gnu.org/56389>.
* gnu/packages/ruby.scm (ruby-nokogiri) [arguments]: Use gexps.
[phases] {delete-mkmf.log}: New phase.
Reported-by: Wiktor Żelazny <wzelazny@vurv.cz>
---
gnu/packages/ruby.scm | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 1e75341a43..801fe03dad 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5062,11 +5062,19 @@ to reproduce user environments.")
(arguments
;; Tests fail because Nokogiri can only test with an installed extension,
;; and also because many test framework dependencies are missing.
- `(#:tests? #f
- #:gem-flags (list "--" "--use-system-libraries"
- (string-append "--with-xml2-include="
- (assoc-ref %build-inputs "libxml2")
- "/include/libxml2" ))))
+ (list
+ #:tests? #f
+ #:gem-flags #~(list "--" "--use-system-libraries"
+ (string-append "--with-xml2-include="
+ #$(this-package-input "libxml2")
+ "/include/libxml2" ))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'delete-mkmf.log
+ (lambda _
+ ;; This build log captures non-deterministic file names (see:
+ ;; https://github.com/sparklemotion/nokogiri/issues/2755).
+ (for-each delete-file (find-files #$output "^mkmf\\.log$")))))))
(native-inputs (list ruby-hoe))
(inputs (list zlib libxml2 libxslt))
(propagated-inputs (list ruby-mini-portile-2 ruby-pkg-config))
- branch master updated (db3fdbbdfe -> 17a672524e), guix-commits, 2023/01/08
- 02/17: gnu: ruby-open-uri-cached: Update to 1.0.0., guix-commits, 2023/01/08
- 04/17: gnu: ruby-ttfunk: Update to 1.7.0., guix-commits, 2023/01/08
- 06/17: gnu: ruby-pdf-core: Update to 0.9.0., guix-commits, 2023/01/08
- 07/17: gnu: ruby-prawn: Update to 2.4.0., guix-commits, 2023/01/08
- 08/17: gnu: ruby-asciidoctor-pdf: Update to 2.3.4., guix-commits, 2023/01/08
- 13/17: gnu: ruby-nokogiri: Make it reproducible.,
guix-commits <=
- 03/17: gnu: Add ruby-prawn-dev., guix-commits, 2023/01/08
- 05/17: gnu: Add ruby-matrix., guix-commits, 2023/01/08
- 01/17: gnu: ruby-asciidoctor-multipage: Update to 0.0.16., guix-commits, 2023/01/08
- 09/17: gnu: ruby-prawn-icon: Update to 3.1.0., guix-commits, 2023/01/08
- 10/17: gnu: ruby-prawn-svg: Update to 0.32.0., guix-commits, 2023/01/08
- 11/17: gnu: ruby-ruby-prof: Update to 1.4.5., guix-commits, 2023/01/08
- 15/17: gnu: ruby-html-proofer: Update to 5.0.3., guix-commits, 2023/01/08
- 17/17: gnu: castget: Update to 2.0.0-0.da9727d., guix-commits, 2023/01/08
- 16/17: gnu: ruby-sanitize: Update to 6.0.0., guix-commits, 2023/01/08
- 12/17: gnu: ruby-nokogiri: Update to 1.13.10., guix-commits, 2023/01/08