Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169698 - app-backup/bacula-2.0.2 does not compile w/ USE=postgres
Summary: app-backup/bacula-2.0.2 does not compile w/ USE=postgres
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: App-Backup Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 01:48 UTC by Mark Wagner
Modified: 2007-03-08 09:32 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 Mark Wagner 2007-03-07 01:48:24 UTC
Bacula does not compile when using postgres as the database. The problem is that the USE flag is postgres but the option to pass to configure is --with-postgresql. This game in pkg_setup():

        if useq postgres; then
            export mydbtype='postgresql'
            let dbnum++
        fi

does not work because src_compile() contains

        myconf="${myconf} \
            $(use_with ${mydbtype}) \

Since the USE flag is postgres and mydbtype is set to postgresql this always evaluates to --without-postgresql.

A solution is to use "--with-${mydbtype}" rather than "$(use_with ${mydbtype})".


Reproducible: Always

Steps to Reproduce:
1. emerge bacula
2.
3.

Actual Results:  
You have not specified either --enable-client-only or one of the
  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite.
  This is not permitted. Please reconfigure.


Expected Results:  
bacula compiles and installs
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2007-03-08 09:31:53 UTC
Fixed in CVS as bacula-2.0.2. (No need for revision bump.) Wait a couple hours then resync and try again please.
Comment 2 Lisa Seelye (RETIRED) gentoo-dev 2007-03-08 09:32:16 UTC
whoops forgot to mark fixed. sorry for spam.