Kind Bacula Users,
I am attempting to build and use bacula-5.0.1-2 under Fedora
Core 6. (The OS is not mine to upgrade, so need to find a way to work with
FC6.) Has anyone done that?
I have tried building from source rpm (and installing the
resulting base rpm) without success. Here’s what I’ve done plus the
results of same:
- Downloaded
bacula-5.0.1-2.src.rpm, and installed it on my FC6 build system under
/usr/src/redhat/SRPMS.
- Changed permissions on
/usr/src/redhat (and all its subdirectories) so that ordinary users can
read and write there.
- As an ordinary user, executed
rpmbuild -ba --define
"build_fc6 1" --define "fedora_version 6" --define
"build_postgresql 1" /usr/src/redhat/SPECS/bacula.spec >
rpmbuild.log 2>&1
According to rpmbuild.log, this may
be producing a good build. The following (possibly benign) error messages were
found:
+ rm -rf
/var/tmp/bacula-root
+ mkdir -p
/var/tmp/bacula-root/etc/init.d
+ mkdir -p
/var/tmp/bacula-root/etc/logrotate.d
+ mkdir -p
/var/tmp/bacula-root/etc/logwatch/conf/logfiles
+ mkdir -p
/var/tmp/bacula-root/etc/logwatch/conf/services
+ mkdir -p
/var/tmp/bacula-root/etc/logwatch/scripts/services
+ mkdir -p
/var/tmp/bacula-root/etc/logwatch/scripts/shared
+ mkdir -p
/var/tmp/bacula-root/usr/lib/bacula/updatedb
+ mkdir -p
/var/tmp/bacula-root/etc/pam.d
+ mkdir -p
/var/tmp/bacula-root/usr/sbin
+ make
DESTDIR=/var/tmp/bacula-root install
./autoconf/mkinstalldirs
/var/tmp/bacula-root/usr/sbin
./autoconf/mkinstalldirs /var/tmp/bacula-root/etc/bacula
mkdir -p --
/var/tmp/bacula-root/etc/bacula
./autoconf/mkinstalldirs
/var/tmp/bacula-root/usr/lib/bacula
./autoconf/mkinstalldirs
/var/tmp/bacula-root/usr/share/doc/bacula
mkdir -p --
/var/tmp/bacula-root/usr/share/doc/bacula
./autoconf/mkinstalldirs
/var/tmp/bacula-root/tmp
mkdir -p --
/var/tmp/bacula-root/tmp
if test ! -d
/var/tmp/bacula-root/var/lib/bacula ; then \
./autoconf/mkinstalldirs /var/tmp/bacula-root/var/lib/bacula; \
chmod 770 /var/tmp/bacula-root/var/lib/bacula; \
fi
mkdir -p --
/var/tmp/bacula-root/var/lib/bacula
if test "xbacula"
!= "x" ; then \
chown bacula /var/tmp/bacula-root/var/lib/bacula; \
fi
chown: changing ownership of
`/var/tmp/bacula-root/var/lib/bacula': Operation no
t permitted
make: [installdirs] Error 1
(ignored)
if test "xbacula"
!= "x" ; then \
chgrp bacula /var/tmp/bacula-root/var/lib/bacula; \
fi
chgrp: changing group of
`/var/tmp/bacula-root/var/lib/bacula': Operation not pe
rmitted
make: [installdirs] Error 1
(ignored)
make[1]: Entering directory
`/usr/src/redhat/BUILD/bacula-5.0.1/src'
- Attempting to install the
resulting bacula-postgresql-5.0.1-2.i386.rpm fails the dependency check:
[root@target]# rpm -i bacula-postgresql-5.0.1-2.i386.rpm
error: Failed dependencies:
libpq.so.5 is needed by bacula-postgresql-5.0.1-2.i386
perl(Logwatch) is needed by bacula-postgresql-5.0.1-2.i386
[root@target]#
I can resolve the perl(Logwatch) dependency easily enough,
but I’m at a loss as to how to deal with the libpq.so.5 dependency. The
shared library is provided by postgresql-libs for PostgreSQL 8.2 and later, but
upgrading the database server to that version is not an option in this
environment. Yet I haven’t found a way to “turn off” the
requirement of libpq.so.5.
Is it possible to require libpq.so.4 instead of libpq.so.5?
Do we know it’s possible to build and use bacula-5.0.1 under FC6?
Thanks,
Steve Tice