Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57302 - Bacula 1.34.5 wont build with BUILD_CLIENT_ONLY=1
Summary: Bacula 1.34.5 wont build with BUILD_CLIENT_ONLY=1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Chuck Short (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-16 10:03 UTC by MikeM
Modified: 2004-07-19 17:08 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 MikeM 2004-07-16 10:03:26 UTC
Bacula 1.34.5 wont build if you specify BUILD_CLIENT_ONLY=1 and have not specified a database (as you are supposed to do).  It errors out during the compile with...

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

  The ebuild has the condition for BUILD_CLIENT_ONLY incorrectly checked before $myconf is defined.  The addition of "--enable-client-only" is immediatley wiped out by the definition of $myconf on the next line.

------
src_compile() {
        local myconf=""
                                                                                                                                        
        [ -n "$BUILD_CLIENT_ONLY" ] \
                && myconf="${myconf} --enable-client-only"
                                                                                                                                        
        #define this to skip building the other daemons ...
        myconf="
                `use_enable readline`
                `use_enable gnome`
                `use_enable tcpd tcp-wrappers`
                `use_enable X x`
                `use_enable wxwindows wx-console`
                "
------

  By switching the order the ebuild works fine.

------
src_compile() {
        local myconf=""
                                                                                                                                        
        #define this to skip building the other daemons ...
        myconf="
                `use_enable readline`
                `use_enable gnome`
                `use_enable tcpd tcp-wrappers`
                `use_enable X x`
                `use_enable wxwindows wx-console`
                "
        [ -n "$BUILD_CLIENT_ONLY" ] \
                && myconf="${myconf} --enable-client-only"
                                                                                                                                        ------


Reproducible: Always
Steps to Reproduce:
1.  BUILD_CLIENT_ONLY=1 emerge bacula




  This bug is the same as 56562 which was marked FIXED incorrectly.  The
solution provided was only a work around and did not address the problem.
Comment 1 Chuck Short (RETIRED) gentoo-dev 2004-07-19 17:08:25 UTC
Fixed in cvs.