GNU bug report logs - #52848
[PATCH] gnu: Add openshadinglanguage.

Previous Next

Package: guix-patches;

Reported by: Vinicius Monego <monego <at> posteo.net>

Date: Tue, 28 Dec 2021 13:27:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52848 in the body.
You can then email your comments to 52848 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#52848; Package guix-patches. (Tue, 28 Dec 2021 13:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vinicius Monego <monego <at> posteo.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 28 Dec 2021 13:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vinicius Monego <monego <at> posteo.net>
To: guix-patches <at> gnu.org
Cc: Vinicius Monego <monego <at> posteo.net>
Subject: [PATCH] gnu: Add openshadinglanguage.
Date: Tue, 28 Dec 2021 13:26:03 +0000
* gnu/packages/graphics.scm (openshadinglanguage): New variable.
---
 gnu/packages/graphics.scm | 55 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 3be37d7841..f857aa04db 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -79,6 +79,7 @@
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages llvm)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages mp3)
@@ -666,6 +667,60 @@ vertices, sorting by primitive type, merging of redundant materials and many
 more.")
     (license license:bsd-3)))
 
+(define-public openshadinglanguage
+  (package
+    (name "openshadinglanguage")
+    (version "1.11.16.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0x0lc163vl2b57l75bf5zxlr6vm2y1f1izlxdnrw3vsapv3r9k9g"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:configure-flags (list "-DUSE_PARTIO=OFF") ; TODO: not packaged
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'set-paths 'add-ilmbase-include-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             ;; OpenEXR 2 propagates ilmbase, but its include files do not
+             ;; appear in the C_INCLUDE_PATH.
+             (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") ""))))))
+         (replace 'check
+           (lambda _
+             (invoke "ctest" "--exclude-regex"
+                     (string-join
+                      (list
+                       "osl-imageio"      ; OIIO not compiled with freetype
+                       "osl-imageio.opt"  ; OIIO not compiled with freetype
+                       "texture-udim"     ; file does not exist
+                       "texture-udim.opt" ; file does not exist
+                       "example-deformer" ; could not find OSLConfig
+                       "python-oslquery") ; no module oslquery
+                      "|")))))))
+    (native-inputs
+     (list bison clang flex llvm pybind11 python-wrapper))
+    (inputs
+     (list boost imath openexr-2 openimageio pugixml qtbase-5 zlib))
+    (home-page "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage")
+    (synopsis "Shading language for production GI renderers")
+    (description "Open Shading Language (OSL) is a language for programmable
+shading in advanced renderers and other applications, ideal for describing
+materials, lights, displacement, and pattern generation.")
+    (license license:bsd-3)))
+
 (define-public cgal
   (package
     (name "cgal")

base-commit: 28b477cb2e5d9185da16f305caff15809dfa06f3
-- 
2.30.2





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 15 Jan 2022 21:49:02 GMT) Full text and rfc822 format available.

Notification sent to Vinicius Monego <monego <at> posteo.net>:
bug acknowledged by developer. (Sat, 15 Jan 2022 21:49:02 GMT) Full text and rfc822 format available.

Message #10 received at 52848-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Vinicius Monego <monego <at> posteo.net>
Cc: 52848-done <at> debbugs.gnu.org
Subject: Re: bug#52848: [PATCH] gnu: Add openshadinglanguage.
Date: Sat, 15 Jan 2022 22:48:12 +0100
[Message part 1 (text/plain, inline)]
Hi Vinicius,

Vinicius Monego <monego <at> posteo.net> skribis:

> * gnu/packages/graphics.scm (openshadinglanguage): New variable.

Applied with the tweaks below.

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index bc59652d33..b69ab52aec 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -604,21 +604,33 @@ (define-public openshadinglanguage
                        (string-append headers ":"
                                       (or (getenv "CPLUS_INCLUDE_PATH") ""))))))
          (replace 'check
-           (lambda _
-             (invoke "ctest" "--exclude-regex"
-                     (string-join
-                      (list
-                       "osl-imageio"      ; OIIO not compiled with freetype
-                       "osl-imageio.opt"  ; OIIO not compiled with freetype
-                       "texture-udim"     ; file does not exist
-                       "texture-udim.opt" ; file does not exist
-                       "example-deformer" ; could not find OSLConfig
-                       "python-oslquery") ; no module oslquery
-                      "|")))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "ctest" "--exclude-regex"
+                       (string-join
+                        (list
+                         "osl-imageio"       ; OIIO not compiled with freetype
+                         "osl-imageio.opt"   ; OIIO not compiled with freetype
+                         "texture-udim"      ; file does not exist
+                         "texture-udim.opt"  ; file does not exist
+                         "example-deformer"  ; could not find OSLConfig
+                         "python-oslquery")  ; no module oslquery
+                        "|"))))))))
     (native-inputs
-     (list bison clang flex llvm pybind11 python-wrapper))
+     (list bison
+           clang
+           flex
+           llvm
+           pybind11
+           python-wrapper))
     (inputs
-     (list boost imath openexr-2 openimageio pugixml qtbase-5 zlib))
+     (list boost
+           imath
+           openexr-2
+           openimageio
+           pugixml
+           qtbase-5
+           zlib))
     (home-page "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage")
     (synopsis "Shading language for production GI renderers")
     (description "Open Shading Language (OSL) is a language for programmable

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 Feb 2022 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 71 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.