mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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:
parent
8e53fe2b91
commit
17ac8bb670
1 changed files with 7 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue