Package: bacula Severity: normal Tags: patch
Hi, The attached patch allows bacula to be built with binutils-gold. I tried to follow your patching approach, rather than add the change directly to the diff.gz. Regards, Stephen -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable'), (200, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages bacula depends on: ii bacula-client 3.0.2-3 network backup, recovery and verif ii bacula-common 3.0.2-3.1 network backup, recovery and verif ii bacula-server 3.0.2-3 network backup, recovery and verif bacula recommends no packages. Versions of packages bacula suggests: ii bacula-doc 2.4.4-1 Documentation for Bacula -- no debconf information -- debsums errors found: debsums: no md5sums for bacula
diff -urN bacula-3.0.2.prev/debian/patches/fix_gold_build bacula-3.0.2/debian/patches/fix_gold_build --- bacula-3.0.2.prev/debian/patches/fix_gold_build 1970-01-01 01:00:00.000000000 +0100 +++ bacula-3.0.2/debian/patches/fix_gold_build 2009-11-08 16:57:26.000000000 +0100 @@ -0,0 +1,9 @@ +#!/bin/sh + +# libbac requires libdl, which isn't specified explicitly + +set -e + +for file in $(find . -name Makefile.in -o -name bat.pro.in | xargs grep -- -lbac | grep -v -- -ldl | cut -d: -f1) +do sed -i 's/-lbac /-lbac -ldl /g' $file +done diff -urN bacula-3.0.2.prev/debian/rules bacula-3.0.2/debian/rules --- bacula-3.0.2.prev/debian/rules 2009-11-08 16:45:31.000000000 +0100 +++ bacula-3.0.2/debian/rules 2009-11-08 17:35:33.000000000 +0100 @@ -72,7 +72,14 @@ tar -cSf - --exclude=./_darcs --exclude=./debian . | tar -xSpf - -C $(BUILDDIR)-$(*) touch $@ -configure-stamp-%: extract-stamp-% +patch-stamp-%: extract-stamp-% + @echo " *** DEBIAN *** PATCHING VARIANT $*" + chmod 755 debian/patches/fix_gold_build + cd $(BUILDDIR)-$(*) && \ + ../patches/fix_gold_build + touch $@ + +configure-stamp-%: patch-stamp-% dh_testdir @echo " *** DEBIAN *** CONFIGURING VARIANT $*" cp /usr/share/misc/config.guess /usr/share/misc/config.sub \