Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887175 - app-alternatives/awk-4::gentoo internal collisions
Summary: app-alternatives/awk-4::gentoo internal collisions
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-19 10:54 UTC by Fabio Coatti
Modified: 2024-01-13 11:17 UTC (History)
0 users

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 Fabio Coatti 2022-12-19 10:54:28 UTC
When emerging app-alternatives for awk, I get the following message:
>>> Installing (1 of 1) app-alternatives/awk-4::gentoo
 * Package 'app-alternatives/awk-4' 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/bin/awk
 * 		/bin/awk
 * 		/usr/bin/awk
 * 			Differences: size, content
 *
 * Package 'app-alternatives/awk-4' 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.

That is quite weird, as i have /bin as symlink of /usr/bin. Is the package checking the link itself?

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-19 10:57:41 UTC
Please include the full build.log and emerge --info. It's likely you're running a merged usr system (as you said) without using a merged usr profile.
Comment 2 Fabio Coatti 2022-12-19 11:43:25 UTC
Build log:
 * Package:    app-alternatives/awk-4:0
 * Repository: gentoo
 * Maintainer: junghans@gentoo.org base-system@gentoo.org,mgorny@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc gawk kernel_linux split-usr userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/app-alternatives/awk-4/work
>>> Preparing source in /var/tmp/portage/app-alternatives/awk-4/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-alternatives/awk-4/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-alternatives/awk-4/work ...
>>> Source compiled.
>>> Test phase [not enabled]: app-alternatives/awk-4

>>> Install app-alternatives/awk-4 into /var/tmp/portage/app-alternatives/awk-4/image
>>> Completed installing app-alternatives/awk-4 into /var/tmp/portage/app-alternatives/awk-4/image

 * Final size of build directory: 0 KiB
 * Final size of installed tree:  4 KiB

 * Package 'app-alternatives/awk-4' 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/bin/awk
 *              /bin/awk
 *              /usr/bin/awk
 *                      Differences: size, content
 *
 * Package 'app-alternatives/awk-4' 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.
Comment 3 Fabio Coatti 2022-12-19 11:48:16 UTC
Sorry, having a second look I noticed the profile error, it was still on 17.1 instead of 23.
Fat fingering I suppose when hitting tab :)

Thanks for the heads up, I would have spent hours if not days in finding this out.
Comment 4 anrock623 2024-01-13 09:04:38 UTC
What exactly is the fix? 

I have the same error (and similar on multiple other packages like coreutils and systemd) running default/linux/amd64/17.1/no-multilib profile. 

There is same profile but with merged-user but it's marked as (dev) and iirc those shouldn't be used by endusers? I have no 23 profiles in the list at all.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-13 11:17:02 UTC
(In reply to anrock623 from comment #4)
> What exactly is the fix? 
> 
> I have the same error (and similar on multiple other packages like coreutils
> and systemd) running default/linux/amd64/17.1/no-multilib profile. 
> 
> There is same profile but with merged-user but it's marked as (dev) and iirc
> those shouldn't be used by endusers? I have no 23 profiles in the list at
> all.

If you've hit this, you've almost certainly used a merged-usr stage3 without using a merged-usr profile, or vice-versa.