Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56562 - Error upgrading to bacula 1.34.5, during configuration, related to database or client-only mode
Summary: Error upgrading to bacula 1.34.5, during configuration, related to database o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Chuck Short (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-09 12:24 UTC by Michael Hill
Modified: 2004-07-19 06:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes failure to properly apply BUILD_CLIENT_ONLY env variable (bacula-1.34.5-r1.ebuild,4.11 KB, application/octet-stream)
2004-07-19 05:58 UTC, Andrew Hobbs
Details
Added existence checks to bacula init script (bacula-init,2.14 KB, application/octet-stream)
2004-07-19 06:22 UTC, Andrew Hobbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hill 2004-07-09 12:24:45 UTC
I've had bacula installed for months, with no upgrade problems.  It's currently at 1.34.4 .  Ever since 1.34.5 was put in the rsync tree, it's been failing during the "Doing make of dependencies" step after configuration finishes, with the following error:

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


Reproducible: Always
Steps to Reproduce:
1. emerge -u world
2.
3.

Actual Results:  
It goes through the configuration, culminating with

...
config.status: creating platforms/Makefile
config.status: creating platforms/gentoo/Makefile
config.status: creating platforms/gentoo/bacula-fd
config.status: creating platforms/gentoo/bacula-sd
config.status: creating platforms/gentoo/bacula-dir
config.status: creating src/config.h
config.status: executing default commands
Doing make of dependencies

It then goes through a list of directories, apparently running "make depend" in
each; the last lines of output are

==>Entering directory
/usr/portage/tmp/portage/bacula-1.34.5/work/bacula-1.34.5/src/tools
make[1]: Entering directory
`/usr/portage/tmp/portage/bacula-1.34.5/work/bacula-1.34.5/src/tools'
make[1]: Leaving directory
`/usr/portage/tmp/portage/bacula-1.34.5/work/bacula-1.34.5/src/tools'
 
 
You have not specified either --enable-client-only or one of the
  supported databases: MySQL, PostgreSQL, or SQLite.
  This is not permitted. Please reconfigure.
 
Aborting the configuration ...
 
 

!!! ERROR: app-admin/bacula-1.34.5 failed.
!!! Function src_compile, Line 71, Exitcode 1
!!! bad ./configure


Expected Results:  
Should have emerged bacula-1.34.5 without errors.

My first guess was that maybe there's some new USE flag that would govern use
of, e.g., SQLite in ebuilds where that is an option; I've printed the current
USE flag list and plan to go through it and update my make.conf .

However...

On this particular system, I would prefer to have it build client-only anyway,
since my tape drive and master bacula server is on another system.  Is there a
way to tell emerge to build it that way (such that a regular "emerge -u world"
will build it correctly)?

Here's `emerge info`:
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.4.26-gentoo-r3)
=================================================================
System uname: 2.4.26-gentoo-r3 i686 Pentium II (Klamath)
Gentoo Base System version 1.5.1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium2 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache digest sandbox"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/portage/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi apache2 apm berkdb cdr crypt curl ethereal gd gdbm jpeg libwww
mbox memlimit mmx ncurses nocd pam pcmcia perl png pnp python readline sasl
slang sse ssl tcpd tiff truetype x86 zlib"
Comment 1 Michael Hill 2004-07-12 17:37:21 UTC
I added sqlite to my USE variable, and the latest "emerge -u world" worked.
Comment 2 Andrew Hobbs 2004-07-19 05:58:32 UTC
Created attachment 35737 [details]
Fixes failure to properly apply BUILD_CLIENT_ONLY env variable

This addresses an issue when attempting to install bacula as a client only.  An
attachment is forthcoming for the init-scripts to address when bacula-sd and
bacula-dir are not available to be executed.
Comment 3 Andrew Hobbs 2004-07-19 06:22:05 UTC
Created attachment 35738 [details]
Added existence checks to bacula init script

Changed init script to check for the existence of bacula-sd or bacula-dir
before attempting to start/stop/test those files, as they may or may not exist
depending on whether the package was built with BUILD_CLIENT_ONLY (which only
builds bacula-fd).