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

Bug 69127

Summary: honor -doc in USE when doing dodoc
Product: Portage Development Reporter: Stephen Leaf <smileaf>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: enhancement CC: flash3001
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stephen Leaf 2004-10-27 05:45:59 UTC
afaik the -doc should stop documentation from being installed however it would appear that it's not being done in the dodoc command and rather the ebuild maintainers must do a 
use doc && dodoc ...

can this be changed so that portage checks if the user wants documentation to be installed in the dodoc command?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Stephen Leaf 2004-10-27 06:01:45 UTC
adding
if [ "${USE}" != "${USE%-doc%}" ] ; then

around the content seems to work great :)
Comment 2 Alexandru Toma 2004-10-27 09:40:39 UTC
AFAIK the doc use flag should only be used when there is _extra_ documentation that can be installed (i.e. HTML docs). Basic docs (README, TODO, ChangeLog, etc.) should always be installed.
Comment 3 SpanKY gentoo-dev 2004-10-27 15:06:27 UTC
doc is for documentation ABOVE AND BEYOND the normal amount

what you want is FEATURES=nodoc, see `man make.conf`
Comment 4 Stephen Leaf 2004-10-30 21:47:20 UTC
I consider man pages to be documentation.. and anything else to be extra (README, TODO, ChangeLog, etc.)
Comment 5 SpanKY gentoo-dev 2004-10-30 21:57:51 UTC
it really doesnt matter what you think USE=doc should mean, we're not going to change