On Jul 20, 2005, at 1:15 PM, Tony Lambregts wrote:

I have ACL's working on our FreeBSD Server using Samba but when I
tried to backup and restore the files using Bacula I was unable to
restore the ACL's. When I investigated I discovered that Bacula
configured itself to have  "ACL support: no". I compiled it from
soure using ports (bacula-1.36.2) The relevant portion of the
configure check is as follows.

checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking for acl_get_file in -lacl... no

From my research that last test is only really valid on linux.

I would really like to know how to get Bacula to backup and restore
ACL's on FreeBSD. Is this a known issue that has a simple fix or have
I missed something?

Thank you for your time.

acl_get_file is in libc on FreeBSD. The acl library does exists on freebsd and is why the test fails. Removing the -lacl from the test will cause it to succeed. Here is a replacement patch for /usr/ports/ sysutils/bacula-server/files/patch-configure. I haven't tested things completely yet so I am very interested in your results. If it works for both of us, I will submit the patch to the port maintainer and we can see about getting the test fixed in future releases. In case the mailer mangles the patch, you can also get it here: http:// freebsd.tamu.edu/bacula/

This is against the most recent ports tree and version 1.36.3 of bacula.

--- configure.old       Mon Aug  1 11:43:10 2005
+++ configure   Mon Aug  1 11:43:45 2005
@@ -20554,13 +20554,13 @@
fi
-echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
-echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for acl_get_file" >&5
+echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lacl  $LIBS"
+LIBS="$LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
@@ -20619,7 +20619,7 @@
echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
if test $ac_cv_lib_acl_acl_get_file = yes; then
-  FDLIBS="-lacl $FDLIBS"
+  FDLIBS="$FDLIBS"
fi
have_acl=no
@@ -21038,8 +21038,8 @@
        DISTVER=`uname -a |awk '{print $3}'`
        VER=`echo $DISTVER | cut -c 1`
        if test x$VER = x4 ; then
-          PTHREAD_LIB="-pthread"
-          CFLAGS="${CFLAGS} -pthread"
+          PTHREAD_LIB="${PTHREAD_LIBS}"
+          CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
        fi
        lld="qd"
        llu="qu"



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to