commit:     223d1cb4b06468a85dbd4e21f80b9792be865e57
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Sun Nov  9 14:19:05 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 10 12:22:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=223d1cb4

net-fs/samba: always pass -Wl,--undefined-version if supported

Closes: https://bugs.gentoo.org/965655
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44552
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-fs/samba/samba-4.21.8.ebuild    | 2 ++
 net-fs/samba/samba-4.21.9-r1.ebuild | 2 ++
 net-fs/samba/samba-4.22.4.ebuild    | 2 ++
 net-fs/samba/samba-4.22.5-r1.ebuild | 2 ++
 net-fs/samba/samba-4.23.0.ebuild    | 2 ++
 net-fs/samba/samba-4.23.2-r1.ebuild | 2 ++
 6 files changed, 12 insertions(+)

diff --git a/net-fs/samba/samba-4.21.8.ebuild b/net-fs/samba/samba-4.21.8.ebuild
index 453f26fa887e..7825cd88cded 100644
--- a/net-fs/samba/samba-4.21.8.ebuild
+++ b/net-fs/samba/samba-4.21.8.ebuild
@@ -304,6 +304,8 @@ multilib_src_configure() {
                myconf+=( --with-shared-modules=DEFAULT,!vfs_snapper )
        fi
 
+       append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914898
+
        append-cppflags "-I${ESYSROOT}/usr/include/et"
 
        waf-utils_src_configure ${myconf[@]}

diff --git a/net-fs/samba/samba-4.21.9-r1.ebuild 
b/net-fs/samba/samba-4.21.9-r1.ebuild
index ba1fcc93181d..659c7cd530d7 100644
--- a/net-fs/samba/samba-4.21.9-r1.ebuild
+++ b/net-fs/samba/samba-4.21.9-r1.ebuild
@@ -308,6 +308,8 @@ multilib_src_configure() {
                myconf+=( --with-shared-modules=DEFAULT,!vfs_snapper )
        fi
 
+       append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914898
+
        append-cppflags "-I${ESYSROOT}/usr/include/et"
 
        waf-utils_src_configure ${myconf[@]}

diff --git a/net-fs/samba/samba-4.22.4.ebuild b/net-fs/samba/samba-4.22.4.ebuild
index 6b8fdf389545..6e443b4b4909 100644
--- a/net-fs/samba/samba-4.22.4.ebuild
+++ b/net-fs/samba/samba-4.22.4.ebuild
@@ -304,6 +304,8 @@ multilib_src_configure() {
                myconf+=( --with-shared-modules=DEFAULT,!vfs_snapper )
        fi
 
+       append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914898
+
        append-cppflags "-I${ESYSROOT}/usr/include/et"
 
        waf-utils_src_configure ${myconf[@]}

diff --git a/net-fs/samba/samba-4.22.5-r1.ebuild 
b/net-fs/samba/samba-4.22.5-r1.ebuild
index b9266464b0a4..9336dc94620d 100644
--- a/net-fs/samba/samba-4.22.5-r1.ebuild
+++ b/net-fs/samba/samba-4.22.5-r1.ebuild
@@ -308,6 +308,8 @@ multilib_src_configure() {
                myconf+=( --with-shared-modules=DEFAULT,!vfs_snapper )
        fi
 
+       append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914898
+
        append-cppflags "-I${ESYSROOT}/usr/include/et"
 
        waf-utils_src_configure ${myconf[@]}

diff --git a/net-fs/samba/samba-4.23.0.ebuild b/net-fs/samba/samba-4.23.0.ebuild
index b6886316bb04..6c3ef48d1e4a 100644
--- a/net-fs/samba/samba-4.23.0.ebuild
+++ b/net-fs/samba/samba-4.23.0.ebuild
@@ -307,6 +307,8 @@ multilib_src_configure() {
                myconf+=( --with-shared-modules=DEFAULT,!vfs_snapper )
        fi
 
+       append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914898
+
        append-cppflags "-I${ESYSROOT}/usr/include/et"
 
        waf-utils_src_configure ${myconf[@]}

diff --git a/net-fs/samba/samba-4.23.2-r1.ebuild 
b/net-fs/samba/samba-4.23.2-r1.ebuild
index 65c154874f2b..288ddd8e8554 100644
--- a/net-fs/samba/samba-4.23.2-r1.ebuild
+++ b/net-fs/samba/samba-4.23.2-r1.ebuild
@@ -311,6 +311,8 @@ multilib_src_configure() {
                myconf+=( --with-shared-modules=DEFAULT,!vfs_snapper )
        fi
 
+       append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914898
+
        append-cppflags "-I${ESYSROOT}/usr/include/et"
 
        waf-utils_src_configure ${myconf[@]}

Reply via email to