Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36970 - Local keywords capability
Summary: Local keywords capability
Status: RESOLVED DUPLICATE of bug 13616
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-01 14:25 UTC by Shane Hathaway
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to enable local keyword overrides in Portage (shane-local-keywords.patch,956 bytes, patch)
2004-01-01 14:26 UTC, Shane Hathaway
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***