public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/openjpeg/
Date: Sun, 22 Jun 2025 21:56:51 +0000 (UTC)	[thread overview]
Message-ID: <1750629390.efb07e1855abf7e7f3a42de4e4dadb6d56e38bcf.asturm@gentoo> (raw)

commit:     efb07e1855abf7e7f3a42de4e4dadb6d56e38bcf
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Sat Jun 14 04:54:45 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jun 22 21:56:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efb07e18

media-libs/openjpeg: rm vendored libs

Closes: https://bugs.gentoo.org/957492
Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Part-of: https://github.com/gentoo/gentoo/pull/42591
Closes: https://github.com/gentoo/gentoo/pull/42591
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-libs/openjpeg/openjpeg-2.5.3-r1.ebuild | 100 +++++++++++++++++++++++++++
 1 file changed, 100 insertions(+)

diff --git a/media-libs/openjpeg/openjpeg-2.5.3-r1.ebuild b/media-libs/openjpeg/openjpeg-2.5.3-r1.ebuild
new file mode 100644
index 000000000000..7d7c5768cb00
--- /dev/null
+++ b/media-libs/openjpeg/openjpeg-2.5.3-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib flag-o-matic
+
+# Make sure that test data are not newer than release;
+# otherwise we will see "Found-But-No-Test" test failures!
+#
+# To update: Go to https://github.com/uclouvain/openjpeg-data and grab the hash
+# of the latest possible commit whose commit date is older than the release
+# date.
+MY_TESTDATA_COMMIT="39524bd3a601d90ed8e0177559400d23945f96a9"
+
+DESCRIPTION="Open-source JPEG 2000 library"
+HOMEPAGE="https://www.openjpeg.org"
+SRC_URI="https://github.com/uclouvain/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+	test? ( https://github.com/uclouvain/openjpeg-data/archive/${MY_TESTDATA_COMMIT}.tar.gz -> ${PN}-data_20241113.tar.gz )"
+
+LICENSE="BSD-2"
+SLOT="2/7" # based on SONAME
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	media-libs/lcms:2
+	media-libs/libpng:0=
+	media-libs/tiff:=
+	sys-libs/zlib:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="doc? ( app-text/doxygen )"
+
+DOCS=( AUTHORS.md CHANGELOG.md NEWS.md README.md THANKS.md )
+
+src_prepare() {
+	if use test; then
+		mv "${WORKDIR}"/openjpeg-data-${MY_TESTDATA_COMMIT} "${WORKDIR}"/data ||
+			die "Failed to rename test data"
+	fi
+
+	rm -r thirdparty/lib* thirdparty/include || die
+	cmake_src_prepare
+}
+
+multilib_src_configure() {
+	append-lfs-flags
+
+	local mycmakeargs=(
+		-DBUILD_TESTING="$(multilib_native_usex test)"
+		-DBUILD_DOC=$(multilib_native_usex doc ON OFF)
+		-DBUILD_CODEC=$(multilib_is_native_abi && echo ON || echo OFF)
+		-DBUILD_STATIC_LIBS=OFF
+		-DBUILD_THIRDPARTY=OFF
+	)
+
+	# Cheat a little bit and force disabling fixed point magic
+	# The test suite is extremely fragile to small changes
+	# bug #715130, bug #715422
+	# https://github.com/uclouvain/openjpeg/issues/1017
+	if multilib_is_native_abi && use test ; then
+		append-cflags "-ffp-contract=off"
+	fi
+
+	cmake_src_configure
+}
+
+multilib_src_test() {
+	if ! multilib_is_native_abi ; then
+		elog "Cannot run tests for non-multilib abi."
+		return 0
+	fi
+
+	pushd "${BUILD_DIR}" > /dev/null || die
+	[[ -e CTestTestfile.cmake ]] || die "Test suite not available! Check source!"
+
+	elog "Note: Upstream maintains a list of known test failures."
+	elog "We collect all the known failures and skip them."
+	elog
+
+	local toskip=( "${S}"/tools/travis-ci/knownfailures-all.txt )
+	if use amd64 ; then
+		toskip+=( "${S}"/tools/travis-ci/knownfailures-*x86_64*.txt )
+	elif use x86 || use arm || use arm64; then
+		toskip+=( "${S}"/tools/travis-ci/knownfailures-*i386*.txt )
+	fi
+
+	local exp=$(sort "${toskip[@]}" | uniq | tr '\n' '|'; assert)
+	popd > /dev/null || die
+
+	local myctestargs=()
+	if [[ -n ${TEST_VERBOSE} ]]; then
+		myctestargs+=( --extra-verbose --output-on-failure )
+	fi
+	myctestargs+=( -E "(${exp::-1})" )
+
+	cmake_src_test
+}


             reply	other threads:[~2025-06-22 21:56 UTC|newest]

