Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950741 - emerge suggests wrong slotted corrupted packages
Summary: emerge suggests wrong slotted corrupted packages
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-07 09:14 UTC by Fabio Rossi
Modified: 2025-03-07 16:52 UTC (History)
0 users

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


Attachments
emerge-info.bz2 (emerge-info.bz2,9.26 KB, application/x-bzip2)
2025-03-07 09:14 UTC, Fabio Rossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2025-03-07 09:14:47 UTC
Created attachment 920324 [details]
emerge-info.bz2

I have an ebuild in a personal overlay that indicates a dependency in terms of 

    >=dev-java/asm-5.1:4

On my system I have installed:

[U] dev-java/asm
     Available versions:  
     (3)    [m]~3.3.1-r2^t[1]
     (4)    [m]~5.1-r2^t[1]
     (7)    [m]~8.0.1[1]
     (9)    9.7.1
     (0)    9.7.1_p20241213
       {doc source}
     Installed versions:  9.7.1(9)(11:12:08 11/11/2024)(-doc -source)
     Homepage:            https://asm.ow2.io
     Description:         Bytecode manipulation framework for Java

[1] "spark-overlay" /var/db/repos/spark-overlay

The slots 3, 4, and 7 are masked because the java-pkg-2.eclass requires EAPI=8. When I try to emerge the ebuild with the dependency on asm states above, I get the notice:

!!! All ebuilds that could satisfy ">=dev-java/asm-5.1:4" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/asm-8.0.1::spark-overlay (masked by: corruption)
- dev-java/asm-5.1-r2::spark-overlay (masked by: corruption)

So it seems that the resolver is considering only the version of corrupted ebuilds and not their slot. In fact asm:3 is not proposed as alternative, slots 0 and 9 are neither considered (but they are not corrupted). Here the wrong behaviour is that the resolver considers asm:7 as a possible alternative which is wrong.

If I change the EAPI of asm:7 to fix corruption, than I get the expected result:

!!! All ebuilds that could satisfy ">=dev-java/asm-5.1:4" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/asm-5.1-r2::spark-overlay (masked by: corruption)
Comment 1 Mike Gilbert gentoo-dev 2025-03-07 16:49:23 UTC
Comment on attachment 920324 [details]
emerge-info.bz2

Please do not compress attachments under 1 MB.