|
Karsten Hopp |
e519d3 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e519d3 |
Subject: Patch 7.4.2
|
|
Karsten Hopp |
e519d3 |
Fcc: outbox
|
|
Karsten Hopp |
e519d3 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e519d3 |
Mime-Version: 1.0
|
|
Karsten Hopp |
e519d3 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e519d3 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e519d3 |
------------
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
Patch 7.4.254
|
|
Karsten Hopp |
e519d3 |
Problem: Smack support detection is incomplete.
|
|
Karsten Hopp |
e519d3 |
Solution: Check for attr/xattr.h and specific macro.
|
|
Karsten Hopp |
e519d3 |
Files: src/configure.in, src/auto/configure
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
*** ../vim-7.4.253/src/configure.in 2014-04-05 12:02:20.747100138 +0200
|
|
Karsten Hopp |
e519d3 |
--- src/configure.in 2014-04-10 11:02:59.256035996 +0200
|
|
Karsten Hopp |
e519d3 |
***************
|
|
Karsten Hopp |
e519d3 |
*** 396,405 ****
|
|
Karsten Hopp |
e519d3 |
AC_MSG_RESULT(no)
|
|
Karsten Hopp |
e519d3 |
AC_CHECK_HEADER([linux/xattr.h], true, enable_smack="no")
|
|
Karsten Hopp |
e519d3 |
else
|
|
Karsten Hopp |
e519d3 |
! AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
e519d3 |
fi
|
|
Karsten Hopp |
e519d3 |
if test "$enable_smack" = "yes"; then
|
|
Karsten Hopp |
e519d3 |
! AC_CHECK_LIB(attr, llistxattr,
|
|
Karsten Hopp |
e519d3 |
[LIBS="$LIBS -lattr"
|
|
Karsten Hopp |
e519d3 |
found_smack="yes"
|
|
Karsten Hopp |
e519d3 |
AC_DEFINE(HAVE_SMACK)])
|
|
Karsten Hopp |
e519d3 |
--- 396,414 ----
|
|
Karsten Hopp |
e519d3 |
AC_MSG_RESULT(no)
|
|
Karsten Hopp |
e519d3 |
AC_CHECK_HEADER([linux/xattr.h], true, enable_smack="no")
|
|
Karsten Hopp |
e519d3 |
else
|
|
Karsten Hopp |
e519d3 |
! AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
e519d3 |
fi
|
|
Karsten Hopp |
e519d3 |
if test "$enable_smack" = "yes"; then
|
|
Karsten Hopp |
e519d3 |
! AC_CHECK_HEADER([attr/xattr.h], true, enable_smack="no")
|
|
Karsten Hopp |
e519d3 |
! fi
|
|
Karsten Hopp |
e519d3 |
! if test "$enable_smack" = "yes"; then
|
|
Karsten Hopp |
e519d3 |
! AC_MSG_CHECKING(for XATTR_NAME_SMACKEXEC in linux/xattr.h)
|
|
Karsten Hopp |
e519d3 |
! AC_EGREP_CPP(XATTR_NAME_SMACKEXEC, [#include <linux/xattr.h>],
|
|
Karsten Hopp |
e519d3 |
! AC_MSG_RESULT(yes),
|
|
Karsten Hopp |
e519d3 |
! AC_MSG_RESULT(no); enable_smack = "no")
|
|
Karsten Hopp |
e519d3 |
! fi
|
|
Karsten Hopp |
e519d3 |
! if test "$enable_smack" = "yes"; then
|
|
Karsten Hopp |
e519d3 |
! AC_CHECK_LIB(attr, setxattr,
|
|
Karsten Hopp |
e519d3 |
[LIBS="$LIBS -lattr"
|
|
Karsten Hopp |
e519d3 |
found_smack="yes"
|
|
Karsten Hopp |
e519d3 |
AC_DEFINE(HAVE_SMACK)])
|
|
Karsten Hopp |
e519d3 |
*** ../vim-7.4.253/src/auto/configure 2014-04-05 12:02:20.751100138 +0200
|
|
Karsten Hopp |
e519d3 |
--- src/auto/configure 2014-04-10 11:03:04.220036007 +0200
|
|
Karsten Hopp |
e519d3 |
***************
|
|
Karsten Hopp |
e519d3 |
*** 4611,4623 ****
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
else
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
e519d3 |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
e519d3 |
fi
|
|
Karsten Hopp |
e519d3 |
if test "$enable_smack" = "yes"; then
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llistxattr in -lattr" >&5
|
|
Karsten Hopp |
e519d3 |
! $as_echo_n "checking for llistxattr in -lattr... " >&6; }
|
|
Karsten Hopp |
e519d3 |
! if ${ac_cv_lib_attr_llistxattr+:} false; then :
|
|
Karsten Hopp |
e519d3 |
$as_echo_n "(cached) " >&6
|
|
Karsten Hopp |
e519d3 |
else
|
|
Karsten Hopp |
e519d3 |
ac_check_lib_save_LIBS=$LIBS
|
|
Karsten Hopp |
e519d3 |
--- 4611,4651 ----
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
else
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
e519d3 |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
e519d3 |
fi
|
|
Karsten Hopp |
e519d3 |
if test "$enable_smack" = "yes"; then
|
|
Karsten Hopp |
e519d3 |
! ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
|
|
Karsten Hopp |
e519d3 |
! if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
|
|
Karsten Hopp |
e519d3 |
! true
|
|
Karsten Hopp |
e519d3 |
! else
|
|
Karsten Hopp |
e519d3 |
! enable_smack="no"
|
|
Karsten Hopp |
e519d3 |
! fi
|
|
Karsten Hopp |
e519d3 |
!
|
|
Karsten Hopp |
e519d3 |
!
|
|
Karsten Hopp |
e519d3 |
! fi
|
|
Karsten Hopp |
e519d3 |
! if test "$enable_smack" = "yes"; then
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
|
|
Karsten Hopp |
e519d3 |
! $as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
|
|
Karsten Hopp |
e519d3 |
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Karsten Hopp |
e519d3 |
! /* end confdefs.h. */
|
|
Karsten Hopp |
e519d3 |
! #include <linux/xattr.h>
|
|
Karsten Hopp |
e519d3 |
! _ACEOF
|
|
Karsten Hopp |
e519d3 |
! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
Karsten Hopp |
e519d3 |
! $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
e519d3 |
! $as_echo "yes" >&6; }
|
|
Karsten Hopp |
e519d3 |
! else
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
Karsten Hopp |
e519d3 |
! $as_echo "no" >&6; }; enable_smack = "no"
|
|
Karsten Hopp |
e519d3 |
! fi
|
|
Karsten Hopp |
e519d3 |
! rm -f conftest*
|
|
Karsten Hopp |
e519d3 |
!
|
|
Karsten Hopp |
e519d3 |
! fi
|
|
Karsten Hopp |
e519d3 |
! if test "$enable_smack" = "yes"; then
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
|
|
Karsten Hopp |
e519d3 |
! $as_echo_n "checking for setxattr in -lattr... " >&6; }
|
|
Karsten Hopp |
e519d3 |
! if ${ac_cv_lib_attr_setxattr+:} false; then :
|
|
Karsten Hopp |
e519d3 |
$as_echo_n "(cached) " >&6
|
|
Karsten Hopp |
e519d3 |
else
|
|
Karsten Hopp |
e519d3 |
ac_check_lib_save_LIBS=$LIBS
|
|
Karsten Hopp |
e519d3 |
***************
|
|
Karsten Hopp |
e519d3 |
*** 4631,4657 ****
|
|
Karsten Hopp |
e519d3 |
#ifdef __cplusplus
|
|
Karsten Hopp |
e519d3 |
extern "C"
|
|
Karsten Hopp |
e519d3 |
#endif
|
|
Karsten Hopp |
e519d3 |
! char llistxattr ();
|
|
Karsten Hopp |
e519d3 |
int
|
|
Karsten Hopp |
e519d3 |
main ()
|
|
Karsten Hopp |
e519d3 |
{
|
|
Karsten Hopp |
e519d3 |
! return llistxattr ();
|
|
Karsten Hopp |
e519d3 |
;
|
|
Karsten Hopp |
e519d3 |
return 0;
|
|
Karsten Hopp |
e519d3 |
}
|
|
Karsten Hopp |
e519d3 |
_ACEOF
|
|
Karsten Hopp |
e519d3 |
if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
e519d3 |
! ac_cv_lib_attr_llistxattr=yes
|
|
Karsten Hopp |
e519d3 |
else
|
|
Karsten Hopp |
e519d3 |
! ac_cv_lib_attr_llistxattr=no
|
|
Karsten Hopp |
e519d3 |
fi
|
|
Karsten Hopp |
e519d3 |
rm -f core conftest.err conftest.$ac_objext \
|
|
Karsten Hopp |
e519d3 |
conftest$ac_exeext conftest.$ac_ext
|
|
Karsten Hopp |
e519d3 |
LIBS=$ac_check_lib_save_LIBS
|
|
Karsten Hopp |
e519d3 |
fi
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_llistxattr" >&5
|
|
Karsten Hopp |
e519d3 |
! $as_echo "$ac_cv_lib_attr_llistxattr" >&6; }
|
|
Karsten Hopp |
e519d3 |
! if test "x$ac_cv_lib_attr_llistxattr" = xyes; then :
|
|
Karsten Hopp |
e519d3 |
LIBS="$LIBS -lattr"
|
|
Karsten Hopp |
e519d3 |
found_smack="yes"
|
|
Karsten Hopp |
e519d3 |
$as_echo "#define HAVE_SMACK 1" >>confdefs.h
|
|
Karsten Hopp |
e519d3 |
--- 4659,4685 ----
|
|
Karsten Hopp |
e519d3 |
#ifdef __cplusplus
|
|
Karsten Hopp |
e519d3 |
extern "C"
|
|
Karsten Hopp |
e519d3 |
#endif
|
|
Karsten Hopp |
e519d3 |
! char setxattr ();
|
|
Karsten Hopp |
e519d3 |
int
|
|
Karsten Hopp |
e519d3 |
main ()
|
|
Karsten Hopp |
e519d3 |
{
|
|
Karsten Hopp |
e519d3 |
! return setxattr ();
|
|
Karsten Hopp |
e519d3 |
;
|
|
Karsten Hopp |
e519d3 |
return 0;
|
|
Karsten Hopp |
e519d3 |
}
|
|
Karsten Hopp |
e519d3 |
_ACEOF
|
|
Karsten Hopp |
e519d3 |
if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
e519d3 |
! ac_cv_lib_attr_setxattr=yes
|
|
Karsten Hopp |
e519d3 |
else
|
|
Karsten Hopp |
e519d3 |
! ac_cv_lib_attr_setxattr=no
|
|
Karsten Hopp |
e519d3 |
fi
|
|
Karsten Hopp |
e519d3 |
rm -f core conftest.err conftest.$ac_objext \
|
|
Karsten Hopp |
e519d3 |
conftest$ac_exeext conftest.$ac_ext
|
|
Karsten Hopp |
e519d3 |
LIBS=$ac_check_lib_save_LIBS
|
|
Karsten Hopp |
e519d3 |
fi
|
|
Karsten Hopp |
e519d3 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
|
|
Karsten Hopp |
e519d3 |
! $as_echo "$ac_cv_lib_attr_setxattr" >&6; }
|
|
Karsten Hopp |
e519d3 |
! if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
|
|
Karsten Hopp |
e519d3 |
LIBS="$LIBS -lattr"
|
|
Karsten Hopp |
e519d3 |
found_smack="yes"
|
|
Karsten Hopp |
e519d3 |
$as_echo "#define HAVE_SMACK 1" >>confdefs.h
|
|
Karsten Hopp |
e519d3 |
*** ../vim-7.4.253/src/version.c 2014-04-06 21:33:39.675363743 +0200
|
|
Karsten Hopp |
e519d3 |
--- src/version.c 2014-04-10 11:00:57.200035730 +0200
|
|
Karsten Hopp |
e519d3 |
***************
|
|
Karsten Hopp |
e519d3 |
*** 736,737 ****
|
|
Karsten Hopp |
e519d3 |
--- 736,739 ----
|
|
Karsten Hopp |
e519d3 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e519d3 |
+ /**/
|
|
Karsten Hopp |
e519d3 |
+ 254,
|
|
Karsten Hopp |
e519d3 |
/**/
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
--
|
|
Karsten Hopp |
e519d3 |
George: "I just got a new set of golf clubs for my wife!"
|
|
Karsten Hopp |
e519d3 |
John: "Great trade!"
|
|
Karsten Hopp |
e519d3 |
|
|
Karsten Hopp |
e519d3 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e519d3 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e519d3 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e519d3 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|