diff options
author | Christopher Byrne <salah.coronya@gmail.com> | 2023-09-15 11:45:01 -0500 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2023-09-16 11:36:56 -0500 |
commit | ae59aba546e498bc1a8a1ec17b4c070d6af489f9 (patch) | |
tree | 4d8a30e6053940fd80a6424eba674891ac1e0392 /app-crypt | |
parent | dev-libs/gobject-introspection: Version bump to 1.78.1 (diff) | |
download | gentoo-ae59aba546e498bc1a8a1ec17b4c070d6af489f9.tar.gz gentoo-ae59aba546e498bc1a8a1ec17b4c070d6af489f9.tar.bz2 gentoo-ae59aba546e498bc1a8a1ec17b4c070d6af489f9.zip |
app-crypt/tpm2-openssl: Fix build with slibtool
Closes: https://bugs.gentoo.org/914239
Closes: https://github.com/gentoo/gentoo/pull/32814
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/tpm2-openssl/files/tpm2-openssl-1.1.1-build-Fix-undefined-references-when-using-slibtool.patch | 26 | ||||
-rw-r--r-- | app-crypt/tpm2-openssl/tpm2-openssl-1.1.1-r1.ebuild | 12 |
2 files changed, 37 insertions, 1 deletions
diff --git a/app-crypt/tpm2-openssl/files/tpm2-openssl-1.1.1-build-Fix-undefined-references-when-using-slibtool.patch b/app-crypt/tpm2-openssl/files/tpm2-openssl-1.1.1-build-Fix-undefined-references-when-using-slibtool.patch new file mode 100644 index 000000000000..4045a940756f --- /dev/null +++ b/app-crypt/tpm2-openssl/files/tpm2-openssl-1.1.1-build-Fix-undefined-references-when-using-slibtool.patch @@ -0,0 +1,26 @@ +From 8c87d708a168ab090f8e5fc01f2bf1db5103427d Mon Sep 17 00:00:00 2001 +From: Christopher Byrne <salah.coronya@gmail.com> +Date: Fri, 15 Sep 2023 11:26:55 -0500 +Subject: [PATCH] build: Fix undefined references when using slibtool + +Signed-off-by: Christopher Byrne <salah.coronya@gmail.com> +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index a0ad0d5..34a751c 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -50,7 +50,7 @@ tpm2_la_LIBADD = $(TSS2_ESYS_LIBS) $(TSS2_TCTILDR_LIBS) $(LIBS) $(CODE_COVERAGE_ + if TSS2_RC + tpm2_la_LIBADD += $(TSS2_RC_LIBS) + endif +-tpm2_la_LDFLAGS = -module -avoid-version -no-undefined -export-symbols-regex 'OSSL_provider_init' $(COMMON_LDFLAGS) $(CODE_COVERAGE_LDFLAGS) ++tpm2_la_LDFLAGS = -module -avoid-version -export-symbols-regex 'OSSL_provider_init' $(COMMON_LDFLAGS) $(CODE_COVERAGE_LDFLAGS) + + check_PROGRAMS = test/selftest + test_selftest_SOURCES = test/selftest.c +-- +2.41.0 + diff --git a/app-crypt/tpm2-openssl/tpm2-openssl-1.1.1-r1.ebuild b/app-crypt/tpm2-openssl/tpm2-openssl-1.1.1-r1.ebuild index 9149a1e93139..a7e97911f696 100644 --- a/app-crypt/tpm2-openssl/tpm2-openssl-1.1.1-r1.ebuild +++ b/app-crypt/tpm2-openssl/tpm2-openssl-1.1.1-r1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit autotools + DESCRIPTION="OpenSSL Provider for TPM2 integration" HOMEPAGE="https://github.com/tpm2-software/tpm2-openssl" SRC_URI="https://github.com/tpm2-software/tpm2-openssl/releases/download/${PV}/${P}.tar.gz" @@ -24,7 +26,15 @@ DEPEND="${RDEPEND} )" BDEPEND="virtual/pkgconfig" -PATCHES=( "${FILESDIR}"/${P}-tests-include-base-provider-required-to-load-ecparam.patch ) +PATCHES=( + "${FILESDIR}/${P}-tests-include-base-provider-required-to-load-ecparam.patch" + "${FILESDIR}/${P}-build-Fix-undefined-references-when-using-slibtool.patch" +) + +src_prepare() { + eautoreconf + default +} src_test() { dbus_run() { |