mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
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>
This commit is contained in:
parent
fcbe54c27a
commit
cc79e4b539
1 changed files with 13 additions and 5 deletions
|
@ -5062,11 +5062,19 @@ (define-public ruby-nokogiri
|
||||||
(arguments
|
(arguments
|
||||||
;; Tests fail because Nokogiri can only test with an installed extension,
|
;; Tests fail because Nokogiri can only test with an installed extension,
|
||||||
;; and also because many test framework dependencies are missing.
|
;; and also because many test framework dependencies are missing.
|
||||||
`(#:tests? #f
|
(list
|
||||||
#:gem-flags (list "--" "--use-system-libraries"
|
#:tests? #f
|
||||||
(string-append "--with-xml2-include="
|
#:gem-flags #~(list "--" "--use-system-libraries"
|
||||||
(assoc-ref %build-inputs "libxml2")
|
(string-append "--with-xml2-include="
|
||||||
"/include/libxml2" ))))
|
#$(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))
|
(native-inputs (list ruby-hoe))
|
||||||
(inputs (list zlib libxml2 libxslt))
|
(inputs (list zlib libxml2 libxslt))
|
||||||
(propagated-inputs (list ruby-mini-portile-2 ruby-pkg-config))
|
(propagated-inputs (list ruby-mini-portile-2 ruby-pkg-config))
|
||||||
|
|
Loading…
Reference in a new issue