From 2deb4526ee9994736451220ebe3870d258f699b4 Mon Sep 17 00:00:00 2001 From: DeHackEd Date: Tue, 27 Mar 2018 19:51:33 -0400 Subject: [PATCH] Remove libattr requirement RHEL/CentOS 6 supports sys/xattr.h eliminating the need for libattr-devel as a dependency. Reviewed-by: Giuseppe Di Natale Reviewed-by: Brian Behlendorf Signed-off-by: DHE Closes #7344 Closes #7351 --- config/user-libattr.m4 | 12 ------------ config/user.m4 | 1 - tests/zfs-tests/cmd/mktree/mktree.c | 2 +- tests/zfs-tests/cmd/xattrtest/xattrtest.c | 2 +- 4 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 config/user-libattr.m4 diff --git a/config/user-libattr.m4 b/config/user-libattr.m4 deleted file mode 100644 index 3298fd4911..0000000000 --- a/config/user-libattr.m4 +++ /dev/null @@ -1,12 +0,0 @@ -dnl # -dnl # Check for libattr -dnl # -AC_DEFUN([ZFS_AC_CONFIG_USER_LIBATTR], [ - LIBATTR= - - AC_CHECK_HEADER([attr/xattr.h], [], [AC_MSG_FAILURE([ - *** attr/xattr.h missing, libattr-devel package required])]) - - AC_SUBST([LIBATTR], ["-lattr"]) - AC_DEFINE([HAVE_LIBATTR], 1, [Define if you have libattr]) -]) diff --git a/config/user.m4 b/config/user.m4 index 21ff7143a5..3d725195d8 100644 --- a/config/user.m4 +++ b/config/user.m4 @@ -11,7 +11,6 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [ ZFS_AC_CONFIG_USER_LIBUUID ZFS_AC_CONFIG_USER_LIBTIRPC ZFS_AC_CONFIG_USER_LIBBLKID - ZFS_AC_CONFIG_USER_LIBATTR ZFS_AC_CONFIG_USER_LIBUDEV ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN ZFS_AC_CONFIG_USER_RUNSTATEDIR diff --git a/tests/zfs-tests/cmd/mktree/mktree.c b/tests/zfs-tests/cmd/mktree/mktree.c index 3dc3dd8ec6..bf0ec5e0cc 100644 --- a/tests/zfs-tests/cmd/mktree/mktree.c +++ b/tests/zfs-tests/cmd/mktree/mktree.c @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/tests/zfs-tests/cmd/xattrtest/xattrtest.c b/tests/zfs-tests/cmd/xattrtest/xattrtest.c index a93cce7f18..dd3f2a6c97 100644 --- a/tests/zfs-tests/cmd/xattrtest/xattrtest.c +++ b/tests/zfs-tests/cmd/xattrtest/xattrtest.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include #include