Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934962 - Make --getbinpkgonly/--usepkgonly abort by default rather than imply --binpkg-respect-use=n
Summary: Make --getbinpkgonly/--usepkgonly abort by default rather than imply --binpkg...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-26 09:12 UTC by Sam James
Modified: 2024-07-27 19:09 UTC (History)
2 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 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-26 09:12:51 UTC
We often end up with people passing --getbinpkgonly or --usepkgonly and not realising it implies --binpkg-respect-use=n.

I think it makes more sense to have these options bail by default on no matching USE for binpkgs, then we can just suggest --binpkg-respect-use=n with a warning.

It's also IMO more intuitive behaviour.

See also

commit 3bc61292f9d44f8fd4d8655ab10e2064c70c912f
Author: Gábor Oszkár Dénes <gaboroszkar@protonmail.com>
Date:   Thu Feb 29 21:56:00 2024 +0100

    man: Document autoenabled options by --getbinpkgonly

    Signed-off-by: Gábor Oszkár Dénes <gaboroszkar@protonmail.com>
    Closes: https://github.com/gentoo/portage/pull/1291
    Signed-off-by: Sam James <sam@gentoo.org>
Comment 1 Gábor Oszkár Dénes 2024-06-26 09:22:49 UTC
(In reply to Sam James from comment #0)
> I think it makes more sense to have these options bail by default on no
> matching USE for binpkgs, then we can just suggest --binpkg-respect-use=n
> with a warning.
> 
> It's also IMO more intuitive behaviour.

Completely agree, would be very nice! Thanks for CC-ing me.

I think it even aligns with my comment: https://github.com/gentoo/portage/pull/1291#issuecomment-1971961752 .
Comment 2 Zac Medico gentoo-dev 2024-07-27 19:05:50 UTC
I often use a command like this to check if the binhost has any package I might be interested in, regardless of the USE it is built with:

> PKGDIR=/var/empty emerge -pvG --nodeps <package>

We should have a better way to perform this sort of test (or somehow eliminate the need for it all together), but anyway if we default to --binpkg-respect-use=y then naturally I'll adapt to specify --binpkg-respect-use=n if appropriate.