GNU bug report logs -
#72046
[core-updates] OpenImageIO fails to build
Previous Next
Reported by: Leo Famulari <leo <at> famulari.name>
Date: Wed, 10 Jul 2024 20:27:16 UTC
Severity: normal
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
Full log
Message #25 received at 72046 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Leo Famulari <leo <at> famulari.name> writes:
> On Thu, Jul 11, 2024 at 11:32:53AM -0400, Leo Famulari wrote:
>> Okay, great. I confirm your patch fixes the problem. I'll push it to
>> core-updates on your behalf.
>
> Pushed as 50243774824597dbd141a074a7be0117dc450cef
>
> Thanks for your help!
i think also need this patch.
[0001-gnu-opencolorio-Fix-cmake-file.patch (text/x-patch, inline)]
From f781494940c801db6c63e22ea12c43ffec547456 Mon Sep 17 00:00:00 2001
Message-ID: <f781494940c801db6c63e22ea12c43ffec547456.1720754660.git.zhengjunjie <at> iscas.ac.cn>
From: Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
Date: Fri, 12 Jul 2024 11:23:34 +0800
Subject: [PATCH] gnu: opencolorio: Fix cmake file.
* gnu/packages/image-processing.scm (opencolorio)[arguments]: Add
fix-OpenColorIOConfig phase.
Change-Id: I317870801f77dc59bcd07b0d11a750bbbb63b327
---
gnu/packages/image-processing.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 32d5b8bb5c..4e83e5c26c 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -276,7 +276,18 @@ (define-public opencolorio
(build-system cmake-build-system)
(arguments
;; XXX: GPU tests are failing.
- (list #:configure-flags #~(list "-DOCIO_BUILD_GPU_TESTS=false")))
+ (list #:configure-flags #~(list "-DOCIO_BUILD_GPU_TESTS=false")
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'install 'fix-OpenColorIOConfig
+ (lambda _
+ ;; Work around a CMake Zlib-detection bug:
+ ;; https://gitlab.kitware.com/cmake/cmake/-/issues/25200
+ ;; make OpenColorIOConfig.cmake is a normal cmake file
+ (substitute*
+ (string-append #$output
+ "/lib/cmake/OpenColorIO/OpenColorIOConfig.cmake")
+ (("\\.#define ZLIB_VERSION \"1\\.3\"")
+ "")))))))
(native-inputs
;; XXX: OCIO has unit tests for OpenShadingLanguage, but they fail.
;; They also require OIIO, but OCIO is an optional dependency to it.
base-commit: 50243774824597dbd141a074a7be0117dc450cef
prerequisite-patch-id: 54dff8d31eca386fe3e0f90879bf9e98dade94d7
--
2.45.2
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 351 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.