Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787929 - sys-apps/portage-3.0.18: autounmask proposes retroacting USE changes
Summary: sys-apps/portage-3.0.18: autounmask proposes retroacting USE changes
Status: RESOLVED DUPLICATE of bug 784806
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-03 15:52 UTC by Nikita Zlobin
Modified: 2022-11-20 16:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Zlobin 2021-05-03 15:52:51 UTC
emerge --autounmask-write wants to disable use flags with unsatisfied use depepdencies for explicitly emerged packages, instead of to propose changes to satisfy use dependencies.

Reproducible: Always

Steps to Reproduce:
1. Set 'doc' use flag for gtkmm and its mm dependencies down to sigc++, according to dependencies
(those with 'doc?' in use deps - atkmm, cairomm, pangomm, glibmm, sigc++).
2. Try to emerge gtkmm - should be fine.
3. Disable 'doc' for at least one of these deps.
4. Emerge gtkmm again, --autounmask-write on.
Actual Results:  
Autounmask adamantly requires '-doc' for gtkmm.

Expected Results:  
Must require 'doc' use for all those 5 deps.

Case with gtkmm is one, where I managed to determine source of problem. But I guess, same source could be for strange req for '-abi_x86_32' for some explicitly emerged libs, which is probably due new deps, for which 'abi_x86_32' is required for upgrade. On my system its mostly for wine, global ABI_X86=64.
Comment 1 Nikita Zlobin 2021-05-04 18:06:27 UTC
I faced again certain case for abi_x86_32 use flag, at x11-libs/libva upgrade, which I tried to avoid as long as possible when faced it first.

For now I have =libva-2.7.1_rc73. It's no problem to install 2.5.0-r1 or 2.7.1. But installing recent - 2.10.0 - prints this:

==================
Calculating dependencies... done!

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by x11-libs/libva-intel-driver-2.4.1::gentoo
# required by x11-libs/libva-intel-driver (argument)
>=x11-libs/libva-2.10.0 -abi_x86_32

Would you like to add these changes to your config files? [Yes/No] no

 * In order to avoid wasting time, backtracking has terminated early
 * due to the above autounmask change(s). The --autounmask-backtrack=y
 * option can be used to force further backtracking, but there is no
 * guarantee that it will produce a solution.
====================

Emerge list is not even printed.
Backtracking is hopeless.
Comment 2 Nikita Zlobin 2021-05-04 19:01:46 UTC
Just to clarify.
libva upgrade from 2.7.1 to 2.10.0 adds new dependency for 'wayland' use - wayland-scanner. I got 'wayland' use set by default from distro, decided to not resist for now. But now, with this bug, I expect this upgrade to be a big pain, so decided to add global '-wayland' to USE (of course I could add use line for wayland-scanner manually, but would better avoid doing so, as I prefer keep distinguishable formatss for manual and dependency uses).
Comment 3 Nikita Zlobin 2021-05-09 12:43:50 UTC
Softly good news, it affects only USE flag proposals, keyword unmasking works ok.
Comment 4 Nikita Zlobin 2022-10-24 08:23:40 UTC
Duplicate for bug 784806
(there was different case, around 'abi_x86_32' use flag).
Not sure about whether to change to RESOLVED, as prior bug is still UNCONFIRMED.
Comment 5 Nikita Zlobin 2022-11-20 16:38:12 UTC

*** This bug has been marked as a duplicate of bug 784806 ***