Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17059 - bacula console depends on libtermcap-compat / termcap , init script is not installed , and default mysql root password needs added to db creation scripts
Summary: bacula console depends on libtermcap-compat / termcap , init script is not in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Donny Davies (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-07 21:25 UTC by Jacob M. McDonald
Modified: 2003-06-11 20:57 UTC (History)
0 users

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


Attachments
updated ebuilds for version 1.29-r1 1.30a and 1.31 (bacula.ebuild.tar.gz,3.60 KB, application/x-tgz)
2003-06-09 03:42 UTC, smouge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob M. McDonald 2003-03-07 21:25:52 UTC
Bacula's Console component depends on sys-libs/libtermcap-compat to compile
successfully, but this dependency is not part of the ebuild.

Second, the init script (/usr/portage/app-admin/bacula/files/bacula-init) is not
installed into /etc/init.d/ during the merge.

And third, the default mysql root password (null) needs added to db creation
scripts (/etc/bacula/create_mysql_database and /etc/bacula/make_mysql_tables):

   if $bindir/mysql -f <<END-OF-DATA
should be changed to
   if $bindir/mysql -f --password= <<END-OF-DATA

After that, this ebuild seems pretty stable. I'm already using it successfully.
Thanks for making such a great backup system available for us!

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jacob M. McDonald 2003-03-09 21:45:12 UTC
One more... the path to the .conf files (/etc/bacula) needs to be specified with the "-c" option in the init script:

start() {
        ebegin "Starting bacula storage daemon"
        start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd -- -c /etc/
bacula/bacula-sd.conf
        result=$?
        ebegin "Starting bacula file daemon"
        start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd -- -c /etc/
bacula/bacula-fd.conf
        result=$(( $result + $? ))
        sleep 2
        ebegin "Starting bacula director"
        start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir -- -c /etc
/bacula/bacula-dir.conf
        result=$(( $result + $? ))
        eend $result
}
Comment 2 smouge 2003-06-01 15:52:09 UTC
would be nice to add the line 
 
sh /etc/bacula/grant_mysql_privileges  
 
in the explanation lines:  
 
If this is a new install and you plan to use mysql for your 
 * catalog database, then you should now create it by doing 
 * these two commands: 
 *  sh /etc/bacula/create_mysql_database 
 *  sh /etc/bacula/make_mysql_tables 
 * Then setup your configuration files in /etc/bacula and 
 * start the daemons: 
 *  /etc/init.d/bacula start 
 
Furthermore: would be nice if you could adapt the ebuild to make it working with the 
latest bacula version. The term-cap dependency is listed already 3 month now and 
only requires changing the line  
 
RDEPEND="${DEPEND} sys-apps/mtx app-arch/mt-st" 
 
into 
 
RDEPEND="${DEPEND} sys-apps/mtx app-arch/mt-st sys-libs/libtermcap-compat" 
 
 
 
 
 
 
Comment 3 Donny Davies (RETIRED) gentoo-dev 2003-06-02 19:42:36 UTC
sorry i've just not had any time, thats all.

if you go through the bacula issues, and submit a tarball
containing all the fixes, i can see about dumping it in
for you.

please dont give me a mess though, give me a nice, clean
set of updates.  I'd like to help, but again, just been
too busy.
Comment 4 smouge 2003-06-07 16:27:14 UTC
Working on this right now, I will send you modified ebuild files in a tar ball for the versions 1.29, 
1.30a and 1.31 
 
Regarding  
 
QUOTE 
And third, the default mysql root password (null) needs added to db creation 
scripts (/etc/bacula/create_mysql_database and /etc/bacula/make_mysql_tables): 
 
   if $bindir/mysql -f <<END-OF-DATA 
should be changed to 
   if $bindir/mysql -f --password= <<END-OF-DATA 
 
UNQUOTE 
 
These scripts are part of the Bacula code and should be changed by Bacula. 
Comment 5 smouge 2003-06-09 03:42:57 UTC
Created attachment 12977 [details]
updated ebuilds for version 1.29-r1 1.30a and 1.31

Included the updated ebuilds for version 1.29-r1 1.30a and 1.31
For version 1.31 had to make a work-a-round in the ebuild (see the comment in
the ebuild)

The bug "default mysql root password" can not be solved with the ebuilds as it
is part of the bacula source an will have to be altered by the Bacula
developers
Comment 6 Donny Davies (RETIRED) gentoo-dev 2003-06-11 20:57:23 UTC
i've added bacula-1.31 which fixes these issues.

thanks all.