From 17ac8bb67038608547801aa2563b04526fee9932 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Thu, 12 Dec 2019 01:24:32 +0100 Subject: 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(-) (limited to 'gnu') diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index f6d86f0857..20af5cc7f5 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -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) -- cgit v1.2.3