From 120df43f87df20cdbdba76c113576ddf34233d49 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 9 May 2025 20:47:22 +0300 Subject: [PATCH] app-crypt/yubihsm-shell: fix non-lto build Closes: https://bugs.gentoo.org/955169 Signed-off-by: Alfred Wingate Part-of: https://github.com/gentoo/gentoo/pull/42005 Closes: https://github.com/gentoo/gentoo/pull/42005 Signed-off-by: Sam James --- ...ubihsm-shell-2.6.0-fix-examples-link.patch | 20 +++++++++++++++++++ .../yubihsm-shell/yubihsm-shell-2.6.0.ebuild | 1 + 2 files changed, 21 insertions(+) create mode 100644 app-crypt/yubihsm-shell/files/yubihsm-shell-2.6.0-fix-examples-link.patch diff --git a/app-crypt/yubihsm-shell/files/yubihsm-shell-2.6.0-fix-examples-link.patch b/app-crypt/yubihsm-shell/files/yubihsm-shell-2.6.0-fix-examples-link.patch new file mode 100644 index 0000000000000..db6b907e7ae3c --- /dev/null +++ b/app-crypt/yubihsm-shell/files/yubihsm-shell-2.6.0-fix-examples-link.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/955169 + +This change is applied upstream as a part of a larger commit. +This gets around non-lto builds failing with missing symbols. + +https://github.com/Yubico/yubihsm-shell/commit/ec05084df550fd25c3fe0acd7ab62ba7d2130b5c + +diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt +index 28750ad..50ab0e6 100644 +--- a/examples/CMakeLists.txt ++++ b/examples/CMakeLists.txt +@@ -52,6 +52,7 @@ set ( + SOURCE_WRAP + wrap.c + ../common/util.c ++ ../common/hash.c + ../common/openssl-compat.c + ) + + diff --git a/app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild b/app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild index 7ea1e4b8c1fc2..2b4f7c8da6d50 100644 --- a/app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild +++ b/app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild @@ -30,6 +30,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-2.6.0-pcsc-lite-pkgconfig.patch "${FILESDIR}"/${PN}-2.6.0-remove-hardcoded-compiler-opts.patch + "${FILESDIR}"/${PN}-2.6.0-fix-examples-link.patch ) src_configure() {