commit:     574b95032778730c5c5c1b6878ff18898ca4032c
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 17:22:11 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue May  6 17:40:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=574b9503

dev-libs/libbsd: make sure elibtoolize is applied

Needed to e.g. pass LTO warning flags through to the linker.

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-libs/libbsd/libbsd-0.11.8.ebuild | 9 +++++++--
 dev-libs/libbsd/libbsd-0.12.1.ebuild | 9 +++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/dev-libs/libbsd/libbsd-0.11.8.ebuild 
b/dev-libs/libbsd/libbsd-0.11.8.ebuild
index 37651c711983..bcafc06840af 100644
--- a/dev-libs/libbsd/libbsd-0.11.8.ebuild
+++ b/dev-libs/libbsd/libbsd-0.11.8.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/guillemjover.asc
-inherit flag-o-matic multilib multilib-minimal verify-sig
+inherit flag-o-matic libtool multilib multilib-minimal verify-sig
 
 DESCRIPTION="Library to provide useful functions commonly found on BSD systems"
 HOMEPAGE="https://libbsd.freedesktop.org/wiki/ 
https://gitlab.freedesktop.org/libbsd/libbsd";
@@ -23,6 +23,11 @@ DEPEND="
 "
 BDEPEND="verify-sig? ( sec-keys/openpgp-keys-guillemjover )"
 
+src_prepare() {
+       default
+       elibtoolize
+}
+
 multilib_src_configure() {
        # Broken (still) with lld-17 (bug #922342, bug #915068)
        append-ldflags $(test-flags-CCLD -Wl,--undefined-version)

diff --git a/dev-libs/libbsd/libbsd-0.12.1.ebuild 
b/dev-libs/libbsd/libbsd-0.12.1.ebuild
index 182fa14cff14..bfc6b4924e79 100644
--- a/dev-libs/libbsd/libbsd-0.12.1.ebuild
+++ b/dev-libs/libbsd/libbsd-0.12.1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/guillemjover.asc
-inherit flag-o-matic multilib multilib-minimal verify-sig
+inherit flag-o-matic libtool multilib multilib-minimal verify-sig
 
 DESCRIPTION="Library to provide useful functions commonly found on BSD systems"
 HOMEPAGE="https://libbsd.freedesktop.org/wiki/ 
https://gitlab.freedesktop.org/libbsd/libbsd";
@@ -24,6 +24,11 @@ DEPEND="
 "
 BDEPEND="verify-sig? ( sec-keys/openpgp-keys-guillemjover )"
 
+src_prepare() {
+       default
+       elibtoolize
+}
+
 multilib_src_configure() {
        # bug #911726
        filter-flags -fno-semantic-interposition

Reply via email to