From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D893815808B for ; Tue, 15 Feb 2022 19:51:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F13A2E07DF; Tue, 15 Feb 2022 19:51:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B948AE07DF for ; Tue, 15 Feb 2022 19:51:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BF7C343122 for ; Tue, 15 Feb 2022 19:51:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 048C71F1 for ; Tue, 15 Feb 2022 19:51:20 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1644954574.130798de3e0e6eb70956b32eb72d0ede71a0b3c1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/openexr/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/openexr/openexr-3.1.4-r1.ebuild X-VCS-Directories: media-libs/openexr/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 130798de3e0e6eb70956b32eb72d0ede71a0b3c1 X-VCS-Branch: master Date: Tue, 15 Feb 2022 19:51:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0a133865-abd0-4920-a2ab-8fa3fae3aba3 X-Archives-Hash: ac3f109a427f3d6b3d6e9a12cbd5e653 commit: 130798de3e0e6eb70956b32eb72d0ede71a0b3c1 Author: Sam James gentoo org> AuthorDate: Sat Feb 12 17:59:51 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Feb 15 19:49:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=130798de media-libs/openexr: unslot We've tried hard to make this work but it can't, for two reasons: 1. As time goes on, more and more packages port to OpenEXR 3 upstream, which means we have to fix more and more of them to use our special/different paths (e.g. OpenEXR-3, Imath-3); 2. ABI breakage. We _must_ have everything (or a significant portion of the stack for e.g. Blender, including OIIO and OCIO) built against the same major versions, or we hit both runtime and build-time breakages (depending on the situation). I've tried to keep fixing the avalanche of build failures but it's brittle and ultimately doesn't end up solving all the problems anyway. Indeed, this effort to unslot started after I did a sprint to fix the remaining issues, and then more popped up in their place. Most packages now support OpenEXR 3. Bug: https://bugs.gentoo.org/833158 Bug: https://bugs.gentoo.org/831357 Bug: https://bugs.gentoo.org/832862 Bug: https://bugs.gentoo.org/821247 Signed-off-by: Sam James gentoo.org> media-libs/openexr/openexr-3.1.4-r1.ebuild | 74 ++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/media-libs/openexr/openexr-3.1.4-r1.ebuild b/media-libs/openexr/openexr-3.1.4-r1.ebuild new file mode 100644 index 000000000000..d9484ddf8328 --- /dev/null +++ b/media-libs/openexr/openexr-3.1.4-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +MY_PN=OpenEXR +MY_PV=$(ver_cut 1) +MY_P=${MY_PN}-${MY_PV} + +DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" +HOMEPAGE="https://www.openexr.com/" +SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/30" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 -ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" +IUSE="cpu_flags_x86_avx doc examples large-stack static-libs utils test threads" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/imath-3.1.4-r1:= + sys-libs/zlib + !media-libs/openexr:3 + !media-libs/ilmbase +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( dev-python/breathe ) + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.1-0003-disable-failing-test.patch +) + +DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md docs/SymbolVisibility.md ) + +src_prepare() { + # Fix path for testsuite + sed -e "s:/var/tmp/:${T}:" \ + -i "${S}"/src/test/${MY_PN}{,Fuzz,Util}Test/tmpDir.h || die "failed to set temp path for tests" + + cmake_src_prepare + + #mv "${S}"/cmake/${MY_PN}.pc.in "${S}"/cmake/${MY_P}.pc.in || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=$(usex !static-libs) + -DBUILD_TESTING=$(usex test) + -DDOCS=$(usex doc) + -DOPENEXR_BUILD_TOOLS=$(usex utils) + -DOPENEXR_ENABLE_LARGE_STACK=$(usex large-stack) + -DOPENEXR_ENABLE_THREADING=$(usex threads) + -DOPENEXR_INSTALL_EXAMPLES=$(usex examples) + -DOPENEXR_INSTALL_PKG_CONFIG=ON + -DOPENEXR_INSTALL_TOOLS=$(usex utils) + -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy + ) + + use test && mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS=ON ) + + cmake_src_configure +} + +src_install() { + use examples && docompress -x /usr/share/doc/${PF}/examples + + cmake_src_install +}