Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920580 - sys-apps/portage-3.0.57: single_targets autounmask results in conflicts with dependencies required_use
Summary: sys-apps/portage-3.0.57: single_targets autounmask results in conflicts with ...
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: 2023-12-23 19:00 UTC by APN-Pucky
Modified: 2023-12-24 12:55 UTC (History)
1 user (show)

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


Attachments
Example (report.txt,1.99 KB, text/plain)
2023-12-23 19:05 UTC, APN-Pucky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description APN-Pucky 2023-12-23 19:00:30 UTC
Given I have the default profile of python_single_target_python3_11, if I now install a package with python_single_target_python3_10 that also depends on another package with python_single_target_python3_10, then autounmask fails, since it only unmasks python_single_target_python3_10 but does not mask python_single_target_python3_11.


Example: https://dpaste.org/hRfG6

In the example I think it would be much better if the autounmask changes were

   >=sci-physics/lhapdf-6.5.4 python_single_target_python3_10 -python_single_target_python3_11

such that the compilation could start.

However I unfortunately see two problems with adding such a feature:

MAJOR) If one looks beyond the simple case of single_target_XYZ flags checking the complete REQUIRED_USE in autounmaks might not be feasible
MINOR) autounmask would actually masking something 

Is this somehow still possible or is there some workaround to this? I am looking at this in the context of pkg-testing-tools looping over every single_target_XYZ (python or lua) and it would be super convenient if the autounmask resulted in corrected single target dependencies.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-23 19:03:12 UTC
Please don't use pastebins as they expire. Please include attachments instead.
Comment 2 APN-Pucky 2023-12-23 19:05:01 UTC
Created attachment 880262 [details]
Example
Comment 3 Zac Medico gentoo-dev 2023-12-24 06:46:59 UTC
We may need to do something like the REQUIRED_USE translation to implications discussed in GLEP 73:

https://www.gentoo.org/glep/glep-0073.html#concept-for-transforming-required-use-into-implications