gnu: OpenEXR 2: Move the snippet into a build phase.
This snippet was just working around a quirk of the Guix build environment. * gnu/packages/graphics.scm (openexr-2)[origin]: Remove snippet. [arguments]: Add a 'patch-test-directory' phase.master
parent
547009ff0a
commit
de3bf035b4
|
@ -1148,14 +1148,7 @@ with strong support for multi-part, multi-channel use cases.")
|
||||||
(version (package-version ilmbase))
|
(version (package-version ilmbase))
|
||||||
(source (origin
|
(source (origin
|
||||||
(inherit (package-source ilmbase))
|
(inherit (package-source ilmbase))
|
||||||
(file-name (git-file-name "openexr" version))
|
(file-name (git-file-name "openexr" version))))
|
||||||
(modules '((guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
(substitute* (find-files "OpenEXR" "tmpDir\\.h")
|
|
||||||
(("\"/var/tmp/\"")
|
|
||||||
"\"/tmp/\""))
|
|
||||||
#t))))
|
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
|
@ -1164,6 +1157,12 @@ with strong support for multi-part, multi-channel use cases.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "OpenEXR")
|
(chdir "OpenEXR")
|
||||||
#t))
|
#t))
|
||||||
|
(add-after 'change-directory 'patch-test-directory
|
||||||
|
(lambda _
|
||||||
|
(substitute* '("IlmImfFuzzTest/tmpDir.h"
|
||||||
|
"IlmImfTest/tmpDir.h"
|
||||||
|
"IlmImfUtilTest/tmpDir.h")
|
||||||
|
(("/var/tmp") "/tmp"))))
|
||||||
(add-after 'change-directory 'increase-test-timeout
|
(add-after 'change-directory 'increase-test-timeout
|
||||||
(lambda _
|
(lambda _
|
||||||
;; On armhf-linux, we need to override the CTest default
|
;; On armhf-linux, we need to override the CTest default
|
||||||
|
|
Reference in New Issue