Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890702 - sys-apps/systemd-252.4 has internal collisions between non-identical files corresponding to merged directories in the target filesystem
Summary: sys-apps/systemd-252.4 has internal collisions between non-identical files co...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: usrmerge, usrmerge-fixes
  Show dependency tree
 
Reported: 2023-01-13 14:51 UTC by Wolfram Schlich
Modified: 2023-01-16 15:15 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge-info.txt,26.38 KB, text/plain)
2023-01-13 14:51 UTC, Wolfram Schlich
Details
systemd build log (systemd-252.4:20230112-113425.log.gz,194.15 KB, application/gzip)
2023-01-13 15:20 UTC, Wolfram Schlich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schlich 2023-01-13 14:51:08 UTC
* Package 'sys-apps/systemd-252.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/lib/systemd/libsystemd-core-252.so
 *              /usr/lib/systemd/libsystemd-core-252.so
 *              /usr/lib64/systemd/libsystemd-core-252.so
 *                      Differences: size, content
 * 
 *      /usr/lib/systemd/libsystemd-shared-252.so
 *              /usr/lib/systemd/libsystemd-shared-252.so
 *              /usr/lib64/systemd/libsystemd-shared-252.so
 *                      Differences: size, content
 * 
 * Package 'sys-apps/systemd-252.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 1 Wolfram Schlich 2023-01-13 14:51:47 UTC
Created attachment 848378 [details]
emerge --info output
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-13 14:53:17 UTC
What is /usr/lib on your system? Is it a symlink to /usr/lib64?

Please also attach the full build.log.
Comment 3 Wolfram Schlich 2023-01-13 15:20:37 UTC
Created attachment 848380 [details]
systemd build log
Comment 4 Wolfram Schlich 2023-01-13 15:21:42 UTC
(In reply to Sam James from comment #2)
> What is /usr/lib on your system? Is it a symlink to /usr/lib64?

/usr/lib is a directory, just as /usr/lib64.

I ran merge-usr a while ago...

> Please also attach the full build.log.

Done.
Comment 5 Mike Gilbert gentoo-dev 2023-01-13 16:20:20 UTC Comment hidden (obsolete)
Comment 6 Mike Gilbert gentoo-dev 2023-01-13 16:44:34 UTC
(In reply to Mike Gilbert from comment #5)

Please disregard my previous comment. It seems my knowledge is outdated.

On my system, /usr/lib/systemd/libsystemd-core-252.so, /usr/libx32/systemd/libsystemd-core-252.so, and /usr/lib64/systemd/libsystemd-core-252.so all exist as separate files.

On your system, it seems that /usr/lib/systemd and /usr/lib64/systemd represent the same directory. It is likely that you have a symlink somewhere that should not exist.
Comment 7 Wolfram Schlich 2023-01-13 16:48:50 UTC
(In reply to Mike Gilbert from comment #6)
> [...]
> 
> On your system, it seems that /usr/lib/systemd and /usr/lib64/systemd
> represent the same directory. It is likely that you have a symlink somewhere
> that should not exist.

Hmm:

zephyr ~ # ls -ld /usr/lib{,64}/systemd
lrwxrwxrwx  1 root root   17 Feb 28  2022 /usr/lib64/systemd -> ../../lib/systemd
drwxr-xr-x 16 root root 4096 Dec 13 12:09 /usr/lib/systemd
zephyr ~ # 

So /usr/lib64/systemd is not meant to be a symlink?

I'll remove it and try remerging systemd again :)
Comment 8 Wolfram Schlich 2023-01-13 16:56:08 UTC
I removed /usr/lib64/systemd symlink and systemd emerged fine :-)

Thank you, Mike!

I have no idea where that symlink came from... m(

The bug can be closed.
Comment 9 Mike Gilbert gentoo-dev 2023-01-13 17:38:29 UTC
It looks like the behavior was changed in systemd-252, which is probably why that symlink did not cause problems with earlier versions.

https://github.com/systemd/systemd/blob/v252/NEWS#L326

> * Private shared libraries (libsystemd-shared-nnn.so,
>   libsystemd-core-nnn.so) are now installed into arch-specific
>   directories to allow multi-arch installs.
Comment 10 Wolfram Schlich 2023-01-16 15:15:04 UTC
(In reply to Mike Gilbert from comment #9)
> It looks like the behavior was changed in systemd-252, which is probably why
> that symlink did not cause problems with earlier versions.

Thanks for your research!