Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 941298

Summary: net-fs/samba-4.21 will not install because of file conflicts with ldb which is required in the ebuild
Product: Gentoo Linux Reporter: Harris Landgarten <harrisl>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: UNCONFIRMED ---    
Severity: normal CC: dan, finkandreas, harrisl, marduk, toralf, xavier.miller
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Harris Landgarten 2024-10-12 03:22:38 UTC
Every attempt to emerge samba-4.21 fails even after removing samba-4.20.2 because of file collisions with ldb. The release notes for samba-4.21 say the following:

NEW FEATURES/CHANGES
====================

LDB no longer a standalone tarball
----------------------------------

LDB, Samba's LDAP-like local database and the power behind the Samba
AD DC, is no longer available to build as a distinct tarball, but is
instead provided as an optional public library.

If you need ldb as a public library, say to build sssd, then use
 ./configure --private-libraries='!ldb'

This re-integration allows LDB tests to use the Samba's full selftest
system, including our knownfail infrastructure, and decreases the work
required during security releases as a coordinated release of the ldb
tarball is not also required.

This approach has been demonstrated already in Debian, which is already
building Samba and LDB is this way.

As part of this work, the pyldb-util public library, not known to be
used by any other software, is made private to Samba.

LDB Module API Python bindings removed
--------------------------------------

The LDB Modules API, which we do not promise a stable ABI or API for,
was wrapped in python in early LDB development.  However that wrapping
never took into account later changes, and so has not worked for a
number of years.  Samba 4.21 and LDB 2.10 removes this unused and
broken feature.


The samba-4.21 rebuild should be masked until the ldb dependence is sorted out.
Comment 1 Larry the Git Cow gentoo-dev 2024-10-12 03:50:39 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c80af86720a45e6df147fb0c97fc81f00656e38b

commit c80af86720a45e6df147fb0c97fc81f00656e38b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-12 03:49:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-12 03:49:49 +0000

    profiles: mask =net-fs/samba-4.21
    
    Collides with sys-libs/ldb, see bug for details. Mask until can be sorted.
    
    Bug: https://bugs.gentoo.org/941298
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 2 Greg Kubaryk 2024-10-12 09:07:14 UTC
*** Bug 941374 has been marked as a duplicate of this bug. ***
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-12 14:50:38 UTC
*** Bug 941400 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2024-10-14 18:42:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a84f0d8c4c9331e2dcab0eef1096901bc1e97ec6

commit a84f0d8c4c9331e2dcab0eef1096901bc1e97ec6
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-10-14 18:11:12 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-10-14 18:39:09 +0000

    net-fs/samba: add subslot for bundled ldb
    
    Bug: https://bugs.gentoo.org/941298
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 net-fs/samba/samba-4.21.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e3d3b213f6b911560471739bf5d47815061ea4c

commit 5e3d3b213f6b911560471739bf5d47815061ea4c
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-10-14 17:52:46 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-10-14 18:39:09 +0000

    net-fs/samba: install ldb shared library for sssd (and other) use
    
    ldb is now bundled with samba but only available privately by default.
    This commit makes it available as a public shared library again.
    
    Bug: https://bugs.gentoo.org/941298
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 net-fs/samba/samba-4.21.0.ebuild | 1 +
 1 file changed, 1 insertion(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ac2ab31bd1eb82964a23197f37e40b3e2912c71

commit 8ac2ab31bd1eb82964a23197f37e40b3e2912c71
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-10-14 16:54:13 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-10-14 18:39:06 +0000

    net-fs/samba: block on ldb since it's bundled now
    
    Bug: https://bugs.gentoo.org/941298
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 net-fs/samba/samba-4.21.0.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2024-10-14 19:10:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf8041942374cd77aae511e65b2aa630bc1f84fa

commit cf8041942374cd77aae511e65b2aa630bc1f84fa
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-10-14 19:09:50 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-10-14 19:10:29 +0000

    profiles: unmask samba-4.21.0 after fixing ldb collision issues
    
    Bug: https://bugs.gentoo.org/941298
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 profiles/package.mask | 5 -----
 1 file changed, 5 deletions(-)