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

Bug 889290

Summary: sys-apps/merge-usr should check for additional conflicts in /bin, /sbin, and /usr/sbin
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: CONFIRMED ---    
Severity: enhancement CC: mgorny, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mike Gilbert gentoo-dev 2023-01-01 17:07:16 UTC
Currently, merge-usr --dryrun checks for conflicting files for the following combinations:

/bin vs /usr/bin
/sbin vs /usr/bin
/usr/sbin vs /usr/bin

It should probably be enhanced to also check the following:

/bin vs /sbin
/bin vs /usr/sbin
/sbin vs /usr/sbin
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-24 12:41:28 UTC
Yep, hit this today.  --dryrun was clean, actual run:

INFO: Migrating files from '/usr/sbin' to '/usr/bin'
ERROR: Conflict for file '/usr/sbin/installkernel': [Errno 17] File exists: '/usr/bin/installkernel'
ERROR: Leaving '/usr/sbin' as a directory due to prior errors
Comment 2 Mike Gilbert gentoo-dev 2024-03-24 14:15:20 UTC
Out of curiosity, how did you end up with multiple instances of installkernel?
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-24 15:26:30 UTC
Old hack to stub it out in my dev container.