Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 36970

Summary: Local keywords capability
Product: Portage Development Reporter: Shane Hathaway <shane>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to enable local keyword overrides in Portage

Description Shane Hathaway 2004-01-01 14:25:44 UTC
I'd like to be able to specify locally that I consider particular package versions to be "stable" even though the package maintainer hasn't marked it as stable yet.  To do this, I'd like to be able to independently override the keywords for an ebuild.

I've patched my copy of Portage (2.0.49-r19) to enable this capability with a simple hack.  I will attach the patch.  It causes Portage to look for a file called /etc/local_keywords.  My copy of /etc/local_keywords currently contains only one line:

sys-apps/baselayout-1.8.6.12-r3 x86

This means that I can continue to use "x86" as my ACCEPT_KEYWORDS, since I don't want to use ~x86 for most packages, and "emerge -u world" won't downgrade baselayout.  (I'm trying out Linux 2.6, which seems to require the more recent version of baselayout.)

Another way to achieve this would be to set package-specific ACCEPT_KEYWORDS lists.  Instead of /etc/local_keywords, there might be a file called /etc/local_accept_keywords (or some shorter name) and I would put an entry in there that says I accept "~x86" for sys-apps/baselayout-1.8.6.12-r3 only.  This might generalize better than my quick hack, since users could conceivably leave off the version number and accept "~x86" for any version of sys-apps/baselayout.
Comment 1 Shane Hathaway 2004-01-01 14:26:48 UTC
Created attachment 22978 [details, diff]
Patch to enable local keyword overrides in Portage
Comment 2 SpanKY gentoo-dev 2004-01-01 16:38:13 UTC

*** This bug has been marked as a duplicate of 13616 ***