From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/opensc/
Date: Fri, 15 Mar 2024 04:08:13 +0000 (UTC) [thread overview]
Message-ID: <1710475630.66406184c8ab29ae1a03f4e3b9f8298208ea8f94.sam@gentoo> (raw)
commit: 66406184c8ab29ae1a03f4e3b9f8298208ea8f94
Author: Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Wed Mar 13 18:29:26 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 04:07:10 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66406184
dev-libs/opensc: fix test search path for softhsm, disable broken
These tests are currently getting run only when dev-libs/softhsm is
installed, BUT on some architectures (including amd64), they use the
wrong search path (we install in /usr/$(get_libdir)/softhsm) and thus
think it's not installed anyway and skip.
Firstly, this commit enables these tests by overriding the search path.
However, one of the tests is broken (all architectures). This seems to
be at least partially known upstream as there is a long trail of commits
disabling it for each individual release tag; but upstream seems to
recently have stopped disabling it for unknown reasons. Given the
flakiness, disable this specific test downstream.
Bug: https://bugs.gentoo.org/909781
Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/35737
Signed-off-by: Sam James <sam <AT> gentoo.org>
...{opensc-9999.ebuild => opensc-0.25.0-r1.ebuild} | 30 +++++++++++++---------
dev-libs/opensc/opensc-9999.ebuild | 30 +++++++++++++---------
2 files changed, 36 insertions(+), 24 deletions(-)
diff --git a/dev-libs/opensc/opensc-9999.ebuild b/dev-libs/opensc/opensc-0.25.0-r1.ebuild
similarity index 72%
copy from dev-libs/opensc/opensc-9999.ebuild
copy to dev-libs/opensc/opensc-0.25.0-r1.ebuild
index a470c4913c37..5546950912e9 100644
--- a/dev-libs/opensc/opensc-9999.ebuild
+++ b/dev-libs/opensc/opensc-0.25.0-r1.ebuild
@@ -1,23 +1,23 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit bash-completion-r1 libtool
+inherit autotools bash-completion-r1
DESCRIPTION="Libraries and applications to access smartcards"
HOMEPAGE="https://github.com/OpenSC/OpenSC/wiki"
if [[ ${PV} == *9999 ]]; then
- inherit autotools git-r3
+ inherit git-r3
EGIT_REPO_URI="https://github.com/OpenSC/OpenSC.git"
else
SRC_URI="https://github.com/OpenSC/OpenSC/releases/download/${PV}/${P}.tar.gz"
- KEYWORDS="~amd64 ~ppc64 ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
LICENSE="LGPL-2.1"
-SLOT="0"
+SLOT="0/11"
IUSE="ctapi doc openct notify pace +pcsc-lite readline secure-messaging ssl test zlib"
RESTRICT="!test? ( test )"
@@ -31,7 +31,10 @@ RDEPEND="zlib? ( sys-libs/zlib )
DEPEND="${RDEPEND}
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
- test? ( dev-util/cmocka )"
+ test? (
+ dev-util/cmocka
+ dev-libs/softhsm
+ )"
BDEPEND="virtual/pkgconfig"
REQUIRED_USE="
@@ -41,13 +44,12 @@ REQUIRED_USE="
|| ( pcsc-lite openct ctapi )"
src_prepare() {
+ # This test is known to fail, for a long time upstream has carried
+ # version-specific patches which they would update on every version bump.
+ # There doesn't appear to be a permanent solution yet.
+ sed -i "/test-pkcs11-tool-unwrap-wrap-test.sh/d" "tests/Makefile.am" || die
default
-
- if [[ ${PV} == *9999 ]]; then
- eautoreconf
- else
- elibtoolize
- fi
+ eautoreconf
}
src_configure() {
@@ -71,6 +73,10 @@ src_configure() {
$(use_enable zlib)
}
+src_test() {
+ P11LIB="/usr/$(get_libdir)/softhsm/libsofthsm2.so" default
+}
+
src_install() {
default
diff --git a/dev-libs/opensc/opensc-9999.ebuild b/dev-libs/opensc/opensc-9999.ebuild
index a470c4913c37..5546950912e9 100644
--- a/dev-libs/opensc/opensc-9999.ebuild
+++ b/dev-libs/opensc/opensc-9999.ebuild
@@ -1,23 +1,23 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit bash-completion-r1 libtool
+inherit autotools bash-completion-r1
DESCRIPTION="Libraries and applications to access smartcards"
HOMEPAGE="https://github.com/OpenSC/OpenSC/wiki"
if [[ ${PV} == *9999 ]]; then
- inherit autotools git-r3
+ inherit git-r3
EGIT_REPO_URI="https://github.com/OpenSC/OpenSC.git"
else
SRC_URI="https://github.com/OpenSC/OpenSC/releases/download/${PV}/${P}.tar.gz"
- KEYWORDS="~amd64 ~ppc64 ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
LICENSE="LGPL-2.1"
-SLOT="0"
+SLOT="0/11"
IUSE="ctapi doc openct notify pace +pcsc-lite readline secure-messaging ssl test zlib"
RESTRICT="!test? ( test )"
@@ -31,7 +31,10 @@ RDEPEND="zlib? ( sys-libs/zlib )
DEPEND="${RDEPEND}
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
- test? ( dev-util/cmocka )"
+ test? (
+ dev-util/cmocka
+ dev-libs/softhsm
+ )"
BDEPEND="virtual/pkgconfig"
REQUIRED_USE="
@@ -41,13 +44,12 @@ REQUIRED_USE="
|| ( pcsc-lite openct ctapi )"
src_prepare() {
+ # This test is known to fail, for a long time upstream has carried
+ # version-specific patches which they would update on every version bump.
+ # There doesn't appear to be a permanent solution yet.
+ sed -i "/test-pkcs11-tool-unwrap-wrap-test.sh/d" "tests/Makefile.am" || die
default
-
- if [[ ${PV} == *9999 ]]; then
- eautoreconf
- else
- elibtoolize
- fi
+ eautoreconf
}
src_configure() {
@@ -71,6 +73,10 @@ src_configure() {
$(use_enable zlib)
}
+src_test() {
+ P11LIB="/usr/$(get_libdir)/softhsm/libsofthsm2.so" default
+}
+
src_install() {
default
next reply other threads:[~2024-03-15 4:08 UTC|newest]
Thread overview: 108+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-15 4:08 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-02 9:48 [gentoo-commits] repo/gentoo:master commit in: dev-libs/opensc/ Sam James
2024-05-27 8:16 David Seifert
2024-05-25 12:53 Arthur Zamarin
2024-05-23 21:57 Sam James
2024-05-23 21:56 Sam James
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-04-22 15:11 David Seifert
2024-04-15 9:00 Arthur Zamarin
2024-04-15 9:00 Arthur Zamarin
2024-04-15 9:00 Arthur Zamarin
2024-04-15 8:45 Arthur Zamarin
2024-04-15 8:43 Arthur Zamarin
2024-03-17 6:27 Ionen Wolkens
2024-03-15 4:08 Sam James
2024-03-09 12:04 David Seifert
2024-02-12 13:05 Sam James
2024-02-12 13:05 Sam James
2024-02-12 10:24 Sam James
2024-01-11 14:11 David Seifert
2024-01-11 14:11 David Seifert
2024-01-11 14:11 David Seifert
2023-11-23 17:12 Sam James
2023-11-23 17:12 Sam James
2023-11-17 7:47 Sam James
2023-09-10 5:54 WANG Xuerui
2023-08-23 9:02 David Seifert
2023-08-21 11:08 Sam James
2023-08-21 11:08 Sam James
2023-08-21 11:08 Sam James
2023-08-06 9:11 David Seifert
2023-08-05 14:01 Arthur Zamarin
2023-08-05 11:36 Arthur Zamarin
2023-08-05 11:36 Arthur Zamarin
2023-08-05 11:36 Arthur Zamarin
2023-08-05 11:35 Arthur Zamarin
2023-07-17 23:00 Sam James
2023-07-10 16:07 Jakov Smolić
2023-07-09 16:52 Arthur Zamarin
2023-07-09 11:03 Arthur Zamarin
2023-07-09 9:01 Sam James
2023-07-07 3:29 Sam James
2023-05-31 8:06 David Seifert
2023-05-31 8:06 David Seifert
2023-05-31 8:06 David Seifert
2023-03-30 16:09 Arthur Zamarin
2023-03-30 16:00 Arthur Zamarin
2023-03-26 18:18 Arthur Zamarin
2023-02-01 17:59 David Seifert
2023-02-01 11:52 David Seifert
2023-02-01 11:42 David Seifert
2022-09-01 9:28 David Seifert
2022-05-07 13:20 Jakov Smolić
2022-05-07 10:56 Jakov Smolić
2022-05-07 10:56 Jakov Smolić
2022-05-07 10:30 Arthur Zamarin
2022-05-07 10:25 Arthur Zamarin
2021-09-01 11:59 Mikle Kolyada
2021-04-30 15:13 Mikle Kolyada
2021-04-30 15:13 Mikle Kolyada
2021-01-20 0:33 Sam James
2021-01-20 0:05 Sam James
2021-01-20 0:04 Sam James
2021-01-20 0:04 Sam James
2021-01-20 0:02 Sam James
2020-12-04 20:40 Mikle Kolyada
2020-08-16 11:23 Stefan Strogin
2020-04-22 8:32 Mikle Kolyada
2020-01-27 10:55 Mikle Kolyada
2020-01-17 10:30 Agostino Sarubbo
2020-01-17 10:28 Agostino Sarubbo
2020-01-17 10:27 Agostino Sarubbo
2020-01-17 9:33 Agostino Sarubbo
2020-01-17 9:29 Agostino Sarubbo
2020-01-13 12:08 Mikle Kolyada
2020-01-13 12:03 Mikle Kolyada
2019-05-19 15:48 Thomas Deutschmann
2019-04-20 17:57 Mikle Kolyada
2019-04-14 16:18 Mikle Kolyada
2019-04-13 7:38 Sergei Trofimovich
2019-04-07 21:01 Sergei Trofimovich
2019-04-04 11:54 Mikle Kolyada
2019-04-02 18:10 Alon Bar-Lev
2019-04-02 12:19 Mikle Kolyada
2018-09-27 23:55 Alon Bar-Lev
2018-09-15 19:14 Alon Bar-Lev
2018-09-14 20:50 Alon Bar-Lev
2018-09-09 21:52 Jeroen Roovers
2018-08-30 20:07 Markus Meier
2018-08-19 7:26 Matt Turner
2018-08-18 22:31 Sergei Trofimovich
2018-08-18 22:24 Sergei Trofimovich
2018-08-17 0:21 Mikle Kolyada
2018-08-16 0:39 Thomas Deutschmann
2017-07-20 5:03 Alon Bar-Lev
2017-03-25 18:11 Alon Bar-Lev
2017-03-15 6:01 Jeroen Roovers
2017-03-07 20:18 Michael Weber
2017-03-04 14:02 Agostino Sarubbo
2017-03-04 13:46 Agostino Sarubbo
2017-03-04 13:38 Agostino Sarubbo
2017-03-03 19:14 Tobias Klausmann
2016-06-26 0:09 Anthony G. Basile
2016-06-11 15:54 Alon Bar-Lev
2015-09-04 18:37 Alon Bar-Lev
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=1710475630.66406184c8ab29ae1a03f4e3b9f8298208ea8f94.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