From ff7e542ec0fc8c1a21c3ddb3e53fb3adb5b8ae55 Mon Sep 17 00:00:00 2001 From: "Z. Liu" Date: Sat, 19 Jul 2025 20:40:16 +0800 Subject: [PATCH] sys-libs/tdb: always pass -Wl,--undefined-version if supported otherwise, for example, lld will report: > ld.lld: error: version script assignment of 'TDB_1.2.1' to symbol 'tdb_do_delete' failed: symbol not defined > ld.lld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined > ld.lld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined > ld.lld: error: version script assignment of 'local' to symbol '_edata' failed: symbol not defined Closes: https://bugs.gentoo.org/914857 Signed-off-by: Z. Liu Part-of: https://github.com/gentoo/gentoo/pull/43064 Signed-off-by: Sam James --- sys-libs/tdb/tdb-1.4.12.ebuild | 4 +++- sys-libs/tdb/tdb-1.4.13.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys-libs/tdb/tdb-1.4.12.ebuild b/sys-libs/tdb/tdb-1.4.12.ebuild index d179aa7975e2e..247211f778d68 100644 --- a/sys-libs/tdb/tdb-1.4.12.ebuild +++ b/sys-libs/tdb/tdb-1.4.12.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) PYTHON_REQ_USE="threads(+)" -inherit waf-utils multilib-minimal python-single-r1 +inherit waf-utils multilib-minimal python-single-r1 flag-o-matic DESCRIPTION="Simple database API" HOMEPAGE="https://tdb.samba.org/" @@ -60,6 +60,8 @@ multilib_src_configure() { extra_opts+=( --disable-python ) fi + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914857 + waf-utils_src_configure "${extra_opts[@]}" } diff --git a/sys-libs/tdb/tdb-1.4.13.ebuild b/sys-libs/tdb/tdb-1.4.13.ebuild index cb95a311aa945..33c9b263f6353 100644 --- a/sys-libs/tdb/tdb-1.4.13.ebuild +++ b/sys-libs/tdb/tdb-1.4.13.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) PYTHON_REQ_USE="threads(+)" -inherit waf-utils multilib-minimal python-single-r1 +inherit waf-utils multilib-minimal python-single-r1 flag-o-matic DESCRIPTION="Simple database API" HOMEPAGE="https://tdb.samba.org/" @@ -60,6 +60,8 @@ multilib_src_configure() { extra_opts+=( --disable-python ) fi + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914857 + waf-utils_src_configure "${extra_opts[@]}" }