summary: attached is a patch that allows compiling debian lenny's bacula
packages on ubuntu lucid, as lucid's bacula-fd 5.0.1 is not compatible with
lenny's bacula-director 2.4.4 (ie "Fatal error: File daemon at
"${FD_HOSTNAME}:9102" rejected Hello command").

my bacula server (director & sd) is 2.4.4 running on lenny.  my bacula
clients (fd) are lenny (2.4.4), hardy (2.2.8), and now lucid (5.0.1).  the
hardy 2.2.8 fds have worked fine with lenny's 2.4.4 director & sd, but upon
my first client upgrade from hardy to lucid with its 5.0.1 fd, the director
began reporting the aforementioned "fatal error".  an internet search
pointed to an fd-director version mismatch and somebody in the #bacula
freenode irc channel confirmed it (ie WORKS: director >= fd; DOESN'T: fd >
director), so i set about building lenny's bacula source package for lucid
as it is guaranteed to be compatible with the lenny bacula server and will
be supported by debian for just as long.

yes, debian-backports contains bacula 5.0.1 for lenny, but it's not
officially supported and the bacula server (director & sd) is the most
important piece, so i won't take chances with it.

distro release - bacula version - components used
 * hardy - 2.2.8 - fd, console
 * lenny - 2.4.4 - director, sd, fd, console
 * lucid - 5.0.1 - fd, console

instructions
 * wget -Nv
http://http.us.debian.org/debian/pool/main/b/bacula/{bacula_2.4.4-1.dsc,bacula_2.4.4.orig.tar.gz,bacula_2.4.4-1.diff.gz}
 * dpkg-source -x bacula_2.4.4-1.dsc
 * cd bacula-2.4.4/
 * patch -p1 <../bacula_2.4.4-1lucid1.patch
 * apt-get install apt-get install autotools-dev debhelper po-debconf
zlib1g-dev libreadline5-dev libjconv-dev libsqlite0-dev libsqlite3-dev
libmysqlclient15-dev libpq-dev postgresql-server-dev-8.4 libwrap0-dev
python-dev libgtk2.0-dev libgnome2-dev libwxgtk2.6-dev libacl1-dev
libkrb5-dev libgnomeui-dev libx11-dev mtx bc libxt-dev dpkg-dev libqt4-dev
libqwt5-qt4-dev
 * dpkg-buildpackage -D -us -uc
 * dpkg -i bacula-{client,fd,console,common}_2.4.4-1lucid1_*.deb

i've only tested the fd & console applications (as that's all i need
client-side).

hopefully this helps some sysadmin with the same problem.

corey
-- 
undefi...@pobox.com
diff -urNpd bacula-2.4.4.orig/debian/changelog bacula-2.4.4/debian/changelog
--- bacula-2.4.4.orig/debian/changelog	2010-06-02 03:32:35.000000000 +0000
+++ bacula-2.4.4/debian/changelog	2010-06-02 03:51:32.000000000 +0000
@@ -1,3 +1,16 @@
+bacula (2.4.4-1lucid1) lucid; urgency=low
+
+  * Rebuild for Lucid to maintain compatibility with version in Lenny
+   + debian/control:
+    - add postgresql-server-dev-8.4 to Build-Depends
+    - postgresql-server-dev-8.4 is the only version in Lucid
+   + debian/rules:
+    - add -U_FORTIFY_SOURCE to CFLAGS
+    - turn off gcc 4.4.3 run-time "buffer overflow" detection (false positive)
+    - http://bugs.gentoo.org/257016
+
+ -- Corey Wright <undefi...@pobox.com>  Tue, 01 Jun 2010 22:51:21 -0500
+
 bacula (2.4.4-1) unstable; urgency=low
 
   * New Upstream Version - a bugfix release.  Closes: #508816.
diff -urNpd bacula-2.4.4.orig/debian/control bacula-2.4.4/debian/control
--- bacula-2.4.4.orig/debian/control	2010-06-02 03:32:35.000000000 +0000
+++ bacula-2.4.4/debian/control	2010-06-02 03:43:20.000000000 +0000
@@ -5,7 +5,7 @@ Maintainer: John Goerzen <jgoer...@compl
 Build-Depends: autotools-dev, debhelper (>= 4.2), po-debconf (>= 0.8.2), 
  zlib1g-dev, libreadline5-dev | libreadline-dev, libjconv-dev,
  libsqlite0-dev, libsqlite3-dev, libmysqlclient15-dev, libpq-dev, 
- postgresql-server-dev-8.3 | postgresql-server-dev-8.2,
+ postgresql-server-dev-8.4 | postgresql-server-dev-8.3 | postgresql-server-dev-8.2,
  libwrap0-dev, python-dev, libgtk2.0-dev (>= 2.10),
  libgnome2-dev, libwxgtk2.6-dev, libacl1-dev, libkrb5-dev, libgnomeui-dev,
  libx11-dev, mtx, bc, libxt-dev, dpkg-dev (>= 1.13.19), libqt4-dev, libqwt5-qt4-dev
diff -urNpd bacula-2.4.4.orig/debian/rules bacula-2.4.4/debian/rules
--- bacula-2.4.4.orig/debian/rules	2010-06-02 03:32:35.000000000 +0000
+++ bacula-2.4.4/debian/rules	2010-06-02 03:37:51.000000000 +0000
@@ -11,7 +11,7 @@ DEB_HOST_GNU_TYPE   ?= $(shell dpkg-arch
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 
-CFLAGS = -g -Wall
+CFLAGS = -g -Wall -U_FORTIFY_SOURCE
 INSTALL_PROGRAM = install
 
 SHELL := bash
------------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to