[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: darktable: Fix build failure.
From: |
guix-commits |
Subject: |
02/06: gnu: darktable: Fix build failure. |
Date: |
Wed, 18 Dec 2019 16:37:22 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 17ac8bb67038608547801aa2563b04526fee9932
Author: Marius Bakke <address@hidden>
Date: Thu Dec 12 01:24:32 2019 +0100
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.
---
gnu/packages/photo.scm | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm
index f6d86f0..20af5cc 100644
--- a/gnu/packages/photo.scm
+++ b/gnu/packages/photo.scm
@@ -374,18 +374,19 @@ photographic equipment.")
(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)
- branch master updated (7ebf4c4 -> 9077cf6), guix-commits, 2019/12/18
- 01/06: gnu: Remove uses of deprecated Qemu network configuration., guix-commits, 2019/12/18
- 02/06: gnu: darktable: Fix build failure.,
guix-commits <=
- 04/06: gnu: darktable: Update to 2.6.3., guix-commits, 2019/12/18
- 03/06: gnu: darktable: Remove redundant inputs., guix-commits, 2019/12/18
- 06/06: gnu: libdbi-drivers: Adapt to multiple-output MariaDB., guix-commits, 2019/12/18
- 05/06: gexp: Allow character literals in GEXP->SEXP., guix-commits, 2019/12/18