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.
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(-)