Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892627 - net-nds/openldap: merge-usr collision for /usr/lib/systemd/system/slapd.service
Summary: net-nds/openldap: merge-usr collision for /usr/lib/systemd/system/slapd.service
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: usrmerge, usrmerge-fixes
  Show dependency tree
 
Reported: 2023-01-30 13:40 UTC by dani-g5x
Modified: 2023-01-30 16:46 UTC (History)
0 users

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


Attachments
output of equery f openldap (equry f openldap,25.41 KB, text/plain)
2023-01-30 14:06 UTC, dani-g5x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dani-g5x 2023-01-30 13:40:51 UTC
merge-usr --dryrun
INFO: Migrating files from '/bin' to '/usr/bin'
INFO: Skipping symlink '/bin/awk'; '/usr/bin/awk' already exists
INFO: No problems found for '/bin'
INFO: Migrating files from '/sbin' to '/usr/bin'
INFO: No problems found for '/sbin'
INFO: Migrating files from '/usr/sbin' to '/usr/bin'
INFO: No problems found for '/usr/sbin'
INFO: Migrating files from '/lib' to '/usr/lib'
ERROR: Conflict for file '/lib/systemd/system/slapd.service': [Errno 17] File exists: '/usr/lib/systemd/system/slapd.service'
ERROR: Leaving '/lib' as a directory due to prior errors
INFO: Migrating files from '/lib64' to '/usr/lib64'
INFO: No problems found for '/lib64'

Reproducible: Always

Steps to Reproduce:
1.sudo emerge sys-apps/merge-usr
2.merge-usr --dryrun
Actual Results:  
merge-usr --dryrun
INFO: Migrating files from '/bin' to '/usr/bin'
INFO: Skipping symlink '/bin/awk'; '/usr/bin/awk' already exists
INFO: No problems found for '/bin'
INFO: Migrating files from '/sbin' to '/usr/bin'
INFO: No problems found for '/sbin'
INFO: Migrating files from '/usr/sbin' to '/usr/bin'
INFO: No problems found for '/usr/sbin'
INFO: Migrating files from '/lib' to '/usr/lib'
ERROR: Conflict for file '/lib/systemd/system/slapd.service': [Errno 17] File exists: '/usr/lib/systemd/system/slapd.service'
ERROR: Leaving '/lib' as a directory due to prior errors
INFO: Migrating files from '/lib64' to '/usr/lib64'
INFO: No problems found for '/lib64'

Expected Results:  
It shouldn't show any conflict.

emerge --info openldap
=================================================================
                        Package Settings
=================================================================

net-nds/openldap-2.6.3-r3::gentoo was built with the following:
USE="cleartext crypt ipv6 samba ssl syslog systemd -argon2 -autoca -cxx -debug -experimental -gnutls -iodbc -kerberos -kinit -minimal -odbc -overlays -pbkdf2 -perl -sasl (-selinux) -sha2 -smbkrb5passwd -static-libs -tcpd -test" ABI_X86="(64) -32 (-x32)"
CFLAGS="-march=native -O1 -pipe -DOPENSSL_NO_MD2"
CXXFLAGS="-march=native -O1 -pipe"
FEATURES="distlocks fixlafiles usersandbox binpkg-dostrip network-sandbox parallel-fetch usersync ebuild-locks ipc-sandbox xattr userfetch buildpkg config-protect-if-modified strict downgrade-backup protect-owned sfperms qa-unresolved-soname-deps unmerge-logs unmerge-orphans multilib-strict buildpkg-live merge-sync pid-sandbox binpkg-docompress unknown-features-warn preserve-libs assume-digests userpriv binpkg-multi-instance binpkg-logs news sandbox"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-30 13:42:46 UTC
Please include 'equery f openldap' output too. Thanks!
Comment 2 dani-g5x 2023-01-30 14:02:10 UTC
(In reply to Sam James from comment #1)
> Please include 'equery f openldap' output too. Thanks!

I would like to, but I can't because the output of the command, surpasses the maximum permitted characters
Comment 3 dani-g5x 2023-01-30 14:02:52 UTC
(In reply to Sam James from comment #1)
> Please include 'equery f openldap' output too. Thanks!

And I can't post links, I have to wait 24 hours after I created the account.
Comment 4 dani-g5x 2023-01-30 14:06:45 UTC
Created attachment 849507 [details]
output of equery f openldap
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-30 15:25:09 UTC
Please try >= -r4, actually.
Comment 6 Larry the Git Cow gentoo-dev 2023-01-30 16:46:03 UTC
The bug has been closed via the following commit(s):

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

commit 3a18977dfe87fa97e472701a98a7e1640c5176f7
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-01-30 16:43:19 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-01-30 16:44:29 +0000

    net-nds/openldap: adjust systemd unit install logic
    
    Only install slapd.service when USE=systemd; it has Type=notify and is
    therefore uselesss without sd_notify.
    
    Also remove the upstream unit file to prevent weirdness with split-usr.
    
    Closes: https://bugs.gentoo.org/892627
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-nds/openldap/openldap-2.6.3-r6.ebuild | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)