Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933814 - app-arch/unar refuses to build in one step with objc useflag change on gcc
Summary: app-arch/unar refuses to build in one step with objc useflag change on gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-08 07:47 UTC by jonys
Modified: 2024-06-08 14:30 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 jonys 2024-06-08 07:47:45 UTC
I wanted to install app-arch/unar-1.10.8, which requires an ObjC toolchain. I didn't have one, so Portage prompted me to add the `objc` USE-flag to GCC. I accepted the change and reran the merge, in which Portage would first recompile GCC and then install unar.

However, unar failed in the pretend with `GCC requires sys-devel/gcc with USE=objc`, because it checks the properties of the existing installed GCC and misses the fact that GCC is just being reinstalled with the USE-flag set.

Updating the GCC useflags first and installing unar in a separate invocation of `emerge` works, so I'm not sure whether this is even an issue beyond being mildly annoying.
Comment 1 Larry the Git Cow gentoo-dev 2024-06-08 14:30:20 UTC
The bug has been closed via the following commit(s):

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

commit 0f0d3e8440c2b40338be937facc3fdce956f1805
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-06-08 14:28:34 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-06-08 14:29:40 +0000

    app-arch/unar: update objc check
    
    Drop pkg_pretend. Use positive USE flag checks.
    
    Closes: https://bugs.gentoo.org/933814
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 app-arch/unar/unar-1.10.8.ebuild | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)