libarchive/libarchive-xattr.patch
Marcus Meissner 9f835ac0ff Accepting request 235707 from home:elvigia:branches:Archiving
- libarchive-xattr.patch, fix subtle wrong library check 
  that causes this package to depend on libattr when it should
  be using glibc.

OBS-URL: https://build.opensuse.org/request/show/235707
OBS-URL: https://build.opensuse.org/package/show/Archiving/libarchive?expand=0&rev=34
2014-06-01 10:08:07 +00:00

12 lines
469 B
Diff

--- libarchive-3.1.2.orig/configure.ac
+++ libarchive-3.1.2/configure.ac
@@ -568,7 +568,7 @@ AC_ARG_ENABLE([xattr],
if test "x$enable_xattr" != "xno"; then
AC_CHECK_HEADERS([attr/xattr.h])
AC_CHECK_HEADERS([sys/xattr.h sys/ea.h])
- AC_CHECK_LIB(attr,setxattr)
+ AC_SEARCH_LIBS([setxattr], [attr])
AC_CHECK_FUNCS([extattr_get_file extattr_list_file])
AC_CHECK_FUNCS([extattr_set_fd extattr_set_file])
AC_CHECK_FUNCS([fgetxattr flistxattr fsetxattr getxattr])