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
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
: 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: ---


Attachments

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
3c3,6
< After=network.target
---
> After=syslog.target network-online.target
> Documentation=man:slapd
> Documentation=man:slapd-config
> Documentation=man:slapd-mdb
7,9c10,12
< PIDFile=/run/openldap/slapd.pid
< 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):

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

commit 592058c8a5099184be492bcc897288de796123e3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-16 06:26:08 +0000
Commit:     Sam James <sam@gentoo.org>
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.
    
    Bug: https://bugs.gentoo.org/885457
    Signed-off-by: Sam James <sam@gentoo.org>

 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.