The Samba-Bugzilla – Attachment 11391 Details for
Bug 11484
Add --xattrs support for NetBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch to enable --xattrs for NetBSD
rsync-xattr-netbsd.patch (text/plain), 2.44 KB, created by
Emmanuel Dreyfus
on 2015-09-02 04:18:25 UTC
(
hide
)
Description:
Patch to enable --xattrs for NetBSD
Filename:
MIME Type:
Creator:
Emmanuel Dreyfus
Created:
2015-09-02 04:18:25 UTC
Size:
2.44 KB
patch
obsolete
>Enable extended attribute support for NetBSD > >--- configure.ac.orig 2015-08-31 16:52:47.000000000 +0200 >+++ configure.ac 2015-08-31 16:53:23.000000000 +0200 >@@ -1060,8 +1060,15 @@ > AC_DEFINE(SUPPORT_XATTRS, 1) > AC_DEFINE(NO_SYMLINK_USER_XATTRS, 1, [True if symlinks do not support user xattrs]) > AC_CHECK_LIB(attr,getxattr) > ;; >+ *netbsd*) >+ AC_MSG_RESULT(Using NetBSD xattrs) >+ AC_DEFINE(HAVE_LINUX_XATTRS, 1, [True if you have NetBSD xattrs]) >+ AC_DEFINE(SUPPORT_XATTRS, 1) >+ AC_DEFINE(NO_SYMLINK_USER_XATTRS, 1, [True if symlinks do not support user xattrs]) >+ AC_CHECK_LIB(attr,getxattr) >+ ;; > darwin*) > AC_MSG_RESULT(Using OS X xattrs) > AC_DEFINE(HAVE_OSX_XATTRS, 1, [True if you have Mac OS X xattrs]) > AC_DEFINE(SUPPORT_XATTRS, 1) >--- configure.sh.orig 2015-08-31 16:52:52.000000000 +0200 >+++ configure.sh 2015-08-31 16:54:46.000000000 +0200 >@@ -8924,8 +8924,65 @@ > > fi > > ;; >+ *netbsd*) >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using NetBSD xattrs" >&5 >+$as_echo "Using NetBSD xattrs" >&6; } >+ >+$as_echo "#define HAVE_LINUX_XATTRS 1" >>confdefs.h >+ >+ $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h >+ >+ >+$as_echo "#define NO_SYMLINK_USER_XATTRS 1" >>confdefs.h >+ >+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5 >+$as_echo_n "checking for getxattr in -lattr... " >&6; } >+if ${ac_cv_lib_attr_getxattr+:} false; then : >+ $as_echo_n "(cached) " >&6 >+else >+ ac_check_lib_save_LIBS=$LIBS >+LIBS="-lattr $LIBS" >+cat confdefs.h - <<_ACEOF >conftest.$ac_ext >+/* end confdefs.h. */ >+ >+/* Override any GCC internal prototype to avoid an error. >+ Use char because int might match the return type of a GCC >+ builtin and then its argument prototype would still apply. */ >+#ifdef __cplusplus >+extern "C" >+#endif >+char getxattr (); >+int >+main () >+{ >+return getxattr (); >+ ; >+ return 0; >+} >+_ACEOF >+if ac_fn_c_try_link "$LINENO"; then : >+ ac_cv_lib_attr_getxattr=yes >+else >+ ac_cv_lib_attr_getxattr=no >+fi >+rm -f core conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext >+LIBS=$ac_check_lib_save_LIBS >+fi >+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5 >+$as_echo "$ac_cv_lib_attr_getxattr" >&6; } >+if test "x$ac_cv_lib_attr_getxattr" = xyes; then : >+ cat >>confdefs.h <<_ACEOF >+#define HAVE_LIBATTR 1 >+_ACEOF >+ >+ LIBS="-lattr $LIBS" >+ >+fi >+ >+ ;; > darwin*) > { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X xattrs" >&5 > $as_echo "Using OS X xattrs" >&6; } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11484
: 11391