From 884e2f9ed0931f76c50daf8550f7b2f051afdad4 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 29 Jan 2024 07:11:15 +0000 Subject: [PATCH] dev-libs/libbsd: Sync with Gentoo It's from Gentoo commit a66e9174d502778cb4f26d46f80a474b2b869ec7. --- .../dev-libs/libbsd/libbsd-0.11.7-r2.ebuild | 5 ++++- .../portage-stable/dev-libs/libbsd/libbsd-0.11.8.ebuild | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/libbsd/libbsd-0.11.7-r2.ebuild b/sdk_container/src/third_party/portage-stable/dev-libs/libbsd/libbsd-0.11.7-r2.ebuild index f90a90c9b1..ad81898063 100644 --- a/sdk_container/src/third_party/portage-stable/dev-libs/libbsd/libbsd-0.11.7-r2.ebuild +++ b/sdk_container/src/third_party/portage-stable/dev-libs/libbsd/libbsd-0.11.7-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -35,6 +35,9 @@ src_prepare() { } multilib_src_configure() { + # Broken (still) with lld-17 (bug #922342, bug #915068) + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) + # bug 911726, https://gitlab.freedesktop.org/libbsd/libbsd/-/issues/26 filter-flags -fno-semantic-interposition diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/libbsd/libbsd-0.11.8.ebuild b/sdk_container/src/third_party/portage-stable/dev-libs/libbsd/libbsd-0.11.8.ebuild index b86e247102..d873c78482 100644 --- a/sdk_container/src/third_party/portage-stable/dev-libs/libbsd/libbsd-0.11.8.ebuild +++ b/sdk_container/src/third_party/portage-stable/dev-libs/libbsd/libbsd-0.11.8.ebuild @@ -4,7 +4,7 @@ EAPI=8 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/guillemjover.asc -inherit multilib multilib-minimal verify-sig +inherit flag-o-matic 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,12 @@ DEPEND=" BDEPEND="verify-sig? ( sec-keys/openpgp-keys-guillemjover )" multilib_src_configure() { + # Broken (still) with lld-17 (bug #922342, bug #915068) + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) + + # bug #911726 + filter-flags -fno-semantic-interposition + # The build system will install libbsd-ctor.a despite USE="-static-libs" # which is correct, see: # https://gitlab.freedesktop.org/libbsd/libbsd/commit/c5b959028734ca2281250c85773d9b5e1d259bc8