commit: ff7e542ec0fc8c1a21c3ddb3e53fb3adb5b8ae55 Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Sat Jul 19 12:40:16 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Sep 14 10:44:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff7e542e
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 <zhixu.liu <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43064 Signed-off-by: Sam James <sam <AT> gentoo.org> 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 d179aa7975e2..247211f778d6 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 cb95a311aa94..33c9b263f635 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[@]}" }
