gnu: darktable: Fix build failure.

* gnu/packages/photo.scm (darktable)[arguments]: Move CPATH override from
 #:make-flags to a phase, so the GETENV call returns useful data.
This commit is contained in:
Marius Bakke 2019-12-12 01:24:32 +01:00
parent 8e53fe2b91
commit 17ac8bb670
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -374,18 +374,19 @@ (define-public darktable
(arguments
`(#:tests? #f ; there are no tests
#:configure-flags '("-DBINARY_PACKAGE_BUILD=On")
#:make-flags
(list
(string-append "CPATH=" (assoc-ref %build-inputs "ilmbase")
"/include/OpenEXR:" (or (getenv "CPATH") "")))
#:phases
(modify-phases %standard-phases
(add-before 'configure 'set-ldflags
(lambda* (#:key outputs #:allow-other-keys)
(add-before 'configure 'set-LDFLAGS-and-CPATH
(lambda* (#:key inputs outputs #:allow-other-keys)
(setenv "LDFLAGS"
(string-append
"-Wl,-rpath="
(assoc-ref outputs "out") "/lib/darktable"))
;; Ensure the OpenEXR headers are found.
(setenv "CPATH"
(string-append (assoc-ref inputs "ilmbase")
"/include/OpenEXR:" (or (getenv "CPATH") "")))
#t)))))
(native-inputs
`(("llvm" ,llvm-3.9.1)