From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/osl/, media-libs/osl/files/
Date: Thu, 2 Dec 2021 04:54:30 +0000 (UTC) [thread overview]
Message-ID: <1638420863.4a75e3cc1b8326d387b156282e4f9635b4a97197.sam@gentoo> (raw)
commit: 4a75e3cc1b8326d387b156282e4f9635b4a97197
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 2 04:54:13 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 2 04:54:23 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a75e3cc
media-libs/osl: try again to force ilmbase
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-libs/osl/files/osl-1.11.16.0-no-imath.patch | 49 +++++++++++++++++++++++
media-libs/osl/osl-1.11.16.0-r2.ebuild | 7 ++--
2 files changed, 53 insertions(+), 3 deletions(-)
diff --git a/media-libs/osl/files/osl-1.11.16.0-no-imath.patch b/media-libs/osl/files/osl-1.11.16.0-no-imath.patch
new file mode 100644
index 000000000000..a8e5c1f23116
--- /dev/null
+++ b/media-libs/osl/files/osl-1.11.16.0-no-imath.patch
@@ -0,0 +1,49 @@
+Force finding OpenEXR / IlmBase instead of imath for now.
+--- a/src/cmake/modules/FindOpenEXR.cmake
++++ b/src/cmake/modules/FindOpenEXR.cmake
+@@ -39,43 +39,10 @@
+ #
+
+ # First, try to fine just the right config files
+-find_package(Imath CONFIG)
+-if (NOT TARGET Imath::Imath)
+- # Couldn't find Imath::Imath, maybe it's older and has IlmBase?
+- find_package(IlmBase CONFIG)
+-endif ()
++find_package(IlmBase CONFIG)
+ find_package(OpenEXR CONFIG)
+
+-if (TARGET OpenEXR::OpenEXR AND TARGET Imath::Imath)
+- # OpenEXR 3.x if both of these targets are found
+- set (FOUND_OPENEXR_WITH_CONFIG 1)
+- if (NOT OpenEXR_FIND_QUIETLY)
+- message (STATUS "Found CONFIG for OpenEXR 3 (OPENEXR_VERSION=${OpenEXR_VERSION})")
+- endif ()
+-
+- # Mimic old style variables
+- set (OPENEXR_VERSION ${OpenEXR_VERSION})
+- get_target_property(IMATH_INCLUDES Imath::Imath INTERFACE_INCLUDE_DIRECTORIES)
+- get_target_property(ILMBASE_INCLUDES Imath::Imath INTERFACE_INCLUDE_DIRECTORIES)
+- get_target_property(ILMBASE_IMATH_LIBRARY Imath::Imath INTERFACE_LINK_LIBRARIES)
+- get_target_property(IMATH_LIBRARY Imath::Imath INTERFACE_LINK_LIBRARIES)
+- get_target_property(OPENEXR_IEX_LIBRARY OpenEXR::Iex INTERFACE_LINK_LIBRARIES)
+- get_target_property(OPENEXR_ILMTHREAD_LIBRARY OpenEXR::IlmThread INTERFACE_LINK_LIBRARIES)
+- set (ILMBASE_LIBRARIES ${ILMBASE_IMATH_LIBRARY})
+- set (ILMBASE_FOUND true)
+-
+- get_target_property(OPENEXR_INCLUDES OpenEXR::OpenEXR INTERFACE_INCLUDE_DIRECTORIES)
+- get_target_property(OPENEXR_ILMIMF_LIBRARY OpenEXR::OpenEXR INTERFACE_LINK_LIBRARIES)
+- set (OPENEXR_LIBRARIES ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_ILMTHREAD_LIBRARY} ${ILMBASE_LIBRARIES})
+- set (OPENEXR_FOUND true)
+-
+- # Link with pthreads if required
+- find_package (Threads)
+- if (CMAKE_USE_PTHREADS_INIT)
+- list (APPEND ILMBASE_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
+- endif ()
+-
+-elseif (TARGET OpenEXR::IlmImf AND TARGET IlmBase::Imath AND
++if (TARGET OpenEXR::IlmImf AND TARGET IlmBase::Imath AND
+ (OPENEXR_VERSION VERSION_GREATER_EQUAL 2.4 OR OpenEXR_VERSION VERSION_GREATER_EQUAL 2.4))
+ # OpenEXR 2.4 or 2.5 with exported config
+ set (FOUND_OPENEXR_WITH_CONFIG 1)
diff --git a/media-libs/osl/osl-1.11.16.0-r2.ebuild b/media-libs/osl/osl-1.11.16.0-r2.ebuild
index ceada4f92ae6..3dd9f84f2cf7 100644
--- a/media-libs/osl/osl-1.11.16.0-r2.ebuild
+++ b/media-libs/osl/osl-1.11.16.0-r2.ebuild
@@ -63,6 +63,10 @@ RESTRICT="test"
S="${WORKDIR}/OpenShadingLanguage-Release-${PV}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.11.16.0-no-imath.patch
+)
+
llvm_check_deps() {
has_version -r "sys-devel/clang:${LLVM_SLOT}"
}
@@ -85,9 +89,6 @@ src_configure() {
local gcc=$(tc-getCC)
local mycmakeargs=(
- # Force use of OpenEXR/ilmbase
- -DCMAKE_DISABLE_FIND_PACKAGE_Imath=ON
-
# LLVM 10+ needs C++14
-DCMAKE_CXX_STANDARD=14
-DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
next reply other threads:[~2021-12-02 4:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-02 4:54 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-09 23:05 [gentoo-commits] repo/gentoo:master commit in: media-libs/osl/, media-libs/osl/files/ Sam James
2022-02-15 19:51 Sam James
2021-06-10 0:51 Sam James
2020-07-30 22:11 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1638420863.4a75e3cc1b8326d387b156282e4f9635b4a97197.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox