Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703182 - dev-util/idea-community-2019.3.193.5233.102 and dev-java/maven-bin-3.6.2: File collisions
Summary: dev-util/idea-community-2019.3.193.5233.102 and dev-java/maven-bin-3.6.2: Fil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Arisu Tachibana
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-17 08:52 UTC by jonys
Modified: 2021-05-11 20:43 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,16.95 KB, text/plain)
2019-12-17 08:52 UTC, jonys
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jonys 2019-12-17 08:52:36 UTC
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.
Comment 1 Mike Pagano gentoo-dev 2019-12-19 13:00:16 UTC
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).
Comment 2 Larry the Git Cow gentoo-dev 2019-12-19 13:09:02 UTC
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(+)
Comment 3 burunduk3 2021-05-11 20:43:09 UTC
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.)