Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649416 - app-portage/ufed adds -* when it shouldn't.
Summary: app-portage/ufed adds -* when it shouldn't.
Status: RESOLVED DUPLICATE of bug 549042
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal blocker (vote)
Assignee: Sven Eden
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 23:30 UTC by Kevin Korb
Modified: 2020-05-03 13:13 UTC (History)
15 users (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 Kevin Korb 2018-03-02 23:30:47 UTC
Since 0.92 ufed will add -* to the global USE flags if it is enabled on any package via package.use

Reproducible: Always

Steps to Reproduce:
1. make sure -* is not set
2. add "any/package -*" to package.use
3. also happens with dev-lang/clang LLVM_TARGETS: *
4. run ufed and you will see that -* is now selected.  If you make changes without noticing and save -* will now be in the global USE flags in make.conf.
Actual Results:  
Emerges will break because lots of needed USE flags have been turned off.

Expected Results:  
It should have ignored the package specific USE flags
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-01 06:33:48 UTC
If only we had responsible developers in tools-portage, this bug report would save some users from catastrophic system destruction.  I'm going to apply an emergency mask.
Comment 2 Larry the Git Cow gentoo-dev 2020-05-01 06:41:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b107e42c5d349e08c33f7113283a8321e68d4c5

commit 0b107e42c5d349e08c33f7113283a8321e68d4c5
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-05-01 06:41:21 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-05-01 06:41:21 +0000

    package.mask: [QA] Mask app-portage/ufed for breakage
    
    Bug: https://bugs.gentoo.org/649416
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 3 George Cox 2020-05-01 13:08:01 UTC
I ran into this exact same issue a week ago. I finally found -* in my make.conf, but I had no idea how it got there. I've been a long time user of ufed and use it semi-frequently.
Comment 4 Andrius Štikonas 2020-05-01 17:33:36 UTC
(In reply to George Cox from comment #3)
> I ran into this exact same issue a week ago. I finally found -* in my
> make.conf, but I had no idea how it got there. I've been a long time user of
> ufed and use it semi-frequently.

I ran into this too but the workaround is not too bad. You just select - for "-*" field in ufed and then it works fine.
Comment 5 Brian 2020-05-01 20:15:01 UTC
With respect, masking based on a 2+ year old report - when no others have complained or reported an issue in the intervening time - seems a bit much.

I use this semi-regularly and don't see the problem; as Andrius said, simply set '-*' to '-' and all is well.  Perhaps a post-installation note is a better approach?
Comment 6 Bob Johnson 2020-05-01 21:10:31 UTC
Given the potential for major breakage Michał Górny made the right call. A better question is what was this package doing in portage for two years with this outstanding bug?
Comment 7 Staffan Palmroos 2020-05-01 22:06:18 UTC
I also noticed this behavior a couple of months ago. I'm surprised that it's been around since 2018!

It hit me just now reading the first post by Kevin Korb why it suddenly triggered for me: It must be because I've recently been trying to get rid of python 2.7 so I have added -* somewhere in there!
Comment 8 jospezial 2020-05-02 02:57:16 UTC
see also https://bugs.gentoo.org/549042

It looks as the bug is since 2015.
Comment 9 Ulrich Müller gentoo-dev 2020-05-02 08:31:17 UTC
(In reply to jospezial from comment #8)
> see also https://bugs.gentoo.org/549042
> 
> It looks as the bug is since 2015.

Thank you.

This is a duplicate of bug 549042, and the patch in attachment 402928 [details, diff] appears to fix it.

*** This bug has been marked as a duplicate of bug 549042 ***
Comment 10 Sven Eden 2020-05-03 13:13:55 UTC
I don't know why, but this bug report totally got past me.

Just now I have tried it out:
 1) Add any package with "-*" to any file in /etc/portage/package.use
 2) Start ufed
 3) -* is ticked

That's bad, but I will continue in the other report.