From b3ac826e18f5a90849bceac791a8b886f4397464 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 24 Oct 2021 13:26:49 +0000 Subject: gnu: blender: Use older TBB and update header variables. * gnu/packages/graphics.scm (blender)[inputs]: Replace tbb with tbb-2020. [arguments]: Don't set CPATH; set C_INCLUDE_PATH and CPLUS_INCLUDE_PATH instead. --- gnu/packages/graphics.scm | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index ca18907aae..6b6cc85afe 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -552,13 +552,19 @@ typically encountered in feature film production.") #t)) (add-after 'set-paths 'add-ilmbase-include-path (lambda* (#:key inputs #:allow-other-keys) - ;; OpenEXR propagates ilmbase, but its include files do not appear - ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to - ;; the CPATH to satisfy the dependency on "half.h". - (setenv "CPATH" - (string-append - (search-input-directory inputs "include/OpenEXR") - ":" (or (getenv "CPATH") ""))))))))) + ;; OpenEXR propagates ilmbase, but its include files do not + ;; appear in the C_INCLUDE_PATH, so we need to add + ;; "$ilmbase/include/OpenEXR/" to the C_INCLUDE_PATH to satisfy + ;; the dependency on "half.h" and "Iex.h". + (let ((headers (string-append + (assoc-ref inputs "ilmbase") + "/include/OpenEXR"))) + (setenv "C_INCLUDE_PATH" + (string-append headers ":" + (or (getenv "C_INCLUDE_PATH") ""))) + (setenv "CPLUS_INCLUDE_PATH" + (string-append headers ":" + (or (getenv "CPLUS_INCLUDE_PATH") "")))))))))) (inputs `(("boost" ,boost) ("jemalloc" ,jemalloc) @@ -585,7 +591,7 @@ typically encountered in feature film production.") ("python" ,python) ("python-numpy" ,python-numpy) ("openvdb" ,openvdb) - ("tbb" ,tbb) + ("tbb" ,tbb-2020) ("zlib" ,zlib) ("embree" ,embree))) (home-page "https://blender.org/") -- cgit v1.2.3