Bug 169698 - app-backup/bacula-2.0.2 does not compile w/ USE=postgres
Bug#: 169698 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: app-backup@gentoo.org Reported By: mark@lanfear.net
Component: Server
URL: 
Summary: app-backup/bacula-2.0.2 does not compile w/ USE=postgres
Keywords:  
Status Whiteboard: 
Opened: 2007-03-07 01:48 0000
Description:   Opened: 2007-03-07 01:48 0000
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 From Lisa Seelye (RETIRED) 2007-03-08 09:31:53 0000 -------
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 From Lisa Seelye (RETIRED) 2007-03-08 09:32:16 0000 -------
whoops forgot to mark fixed. sorry for spam.