home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.254 < prev    next >
Encoding:
Internet Message Format  |  2014-04-09  |  5.3 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.2
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.254
  11. Problem:    Smack support detection is incomplete.
  12. Solution:   Check for attr/xattr.h and specific macro.
  13. Files:        src/configure.in, src/auto/configure
  14.  
  15.  
  16. *** ../vim-7.4.253/src/configure.in    2014-04-05 12:02:20.747100138 +0200
  17. --- src/configure.in    2014-04-10 11:02:59.256035996 +0200
  18. ***************
  19. *** 396,405 ****
  20.     AC_MSG_RESULT(no)
  21.     AC_CHECK_HEADER([linux/xattr.h], true, enable_smack="no")
  22.   else
  23. !    AC_MSG_RESULT(yes)
  24.   fi
  25.   if test "$enable_smack" = "yes"; then
  26. !   AC_CHECK_LIB(attr, llistxattr,
  27.         [LIBS="$LIBS -lattr"
  28.          found_smack="yes"
  29.          AC_DEFINE(HAVE_SMACK)])
  30. --- 396,414 ----
  31.     AC_MSG_RESULT(no)
  32.     AC_CHECK_HEADER([linux/xattr.h], true, enable_smack="no")
  33.   else
  34. !   AC_MSG_RESULT(yes)
  35.   fi
  36.   if test "$enable_smack" = "yes"; then
  37. !   AC_CHECK_HEADER([attr/xattr.h], true, enable_smack="no")
  38. ! fi
  39. ! if test "$enable_smack" = "yes"; then
  40. !   AC_MSG_CHECKING(for XATTR_NAME_SMACKEXEC in linux/xattr.h)
  41. !   AC_EGREP_CPP(XATTR_NAME_SMACKEXEC, [#include <linux/xattr.h>],
  42. !            AC_MSG_RESULT(yes),
  43. !            AC_MSG_RESULT(no); enable_smack = "no")
  44. ! fi
  45. ! if test "$enable_smack" = "yes"; then
  46. !   AC_CHECK_LIB(attr, setxattr,
  47.         [LIBS="$LIBS -lattr"
  48.          found_smack="yes"
  49.          AC_DEFINE(HAVE_SMACK)])
  50. *** ../vim-7.4.253/src/auto/configure    2014-04-05 12:02:20.751100138 +0200
  51. --- src/auto/configure    2014-04-10 11:03:04.220036007 +0200
  52. ***************
  53. *** 4611,4623 ****
  54.   
  55.   
  56.   else
  57. !    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  58.   $as_echo "yes" >&6; }
  59.   fi
  60.   if test "$enable_smack" = "yes"; then
  61. !   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llistxattr in -lattr" >&5
  62. ! $as_echo_n "checking for llistxattr in -lattr... " >&6; }
  63. ! if ${ac_cv_lib_attr_llistxattr+:} false; then :
  64.     $as_echo_n "(cached) " >&6
  65.   else
  66.     ac_check_lib_save_LIBS=$LIBS
  67. --- 4611,4651 ----
  68.   
  69.   
  70.   else
  71. !   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  72.   $as_echo "yes" >&6; }
  73.   fi
  74.   if test "$enable_smack" = "yes"; then
  75. !   ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
  76. ! if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
  77. !   true
  78. ! else
  79. !   enable_smack="no"
  80. ! fi
  81. ! fi
  82. ! if test "$enable_smack" = "yes"; then
  83. !   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
  84. ! $as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
  85. !   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  86. ! /* end confdefs.h.  */
  87. ! #include <linux/xattr.h>
  88. ! _ACEOF
  89. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  90. !   $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
  91. !   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  92. ! $as_echo "yes" >&6; }
  93. ! else
  94. !   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  95. ! $as_echo "no" >&6; }; enable_smack = "no"
  96. ! fi
  97. ! rm -f conftest*
  98. ! fi
  99. ! if test "$enable_smack" = "yes"; then
  100. !   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
  101. ! $as_echo_n "checking for setxattr in -lattr... " >&6; }
  102. ! if ${ac_cv_lib_attr_setxattr+:} false; then :
  103.     $as_echo_n "(cached) " >&6
  104.   else
  105.     ac_check_lib_save_LIBS=$LIBS
  106. ***************
  107. *** 4631,4657 ****
  108.   #ifdef __cplusplus
  109.   extern "C"
  110.   #endif
  111. ! char llistxattr ();
  112.   int
  113.   main ()
  114.   {
  115. ! return llistxattr ();
  116.     ;
  117.     return 0;
  118.   }
  119.   _ACEOF
  120.   if ac_fn_c_try_link "$LINENO"; then :
  121. !   ac_cv_lib_attr_llistxattr=yes
  122.   else
  123. !   ac_cv_lib_attr_llistxattr=no
  124.   fi
  125.   rm -f core conftest.err conftest.$ac_objext \
  126.       conftest$ac_exeext conftest.$ac_ext
  127.   LIBS=$ac_check_lib_save_LIBS
  128.   fi
  129. ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_llistxattr" >&5
  130. ! $as_echo "$ac_cv_lib_attr_llistxattr" >&6; }
  131. ! if test "x$ac_cv_lib_attr_llistxattr" = xyes; then :
  132.     LIBS="$LIBS -lattr"
  133.          found_smack="yes"
  134.          $as_echo "#define HAVE_SMACK 1" >>confdefs.h
  135. --- 4659,4685 ----
  136.   #ifdef __cplusplus
  137.   extern "C"
  138.   #endif
  139. ! char setxattr ();
  140.   int
  141.   main ()
  142.   {
  143. ! return setxattr ();
  144.     ;
  145.     return 0;
  146.   }
  147.   _ACEOF
  148.   if ac_fn_c_try_link "$LINENO"; then :
  149. !   ac_cv_lib_attr_setxattr=yes
  150.   else
  151. !   ac_cv_lib_attr_setxattr=no
  152.   fi
  153.   rm -f core conftest.err conftest.$ac_objext \
  154.       conftest$ac_exeext conftest.$ac_ext
  155.   LIBS=$ac_check_lib_save_LIBS
  156.   fi
  157. ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
  158. ! $as_echo "$ac_cv_lib_attr_setxattr" >&6; }
  159. ! if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
  160.     LIBS="$LIBS -lattr"
  161.          found_smack="yes"
  162.          $as_echo "#define HAVE_SMACK 1" >>confdefs.h
  163. *** ../vim-7.4.253/src/version.c    2014-04-06 21:33:39.675363743 +0200
  164. --- src/version.c    2014-04-10 11:00:57.200035730 +0200
  165. ***************
  166. *** 736,737 ****
  167. --- 736,739 ----
  168.   {   /* Add new patch number below this line */
  169. + /**/
  170. +     254,
  171.   /**/
  172.  
  173. -- 
  174. George:  "I just got a new set of golf clubs for my wife!"
  175.   John:  "Great trade!"
  176.  
  177.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  178. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  179. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  180.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  181.