Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53449 - mydns-0.10.4.ebuild should choose a database default
Summary: mydns-0.10.4.ebuild should choose a database default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-09 14:29 UTC by Aron Griffis (RETIRED)
Modified: 2004-06-13 00:20 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 Aron Griffis (RETIRED) gentoo-dev 2004-06-09 14:29:19 UTC
This is the wrong way to write an ebuild:

src_compile() {
    if ! use mysql && ! use postgres; then
        eerror "MyDNS needs either MySQL or PostgreSQL."
        eerror "Please set USE=\"mysql\" or USE=\"postgres\", and try again."
        die
    fi

Instead mydns should use one or the other as default if neither of the USE variables are specified.  This is standard within portage; when you have a dependency with multiple options, you choose the best one if there is no USE variable specifying otherwise.
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2004-06-13 00:20:02 UTC
Fixed in mydns-0.11.0.
in cvs.