Summary: | media-libs/openimageio-2.4.4.1: Failing to compile due to media-libs/opencolorio and dev-libs/expat cmake imports | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ivan J. <parazyd> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | freedesktop-bugs, negril.nx+gentoo, proxy-maint, sping |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 895714 | ||
Bug Blocks: | |||
Attachments: |
emerge.info
build.log |
Description
Ivan J.
2022-10-20 11:39:52 UTC
Created attachment 824849 [details]
emerge.info
Created attachment 824851 [details]
build.log
I run into the same build error locally. When playing with things a bit, I find that file /usr/lib64/cmake/OpenColorIO/OpenColorIOTargets.cmake has this block of code: >> set_target_properties(OpenColorIO::OpenColorIO PROPERTIES >> INTERFACE_COMPILE_FEATURES "cxx_std_11" >> INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" >> INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:expat::expat>;\$<LINK_ONLY:Imath::Imath>;\$<LINK_ONLY:pystring::pystring>;\$<LINK_ONLY:sampleicc::sampleicc>;\$<LINK_ONLY:utils::from_chars>;\$<LINK_ONLY:utils::strings>;\$<LINK_ONLY:yaml-cpp>" >> ) >> My understanding is that OpenColorIO is pulling in Expat (and others) as a public link time dependency while it seems more like a private one. Even if we were to add "find_package(expat CONFIG REQUIRED)" somewhere to defined target "expat::expat", we would hit Imath next, and so on, I tried. There is no way to satisfy sampleicc defined at https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/main/ext/sampleicc/CMakeLists.txt that I could think of. PS: There was this known candidate bug https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1415 but it seems less related than I expected. Any updates on this one? It's still happening. This should be fixed in opencolorio-2.2.1 -> https://bugs.gentoo.org/895714 |