Thread overview: 148+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-22 21:56 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-06  3:09 [gentoo-commits] repo/gentoo:master commit in: media-libs/openjpeg/ Sam James
2025-09-23 17:01 Arthur Zamarin
2025-09-23 12:08 Arthur Zamarin
2025-09-22 15:29 Sam James
2025-09-22 15:29 Sam James
2025-05-05 23:09 Sam James
2025-04-28 12:36 Arthur Zamarin
2025-04-28  5:53 Sam James
2025-04-28  5:53 Sam James
2025-04-28  4:01 Sam James
2025-04-28  3:54 Sam James
2025-04-28  3:54 Sam James
2024-12-12  5:15 Sam James
2024-10-08 11:07 Sam James
2024-09-24 15:03 Arthur Zamarin
2024-09-23  8:18 Arthur Zamarin
2024-09-23  7:13 Arthur Zamarin
2024-09-23  0:32 Sam James
2024-09-23  0:32 Sam James
2024-03-14  5:03 Sam James
2024-03-10 14:47 Sam James
2024-03-09 11:53 Yixun Lan
2023-12-23 20:00 Arthur Zamarin
2023-12-19 17:01 Arthur Zamarin
2023-12-18  7:10 Joonas Niilola
2023-12-18  4:51 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-07-11 18:43 Matt Turner
2023-04-13 10:52 David Seifert
2022-07-12  6:56 Sam James
2022-07-06  6:58 Arthur Zamarin
2022-07-05  8:05 Sam James
2022-07-05  7:09 Joonas Niilola
2022-07-05  6:04 Agostino Sarubbo
2022-07-05  6:04 Agostino Sarubbo
2022-07-05  6:02 Agostino Sarubbo
2022-07-05  0:01 Sam James
2022-07-04 11:39 Joonas Niilola
2022-07-04 11:20 Agostino Sarubbo
2022-05-13 12:19 WANG Xuerui
2022-04-18 21:01 Sam James
2022-04-07  3:37 Sam James
2021-10-15 10:22 Joonas Niilola
2021-09-20 14:09 James Le Cuirot
2021-02-11  8:14 Sam James
2021-01-23 18:13 Andreas Sturmlechner
2021-01-17 11:41 Sergei Trofimovich
2021-01-10  9:35 Sam James
2021-01-07 10:42 Sam James
2021-01-07  2:35 Sam James
2021-01-07  1:10 Sam James
2021-01-06 14:27 Fabian Groffen
2021-01-06  6:37 Sam James
2021-01-06  6:34 Sam James
2021-01-06  3:10 Sam James
2020-03-31 18:40 Thomas Deutschmann
2020-03-31 17:58 Thomas Deutschmann
2020-03-30 13:36 Agostino Sarubbo
2020-03-29 11:18 Mart Raudsepp
2020-03-26 18:01 Sergei Trofimovich
2020-03-26 12:04 Agostino Sarubbo
2020-03-26 10:24 Agostino Sarubbo
2020-03-26 10:22 Agostino Sarubbo
2020-03-26 10:21 Agostino Sarubbo
2020-03-26 10:20 Agostino Sarubbo
2020-03-26 10:17 Agostino Sarubbo
2019-08-11 21:55 Aaron Bauman
2019-07-05 15:43 Sergei Trofimovich
2019-06-14  9:00 Agostino Sarubbo
2019-06-13 14:52 Agostino Sarubbo
2019-06-13 14:31 Agostino Sarubbo
2019-06-13 14:19 Agostino Sarubbo
2019-06-13 14:17 Agostino Sarubbo
2019-06-13 14:12 Agostino Sarubbo
2019-06-13  4:28 Markus Meier
2019-06-11 22:15 Sergei Trofimovich
2019-06-11  2:23 Aaron Bauman
2019-06-10 19:50 Thomas Deutschmann
2019-04-11 11:40 Lars Wendler
2019-01-29 11:54 Mikle Kolyada
2019-01-17 23:15 Sergei Trofimovich
2019-01-04  0:46 Mart Raudsepp
2019-01-02 12:18 Markus Meier
2018-12-30 22:16 Matt Turner
2018-12-28  8:14 Mikle Kolyada
2018-12-27 18:48 Fabian Groffen
2018-12-26 17:23 Matt Turner
2018-12-26 11:46 Sergei Trofimovich
2018-12-25 11:11 Sergei Trofimovich
2018-12-20  1:30 Thomas Deutschmann
2018-12-20  1:10 Thomas Deutschmann
2018-11-03 21:46 Andreas Sturmlechner
2018-10-11 18:35 Andreas Sturmlechner
2018-10-11 18:35 Andreas Sturmlechner
2018-09-15  2:31 Andreas Sturmlechner
2018-09-14  8:28 Tobias Klausmann
2018-09-08 12:53 Mart Raudsepp
2018-09-03 17:40 Markus Meier
2018-09-01 23:26 Sergei Trofimovich
2018-09-01 23:22 Sergei Trofimovich
2018-09-01 23:18 Sergei Trofimovich
2018-08-30  8:48 Mikle Kolyada
2018-08-30  6:16 Sergei Trofimovich
2018-08-29  1:07 Thomas Deutschmann
2018-08-27 20:15 Sergei Trofimovich
2018-08-18 14:34 Andreas Sturmlechner
2018-06-22  9:56 Mikle Kolyada
2018-03-28 20:59 Sebastian Pipping
2018-03-23 23:42 Aaron Bauman
2018-03-03 12:29 Mart Raudsepp
2017-10-24 18:59 Sergei Trofimovich
2017-10-21 13:25 Tobias Klausmann
2017-10-14  6:19 Markus Meier
2017-10-13  9:09 Sergei Trofimovich
2017-10-13  0:13 Sergei Trofimovich
2017-10-12 21:19 Thomas Deutschmann
2017-10-11 17:59 Manuel Rüger
2017-10-10 23:04 Sergei Trofimovich
2017-10-05 10:44 Lars Wendler
2017-09-25  8:12 Sergei Trofimovich
2017-08-31 15:18 Matt Turner
2017-08-25 21:46 Mikle Kolyada
2017-08-25  4:44 Markus Meier
2017-08-21 17:31 Austin English
2017-08-20 20:20 Sergei Trofimovich
2017-08-20 19:16 Thomas Deutschmann
2017-08-10 15:28 Thomas Deutschmann
2017-03-28 22:29 Michael Weber
2017-01-29 19:15 Fabian Groffen
2016-12-11 19:21 Michał Górny
2016-12-07 23:12 Thomas Deutschmann
2016-09-29 13:28 Agostino Sarubbo
2016-09-29 13:14 Agostino Sarubbo
2016-09-29 12:35 Agostino Sarubbo
2016-09-29  9:41 Agostino Sarubbo
2016-09-28 20:39 Thomas Deutschmann
2016-09-27  8:24 Tobias Klausmann
2016-09-27  4:21 Jeroen Roovers
2016-09-26 18:58 Agostino Sarubbo
2016-09-26 18:56 Agostino Sarubbo
2016-09-26 18:38 Thomas Deutschmann
2016-09-26 14:07 Thomas Deutschmann
2015-11-20  1:23 Mike Frysinger
2015-09-01 19:55 Tobias Klausmann

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=1750629390.efb07e1855abf7e7f3a42de4e4dadb6d56e38bcf.asturm@gentoo \
    --to=asturm@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