Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114222 - /usr/portage/scripts/bootstrap.sh:179 gives a false positive for 'build' USE flag due to presence of 'fastbuild' dev-php/php local USE flag in /etc/make.conf
Summary: /usr/portage/scripts/bootstrap.sh:179 gives a false positive for 'build' USE ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 20:21 UTC by Andy Getz
Modified: 2005-12-02 07:43 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 Andy Getz 2005-12-01 20:21:27 UTC
/usr/portage/scripts/bootstrap.sh checks for the 'build' USE flag at line 179:
"if (ORIGUSE ~ /[[:space:]]*(build|bootstrap)[[:space:]]*/)"
Due to the wildcard before "(build|bootstrap)" and within the spaces, the
dev-php/php local USE flag 'fastbuild' satisfies the condition and causes the
script to die if present (e.g. in /etc/make.conf).  I believe this is in error,
as the the 'fastbuild' USE flag (and any other hypothetical '*build' flags)
should cause no problem with bootstrapping.  Not sure why the asterisk is
present, but unless there is some other USE flag we are attempting to block with
the wildcard expression, a logical solution seems to simply remove the asterisk.
 Obvious workaround is to simply comment 'fastbuild' (from /etc/make.conf) until
completion of boostrap step.

Reproducible: Always
Steps to Reproduce:
1. Set 'fastbuild' USE flag, e.g. by /etc/make.conf or by setting it on the
commandline before the next step (although the latter would be silly).
2. scripts/bootstrap.sh from /usr/portage/ as per Gentoo Handbook

Actual Results:  
Script dies (eerror) with:
You have 'build' or 'bootstrap' in your USE flags. Please
remove it before trying to continue, since these USE flags
are used for internal purposes and shouldn't be specified
by you.

Expected Results:  
Script should continue to run unless one of 'build' and 'bootstrap' is present
as well.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-02 07:43:45 UTC
Fixed in CVS...