Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951340 - sys-apps/portage: 'emerge --onlydeps' should accept keyworded target packages
Summary: sys-apps/portage: 'emerge --onlydeps' should accept keyworded target packages
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-14 13:21 UTC by Stuart Shelton
Modified: 2025-03-14 13:21 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 Stuart Shelton 2025-03-14 13:21:03 UTC
Revisiting long-closed issues such as #120205 (and arguably #88613), I find myself running 'emerge' in a container where /etc/portage/ is mounted read-only and so updating /etc/portage/package.accept_keywords(/*) isn't trivial:

```
# emerge --onlydeps '=dev-lang/go-1.24.0'

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.35 s (backtrack: 0/100).


!!! All ebuilds that could satisfy "=dev-lang/go-1.24.0" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-lang/go-1.24.0::gentoo (masked by: ~amd64 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
```

… here, a specific package is named and the intent is to pull-in the stable dependencies (and then issue `ACCEPT_KEYWORDS='~amd64' emerge '=dev-lang/go-1.24.0'` to build the intended version of `go`) - which feels like a use-case it would be helpful to support.

(N.B. `go` isn't the greatest of examples here, I'll admit, as its only dependency is `go-bootstrap` which is pretty much version-specific in any case… but hopefully you get the idea!)