]> git.pld-linux.org Git - packages/bacula.git/blobdiff - bacula-64bitbuild_fix.patch
- Fix build on 64bit systems with bdi. Will send upstream in a bit.
[packages/bacula.git] / bacula-64bitbuild_fix.patch
diff --git a/bacula-64bitbuild_fix.patch b/bacula-64bitbuild_fix.patch
new file mode 100644 (file)
index 0000000..6681140
--- /dev/null
@@ -0,0 +1,37 @@
+--- bacula-3.0.0/autoconf/bacula-macros/db.m4.orig     2009-04-20 13:02:06.530168885 +0200
++++ bacula-3.0.0/autoconf/bacula-macros/db.m4  2009-04-20 13:05:42.299890921 +0200
+@@ -35,26 +35,18 @@
+            AC_MSG_RESULT(no)
+            AC_MSG_ERROR(Unable to find dbi.h in standard locations)
+         fi
+-        if test -d /usr/local/lib/dbd; then
++        if test -d /usr/local/lib64/dbd; then
++           DRIVERDIR=/usr/local/lib64/dbd
++        elif test -d /usr/local/lib/dbd; then
+            DRIVERDIR=/usr/local/lib/dbd
+-           if test -d /usr/local/lib64/dbd; then
+-              DRIVERDIR=/usr/local/lib64/dbd
+-           else
+-              DRIVERDIR=/usr/local/lib/dbd
+-           fi
++        elif test -d /usr/lib64/dbd; then
++           DRIVERDIR=/usr/lib64/dbd
+         elif test -d /usr/lib/dbd; then
+            DRIVERDIR=/usr/lib/dbd
+-           if test -d /usr/lib64/dbd; then
+-              DRIVERDIR=/usr/lib64/dbd
+-           else
+-              DRIVERDIR=/usr/lib/dbd
+-           fi
++        elif test -d $prefix/lib64/dbd; then
++           DRIVERDIR=$prefix/lib64/dbd
+         elif test -d $prefix/lib/dbd; then
+-           if test -d $prefix/lib64/dbd; then
+-              DRIVERDIR=$prefix/lib64/dbd
+-           else
+-              DRIVERDIR=$prefix/lib/dbd
+-           fi
++           DRIVERDIR=$prefix/lib/dbd
+         else
+            AC_MSG_RESULT(no)
+            AC_MSG_ERROR(Unable to find DBD drivers in standard locations)
This page took 0.090036 seconds and 4 git commands to generate.