Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57290 - ACCEPT_KEYWORDS on the commandline considered harmful
Summary: ACCEPT_KEYWORDS on the commandline considered harmful
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL:
Whiteboard:
Keywords:
: 83517 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-16 06:32 UTC by Ciaran McCreesh
Modified: 2005-02-28 15:42 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 Ciaran McCreesh 2004-07-16 06:32:05 UTC
Code listing 35 in the Handbook part 2 chapter 2 recommends:

Code Listing 35: Temporarily accepting ~ARCH packages
# ACCEPT_KEYWORDS="~x86" emerge gnumeric

This is a *very* bad idea. It should be updated to talk about /etc/portage/package.keywords instead.

Reasons to avoid ACCEPT_KEYWORDS on the commandline:
* It encourages people to use -U. -U is a bad idea because a) it avoids forced downgrades and b) it breaks SLOTs
* It breaks depclean
* It will pull in ~arch packages to satisfy dependencies when they're not necessary
* Various other things too, ask roger55
Comment 1 Benny Chuang (RETIRED) gentoo-dev 2004-07-16 06:53:05 UTC
I don't think this should be avoided. ACCEPT_KEYWORDS is somehow important to advanced users; however, a <note> with brief explaination should be added to inform readers.
Comment 2 Ciaran McCreesh 2004-07-16 07:06:07 UTC
No no. Everyone should be using package.keywords. There're a few rare cases where developers might want to do ACCEPT_KEYWORDS on the commandline, but developers already know that. We *definitely* shouldn't be giving this kind of advice in a document which is aimed at end users who don't know portage internals.
Comment 3 Benny Chuang (RETIRED) gentoo-dev 2004-07-16 07:31:29 UTC
I see.. I haven't tried /etc/portage/package.keywords.
is the substitution should look similar like the following?

echo "app-office/gnumeric ~x86" >> /etc/portage/package.keywords

Comment 4 Ciaran McCreesh 2004-07-16 07:36:20 UTC
yup. man portage.
Comment 5 Xavier Neys (RETIRED) gentoo-dev 2004-07-17 09:49:01 UTC
Taking bug on Benny's request
Comment 6 Xavier Neys (RETIRED) gentoo-dev 2004-07-18 03:42:10 UTC
Fixed.
Thanks for reporting.
Comment 7 Ben Measures 2005-02-06 06:16:48 UTC
The emerge manpage also condones this useage of ACCEPT_KEYWORDS on the commandline, in the KEYWORDS section with:

To inform emerge that it should build these 'testing' versions of packages, you  may set ACCEPT_KEYWORDS to "~arch", where arch is one of: x86 ppc sparc mips alpha arm hppa. For example, ACCEPT_KEYWORDS="~x86" emerge xfree

Perhaps it would be better to refer to the package.keywords documentation instead.
Comment 8 SpanKY gentoo-dev 2005-02-06 11:41:30 UTC
man page updated in cvs
Comment 9 SpanKY gentoo-dev 2005-02-28 15:42:18 UTC
*** Bug 83517 has been marked as a duplicate of this bug. ***