Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124330 - kde-misc/krecipes misuses USE flags
Summary: kde-misc/krecipes misuses USE flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-27 16:57 UTC by Ciaran McCreesh
Modified: 2006-02-28 16:10 UTC (History)
1 user (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 Ciaran McCreesh 2006-02-27 16:57:07 UTC
From krecipes-0.9.1.ebuild:

    pkg_setup() {
    
Comment 1 Ciaran McCreesh 2006-02-27 16:57:07 UTC
From krecipes-0.9.1.ebuild:

    pkg_setup() {
    »···if ! use sqlite && ! use mysql && ! use postgres; then
    »···»···eerror krecipes needs either SQLite, MySQL or PostgreSQL to work,
    »···»···eerror please try again with USE=\"sqlite\", USE=\"mysql\" or USE=\"postgres\".
    »···»···die
    »···fi
    }

This is a policy violation. See the paragraph starting with "Occasionally, ebuilds will have conflicting USE flags for functionality." in http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1 . If no USE flag is specified, you should pick one of the three and pretend it's on.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2006-02-28 15:56:54 UTC
I've never used this tricky syntax before, but is this legal?:

DEPEND="sqlite? ( dev-db/sqlite )
      !mysql? ( !postgres? ( dev-db/sqlite ) ) )"  

Comment 3 Ciaran McCreesh 2006-02-28 16:01:10 UTC
Yup. See gvim for a more complicated example.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2006-02-28 16:10:33 UTC
gotcha.  ebuild should be fixed now, used sqlite as a default since it's the smallest and most lightweight.  

thanks for your QA work.