Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 889290 - sys-apps/merge-usr should check for additional conflicts in /bin, /sbin, and /usr/sbin
Summary: sys-apps/merge-usr should check for additional conflicts in /bin, /sbin, and ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-01 17:07 UTC by Mike Gilbert
Modified: 2024-03-24 15:26 UTC (History)
2 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 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.