Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130659 - www-client/kazehakase{,cvs} should use built_with_use (and check for valid use flags)
Summary: www-client/kazehakase{,cvs} should use built_with_use (and check for valid us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords: QAbaddie
: 150089 (view as bug list)
Depends on: 146902
Blocks: 137364
  Show dependency tree
 
Reported: 2006-04-20 14:10 UTC by Jakub Moc (RETIRED)
Modified: 2006-10-04 14:54 UTC (History)
5 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 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 14:10:14 UTC
<snip>
if ! use firefox; then
                local moz_use="$(</var/db/pkg/`best_version www-client/mozilla`/USE)"
                if ! has_version '>=www-client/mozilla-1.7.3-r2' && ! has gtk2 ${moz_use}
                then
                        echo
                        eerror
                        eerror "This needs mozilla used gtk2."
                        eerror "To build mozilla use gtk2, please type following command:"
                        eerror
                        eerror "    # USE=\"gtk2\" emerge mozilla"
                        eerror
                        die
                fi
        fi
}
</snip>

That's what built_with_use from eutils.eclass is for. Besides, the above isn't ${ROOT} aware, so it can fail.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 14:18:44 UTC
Uhm, and the grammar needs some make-up as well... ;) Like:

eerror "This ebuild needs mozilla built with USE=???."
eerror "To rebuild mozilla with USE=???, please type the following command:"
eerror
eerror "    # USE=\"???\" emerge mozilla"

And - worst of all, there's no gtk2 use flag in mozilla ebuilds, so this check will always fails.
Comment 2 Daniel Webert 2006-07-07 19:21:23 UTC
ping - 2 months
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2006-09-08 21:39:17 UTC
since kazehakase-0.3.9, I removed built_with_use from ebuild. 
and I think remove kazehakase-cvs from portage tree.
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2006-10-04 08:39:27 UTC
0.3.9 stable now. Removed old versions.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-10-04 14:54:34 UTC
*** Bug 150089 has been marked as a duplicate of this bug. ***