Extract from build log (will attach full log): ... [17/158] /usr/bin/x86_64-pc-linux-gnu-g++ -DOpenImageIO_EXPORTS -DOpenImageIO_Util_EXPORTS -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FREETYPE=1 -DUSE_JPEG_TURBO=1 -DUSE_OCIO=1 -DUSE_OPENCOLORIO=1 -DUSE_TBB=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Iinclude/OpenImageIO -Iinclude -Isrc/include -I/var/tmp/portage/media-libs/openimageio-2.3.8.0/work/oiio-2.3.8.0/src/include -isystem /usr/include/Imath-3 -O2 -pipe -fPIC -Wall -Wno-unused-local-typedefs -Wno-unused-result -Wno-aligned-new -Wno-noexcept-type -fno-math-errno -msse2 -std=c++14 -MD -MT src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o -MF src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o.d -o src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o -c /var/tmp/portage/media-libs/openimageio-2.3.8.0/work/oiio-2.3.8.0/src/libutil/strutil.cpp FAILED: src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DOpenImageIO_EXPORTS -DOpenImageIO_Util_EXPORTS -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FREETYPE=1 -DUSE_JPEG_TURBO=1 -DUSE_OCIO=1 -DUSE_OPENCOLORIO=1 -DUSE_TBB=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Iinclude/OpenImageIO -Iinclude -Isrc/include -I/var/tmp/portage/media-libs/openimageio-2.3.8.0/work/oiio-2.3.8.0/src/include -isystem /usr/include/Imath-3 -O2 -pipe -fPIC -Wall -Wno-unused-local-typedefs -Wno-unused-result -Wno-aligned-new -Wno-noexcept-type -fno-math-errno -msse2 -std=c++14 -MD -MT src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o -MF src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o.d -o src/libutil/CMakeFiles/OpenImageIO_Util.dir/strutil.cpp.o -c /var/tmp/portage/media-libs/openimageio-2.3.8.0/work/oiio-2.3.8.0/src/libutil/strutil.cpp In file included from /var/tmp/portage/media-libs/openimageio-2.3.8.0/work/oiio-2.3.8.0/src/include/OpenImageIO/fmath.h:40, from /var/tmp/portage/media-libs/openimageio-2.3.8.0/work/oiio-2.3.8.0/src/include/OpenImageIO/hash.h:31, from /var/tmp/portage/media-libs/openimageio-2.3.8.0/work/oiio-2.3.8.0/src/include/OpenImageIO/strutil.h:24, from /var/tmp/portage/media-libs/openimageio-2.3.8.0/work/oiio-2.3.8.0/src/libutil/strutil.cpp:27: include/OpenImageIO/Imath.h:16:13: fatal error: Imath/ImathColor.h: No such file or directory 16 | # include <Imath/ImathColor.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. ...
Created attachment 747801 [details] Full Build log Full Build log
Thanks for the report. This Imath pain doesn't seem to stop!
Do you need more information (emerge -pqv, environment files)?
(In reply to Ian Pickworth from comment #3) > Do you need more information (emerge -pqv, environment files)? Is there any chance you're comfortable briefly editing the ebuild? Putting the 'sed' bit back at the top of src_prepare: https://gitweb.gentoo.org/repo/gentoo.git/commit/media-libs/openimageio?id=c694e446bc9a0e73dd9cc0586c82c05c2a5c2734 (no - lines in front though).
I'll have a go - give me a few hours...
I copied openimageio-2.3.8.0.ebuild to openimageio-2.3.8.0-r1.ebuild and made this change: ian2 ~ # diff -crB /usr/portage/media-libs/openimageio/openimageio-2.3.8.0.ebuild /usr/portage/media-libs/openimageio/openimageio-2.3.8.0-r1.ebuild *** /usr/portage/media-libs/openimageio/openimageio-2.3.8.0.ebuild 2021-10-31 09:10:00.000000000 +0000 --- /usr/portage/media-libs/openimageio/openimageio-2.3.8.0-r1.ebuild 2021-11-01 12:00:10.000000000 +0000 *************** *** 103,108 **** --- 103,112 ---- } src_prepare() { + sed -i \ + -e 's/find_package(OpenEXR CONFIG)/find_package(OpenEXR-3 CONFIG)/' \ + src/cmake/modules/FindOpenEXR.cmake || die + cmake_src_prepare cmake_comment_add_subdirectory src/fonts ian2 ~ # After updating the manifest, emerging openimageio-2.3.8.0-r1 worked, so that appears to fix the Imath issue.
Thanks a bunch! I think I'd assumed I added it when it was obsolete and dropped it without thinking. My apologies and again appreciated for the testing. Fixing now...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d79435986200507cccba60dd4bcf2cf168f5a0c commit 1d79435986200507cccba60dd4bcf2cf168f5a0c Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-01 12:35:54 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-01 12:36:49 +0000 media-libs/openimageio: fix building against OpenEXR 2 Closes: https://bugs.gentoo.org/821193 Signed-off-by: Sam James <sam@gentoo.org> ...{openimageio-2.3.8.0.ebuild => openimageio-2.3.8.0-r1.ebuild} | 9 +++++++++ 1 file changed, 9 insertions(+)
It seems like older openimageio versions also needs this work around to build. I tested 2.2.18.0-r1 and 2.2.15.0-r1
(In reply to Sebastian Parborg from comment #9) > It seems like older openimageio versions also needs this work around to > build. > I tested 2.2.18.0-r1 and 2.2.15.0-r1 May need a slightly different hack there to ensure we definitely build against the older slot. You able to look at it? I can try if _really_ needed but got other bits on list too
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42905a79164d67fea0dcc8f5138a78b8553d5996 commit 42905a79164d67fea0dcc8f5138a78b8553d5996 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-12 02:01:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-12 03:55:31 +0000 media-libs/openimageio: flip over to OpenEXR 3 Things are getting complicated with trying to keep Blender on OpenEXR 2. Blender needs to switch as a result, but so do its dependencies. Bug: https://bugs.gentoo.org/831357 Bug: https://bugs.gentoo.org/832862 Bug: https://bugs.gentoo.org/821193 Signed-off-by: Sam James <sam@gentoo.org> .../openimageio-2.3.11.0-imath-openexr-3.patch | 302 +++++++++++++++++++++ .../openimageio/openimageio-2.3.11.0-r1.ebuild | 190 +++++++++++++ 2 files changed, 492 insertions(+)