Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885457 - net-nds/openldap-2.6.3-r3 blocks transition to a merged-usr system
Summary: net-nds/openldap-2.6.3-r3 blocks transition to a merged-usr system
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
: 885537 (view as bug list)
Depends on:
Blocks: usrmerge, usrmerge-fixes
  Show dependency tree
Reported: 2022-12-11 14:56 UTC by Adrian Bassett
Modified: 2023-01-30 13:47 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bassett 2022-12-11 14:56:52 UTC
The version of openldap as per the summary seeks to install slapd.service files in two directories which would be merged in the transition to a merged-usr system/profile.

 * Package 'net-nds/openldap-2.6.3-r3' has internal collisions between
 * non-identical files (located in separate directories in the
 * installation image (${D}) corresponding to merged directories in the
 * target filesystem (${ROOT})):
 *      /usr/lib/systemd/system/slapd.service
 *              /lib/systemd/system/slapd.service
 *              /usr/lib/systemd/system/slapd.service
 *                      Differences: size, content
 * Package 'net-nds/openldap-2.6.3-r3' NOT merged due to internal
 * collisions between non-identical files. If necessary, refer to your
 * elog messages for the whole content of the above message.

# diff /lib/systemd/system/slapd.service /usr/lib/systemd/system/slapd.service
> Documentation=man:slapd
> Documentation=man:slapd-config
> Documentation=man:slapd-mdb
< PIDFile=/run/openldap/
< ExecStartPre=/usr/sbin/slaptest -Q -u $SLAPD_OPTIONS
< ExecStart=/usr/lib64/openldap/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS
> Environment="SLAPD_URLS=ldap:/// ldapi:///" "SLAPD_OPTIONS="
> EnvironmentFile=/etc/sysconfig/slapd
> ExecStart=/usr/lib64/openldap/slapd -d 0 -h ${SLAPD_URLS} $SLAPD_OPTIONS

On the system in question, openldap was pulled in by various samba USE flags which are not in fact germane to my use-case for that s/w so I was able to map those out and dispense with openldap altogether.

But I thought it worth reporting in case it helps others...

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-11 15:40:43 UTC
(Thanks, please do keep these coming even if solved locally; we want to know about all of them for sure.)
Comment 2 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2022-12-12 10:03:15 UTC
*** Bug 885537 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2022-12-16 06:26:21 UTC
The bug has been referenced in the following commit(s):

commit 592058c8a5099184be492bcc897288de796123e3
Author:     Sam James <>
AuthorDate: 2022-12-16 06:26:08 +0000
Commit:     Sam James <>
CommitDate: 2022-12-16 06:26:12 +0000

    net-nds/openldap: fix merged-usr for systemd units
    I can't reproduce the failure but this seems good enough.
    Signed-off-by: Sam James <>

 net-nds/openldap/openldap-2.6.3-r4.ebuild | 803 ++++++++++++++++++++++++++++++
 1 file changed, 803 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-16 07:01:27 UTC
If someone can still hit this, I'll need a full build.log and emerge --info.