Created attachment 599926 [details] emerge --info When installing =dev-util/idea-community-2019.3.193.5233.102 and =dev-java/maven-bin-3.6.2 on the same system, they both try to install the following four files: /usr/lib/debug/.build-id/5f/b40ad650b711da4eb18584bccb731d0211e2af.debug /usr/lib/debug/.build-id/5f/b40ad650b711da4eb18584bccb731d0211e2af /usr/lib/debug/.build-id/e9/631fef334d8b32619da859129c3d315e0475ac.debug /usr/lib/debug/.build-id/e9/631fef334d8b32619da859129c3d315e0475ac This results in a file collision and the inability to install one of the packages. Maven installs the files as symlinks pointing to ../../usr/share/maven-bin-3.6/lib/jansi-native/linux32/libjansi.so.debug ../../usr/share/maven-bin-3.6/lib/jansi-native/linux64/libjansi.so.debug /usr/share/maven-bin-3.6/lib/jansi-native/linux64/libjansi.so and /usr/share/maven-bin-3.6/lib/jansi-native/linux32/libjansi.so respectively; it seems to me that IDEA tries to install the exact same symlinks. I've used package.env to set an INSTALL_MASK for idea-community. That works around the problem for me, IDEA seems to work well when using Maven's symlinks. The bug seems to be very similar to https://bugs.gentoo.org/675384 – that one was resolved by removing one of the offending packages, which is probably not an option here.
Ah, splitdebug. I'm going to add a RESTRICTION to idea-community to prevent this collision from happening. Reference: https://dev.gentoo.org/~zmedico/portage/doc/man/ebuild.5.html RESTRICT=splitdebug Disables splitdebug for specific packages. This is for packages with binaries that trigger problems with splitdebug, such as file-collisions between symlinks in /usr/lib/debug/.build-id (triggered by bundled libraries).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b15a3824c91189d06383bfc15b5dbfdd7151211 commit 9b15a3824c91189d06383bfc15b5dbfdd7151211 Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2019-12-19 13:07:57 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2019-12-19 13:07:57 +0000 dev-util/idea-community: Disable splitdebug Prevent file-collisions beyween symlinks in /usr/lib/debug/.build-id. Reported-by: Jonáš Vidra vidra.jonas@seznam.cz Closes: https://bugs.gentoo.org/703182 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Mike Pagano <mpagano@gentoo.org> dev-util/idea-community/idea-community-2019.3.193.5233.102.ebuild | 1 + 1 file changed, 1 insertion(+)
The same issue appears between different slots of maven-bin as well. I've just caught it during normal upgrade. Old version of maven-bin:3.6.3 (slot 3.6) New version: 3.8.1 (slot 3.8). Maybe maven-bin ebuild should contain RESTRICT=splitdebug as well? (Obvious workaround: just unmerge maven-bin and then install again, without having two slots at the same time.)