<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>169698</bug_id>
          
          <creation_ts>2007-03-07 01:48 0000</creation_ts>
          <short_desc>app-backup/bacula-2.0.2 does not compile w/ USE=postgres</short_desc>
          <delta_ts>2007-03-08 09:32:16 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mark@lanfear.net</reporter>
          <assigned_to>app-backup@gentoo.org</assigned_to>
          <cc>kronenpj@kronenpj.dyndns.org</cc>

      

      
          <long_desc isprivate="0">
            <who>mark@lanfear.net</who>
            <bug_when>2007-03-07 01:48:24 0000</bug_when>
            <thetext>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=&apos;postgresql&apos;
            let dbnum++
        fi

does not work because src_compile() contains

        myconf=&quot;${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 &quot;--with-${mydbtype}&quot; rather than &quot;$(use_with ${mydbtype})&quot;.


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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lisa@gentoo.org</who>
            <bug_when>2007-03-08 09:31:53 0000</bug_when>
            <thetext>Fixed in CVS as bacula-2.0.2. (No need for revision bump.) Wait a couple hours then resync and try again please.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lisa@gentoo.org</who>
            <bug_when>2007-03-08 09:32:16 0000</bug_when>
            <thetext>whoops forgot to mark fixed. sorry for spam.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>