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

Bug 168041

Summary: app-office/gnucash-2.0.5 bad built_with_use check
Product: Gentoo Linux Reporter: Neil Bothwick <neil>
Component: New packagesAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED FIXED    
Severity: minor CC: gnome
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Neil Bothwick 2007-02-22 21:35:59 UTC
The ebuild contains

built_with_use dev-scheme/guile regex || die "dev-scheme/guile must be built with regex"
built_with_use dev-scheme/guile deprecated || die "dev-scheme/guile must be built with deprecated"
built_with_use dev-scheme/guile discouraged || die "dev-scheme/guile must be built with discouraged"

This means you try to emerge gnucash, get the failure and add the regex flag for guile, emerge again and get another failure, add another USE flag, then fail once again. The result is that you rebuild guile up to three times, instead of once.

It would be better if each line contained

die "dev-scheme/guile must be built with the regex, deprecated and discouraged USE flags."
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-22 21:40:40 UTC
It would be even better to die just once:

built_with_use dev-scheme/guile regex deprecated discouraged || die "..."
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-02-22 22:38:04 UTC
Fixed.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-02-23 08:25:52 UTC
(In reply to comment #2)
> Fixed.
> 

You've produced a bunch of typos there, making the ebuild die due to non-existant flag.

-if !built_with_use dev-scheme/guile regex depricated discouraged; then
-die "dev-scheme/guile must be built with USE=\"regex depricated discouraged\""
+if ! built_with_use dev-scheme/guile regex deprecated discouraged; then
+die "dev-scheme/guile must be built with USE=\"regex deprecated discouraged\""
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-02-23 14:46:41 UTC
I swear I installed it before I committed...

Anyway, fixed again.