commit:     949005d1a1d77647a097371ba116be2f740c4b8c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 26 23:03:45 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 26 23:05:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=949005d1

media-libs/opencolorio: avoid automagic OSL test dependency

If OSL has not yet been rebuilt against new OpenEXR and so on,
it might lead to a build failure. Let's just avoid the test dep
entirely.

Closes: https://bugs.gentoo.org/833933
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild 
b/media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild
index b8551efefa43..16fb18b5889c 100644
--- a/media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild
+++ b/media-libs/opencolorio/opencolorio-2.1.1-r7.ebuild
@@ -64,6 +64,10 @@ src_prepare() {
 
        sed -i -e "s|LIBRARY DESTINATION lib|LIBRARY DESTINATION 
$(get_libdir)|g" 
{,src/bindings/python/,src/OpenColorIO/,src/libutils/oiiohelpers/,src/libutils/oglapphelpers/}CMakeLists.txt
 || die
        sed -i -e "s|ARCHIVE DESTINATION lib|ARCHIVE DESTINATION 
$(get_libdir)|g" 
{,src/bindings/python/,src/OpenColorIO/,src/libutils/oiiohelpers/,src/libutils/oglapphelpers/}CMakeLists.txt
 || die
+
+       # Avoid automagic test dependency on OSL, bug #833933
+       # Can cause problems during e.g. OpenEXR unsplitting migration
+       cmake_run_in tests cmake_comment_add_subdirectory osl
 }
 
 src_configure() {

Reply via email to