Bug 15961 - libldb requires linking libreplace on Linux
Summary: libldb requires linking libreplace on Linux
Status: ASSIGNED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-02 13:07 UTC by Andreas Schneider
Modified: 2025-12-03 10:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2025-12-02 13:07:23 UTC
Packaging Samba isn't an easy task.

libldb has been inherited to Samba again. That however shouldn't be seen as an invitation to add dependencies to other Samba libraries. The reason is that libdlb is still used by other projects like sssd.

Using internals from libreplace, should be avoided. If possible libldb should not link against it.

Example:

Upgrading:
 libldb                                     x86_64
 4.22.4-6.el9_7                           rhel-9-for-x86_64-baseos-rpms
                     185 k
 libtalloc                                  x86_64
 2.4.3-1.el9                              rhel-9-for-x86_64-baseos-rpms
                      34 k
 libtdb                                     x86_64
 1.4.13-1.el9                             rhel-9-for-x86_64-baseos-rpms
                      54 k
 libtevent                                  x86_64
 0.16.2-1.el9                             rhel-9-for-x86_64-baseos-rpms
                      51 k
Installing dependencies:
 avahi-libs                                 x86_64
 0.8-23.el9                               rhel-9-for-x86_64-baseos-rpms
                      67 k
 libicu                                     x86_64
 67.1-10.el9_6                            rhel-9-for-x86_64-baseos-rpms
                     9.6 M
 libtirpc                                   x86_64
 1.3.3-9.el9                              rhel-9-for-x86_64-baseos-rpms
                      97 k
 libwbclient                                x86_64
 4.22.4-6.el9_7                           rhel-9-for-x86_64-baseos-rpms
                      42 k
 *samba-client-libs                          x86_64           *
   4.22.4-6.el9_7                           rhel-9-for-x86_64-baseos-rpms
                       5.4 M
 *samba-common                               noarch           *
   4.22.4-6.el9_7                           rhel-9-for-x86_64-baseos-rpms
                       175 k
 *samba-common-libs                          x86_64            *
   4.22.4-6.el9_7                           rhel-9-for-x86_64-baseos-rpms
                       104 k
Comment 1 Samba QA Contact 2025-12-03 10:55:13 UTC
This bug was referenced in samba master:

1bb25c0e01d35b1adb3137cb193de27f5c5a65f0