Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160651 - www-apps/trac-0.10.* are incorrectly using built_with_use_error
Summary: www-apps/trac-0.10.* are incorrectly using built_with_use_error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Julien Allanos (RETIRED)
URL: http://sources.gentoo.org/viewcvs.py/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-07 11:27 UTC by Nicolas Litchinko
Modified: 2007-01-07 19:14 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 Nicolas Litchinko 2007-01-07 11:27:42 UTC
All the www-apps/trac-0.10.[1-3] ebuilds are calling the built_with_use_error function but it is defined as built_with_use_error_msg.

if ! built_with_use dev-util/subversion python ; then
	built_with_use_error dev-util/subversion python
fi

if ! built_with_use dev-libs/clearsilver python ; then
	built_with_use_error dev-libs/clearsilver python
fi

If subversion and/or clearsilver aren't built with the python use flag, messages about an undefined function call will appear but the installation won't be aborted.

Reproducible: Always

Steps to Reproduce:
1. USE="-python" emerge dev-libs/clearsilver
2. emerge www-apps/trac

Actual Results:  
This may result in a broken trac. If the user has missed the two error messages, it'll take some time to find out that subversion and/or clearsilver are missing the python USE flag.

Expected Results:  
The installation should stop there and display the error message.

Something like this should fix all the ebuilds at once:

#!/bin/bash
for x in `ls /usr/portage/www-apps/trac/trac-0.10.*.ebuild`; do
sed -e 's/built_with_use_error /built_with_use_error_msg /' $x >$x.new
mv $x.new $x
done
Comment 1 Nicolas Litchinko 2007-01-07 11:30:09 UTC
CCing Julien Allanos as he's the maintaining this ebuild.
Comment 2 Julien Allanos (RETIRED) gentoo-dev 2007-01-07 19:14:44 UTC
Thanks, fixed in CVS.