media-libs/openimageio: avoid finding OpenEXR 3 for 2.2.{18,19} too

Bug: https://bugs.gentoo.org/816264
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-11-04 20:50:02 +00:00
parent 9deec41183
commit ef7884410b
2 changed files with 18 additions and 0 deletions

View File

@@ -95,6 +95,15 @@ pkg_setup() {
}
src_prepare() {
# Note: on bumps, please try again with OpenEXR 3 + ilmmath!
# Sabotage finding OpenEXR 3 for now to force usage of OpenEXR 2
# (because it mix and matches which version it uses; sed this to
# make sure it'll use OpenEXR 3 if it can, but it won't.)
# bug #821193
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
}

View File

@@ -95,6 +95,15 @@ pkg_setup() {
}
src_prepare() {
# Note: on bumps, please try again with OpenEXR 3 + ilmmath!
# Sabotage finding OpenEXR 3 for now to force usage of OpenEXR 2
# (because it mix and matches which version it uses; sed this to
# make sure it'll use OpenEXR 3 if it can, but it won't.)
# bug #821193
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
}