Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830683 - sys-apps/portage: treats removal of implicit USE_EXPAND flags in IUSE as disabled in --changed-use
Summary: sys-apps/portage: treats removal of implicit USE_EXPAND flags in IUSE as disa...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-06 12:06 UTC by Michał Dec
Modified: 2022-01-17 05:08 UTC (History)
1 user (show)

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 Michał Dec 2022-01-06 12:06:28 UTC
I'm beginning to grow annoyed, so I'm going to file a bug for this so we can reasonably work this out.

In recent days, packages received the ELIBC and KERNEL types of USE flags. That's great, except that they're causing rebuilds of pretty large packages, like dev-lang/icedtea, www-client/firefox, mail-client/thunderbird and app-office/libreoffice to name just a few.

This wouldn't be a problem, if:
1. I did not have Gentoo on so many kinds of computers: PS3, RPI 4B, Ryzen 2700 and Pentium 3 to name a few.
2. Rebuild times of these packages wouldn't be extremely long. Of the ones I listed, I only have dev-lang/icedtea installed on the PS3 and it took me over 2000 minutes to upgrade from 3.16 to 3.21, and now Portage asks me to do it all over again! Ryzen and RPI have all 4 installed and this is going to be painful on the smaller ARM computer.
3. There was a way of modifying the register of currently installed packages so that USE flags that do not have any effect could be added to the register, rather than pass through an emerge to have the changes go into the register.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-06 22:27:56 UTC
I did explain on IRC that this is actually flags being "removed" (although they're really reverting back to whatever profiles set, given these things aren't toggleable anyway) -- you'd mentioned you thought FreeBSD support was being added, which isn't the case.

I think there is actually a Portage issue here in that the effective USE for packages shouldn't have changed.

(There's not much I can really say about point 1 or point 2? It's unfortunate, but it's kind of besides the point. The only actionable point here is 3. as a workaround or fixing Portage to not need rebuilds in cases like this where the flags are identical).

(Note that you could modify /var/db/pkg yourself if you wanted.)
Comment 2 Andreas Sturmlechner gentoo-dev 2022-01-07 08:08:38 UTC
Don't use -U or -N if you don't want IUSE change related rebuilds.
Comment 3 Klaus Kusche 2022-01-16 09:30:51 UTC Comment hidden (obsolete)
Comment 4 Michał Dec 2022-01-16 10:58:46 UTC Comment hidden (spam)
Comment 5 Andreas Sturmlechner gentoo-dev 2022-01-16 16:58:59 UTC
(In reply to Klaus Kusche from comment #3)
> It turns linux kernel dependencies and GNU userland dependencies *off*!
> (which would most likely break my system, I have linux kernel & gnu
> userland!)
No.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-17 05:07:27 UTC
(In reply to Klaus Kusche from comment #3)
> However, emerge wants to re-emerge them with 
> 
> KERNEL="(-linux%*)"
> 
> USERLAND="(-GNU%*)"
> 
> It turns linux kernel dependencies and GNU userland dependencies *off*!
> (which would most likely break my system, I have linux kernel & gnu
> userland!)

As I've explained, this is not the case. Harmless flags were removed from the ebuilds as part of cleanup efforts. It does not in fact remove support for the Linux kernel or GNU userland.

It is entirely safe.

(In reply to Michał Dec from comment #4)
If you're not going to be polite, please don't participate in Bugzilla or the community. As I've explained, it wasn't "completely useless".

If you wish to mitigate the effects, you can delay upgrading by a week or two, and/or do without -U/-N for a few weeks, and by then, most packages will end up receiving "real" changes anyway, and hence the number of "useless" ones will be minimised.

Bugzilla is not for venting. One user who was particularly interested in this has started digging into why emerge even considers this a change (as I mentioned in another comment here). That's a far more productive contribution.