|
|
2f7d90 |
From 3fbf36004eec55b9a88916559029332d7f356bae Mon Sep 17 00:00:00 2001
|
|
|
2f7d90 |
From: Gabe <redhatrises@gmail.com>
|
|
|
2f7d90 |
Date: Wed, 15 Jan 2020 15:02:32 -0700
|
|
|
2f7d90 |
Subject: [PATCH] Fix case where CMake couldn't find libacl or xattr.h
|
|
|
2f7d90 |
|
|
|
2f7d90 |
---
|
|
|
2f7d90 |
CMakeLists.txt | 2 +-
|
|
|
2f7d90 |
cmake/FindACL.cmake | 6 +++---
|
|
|
2f7d90 |
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
2f7d90 |
|
|
|
2f7d90 |
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
2f7d90 |
index 720d8d8eb..fe20992a5 100644
|
|
|
2f7d90 |
--- a/CMakeLists.txt
|
|
|
2f7d90 |
+++ b/CMakeLists.txt
|
|
|
2f7d90 |
@@ -238,7 +238,7 @@ cmake_dependent_option(OPENSCAP_PROBE_INDEPENDENT_XMLFILECONTENT "Independent xm
|
|
|
2f7d90 |
# UNIX PROBES
|
|
|
2f7d90 |
cmake_dependent_option(OPENSCAP_PROBE_UNIX_DNSCACHE "Unix dnscache probe" ON "ENABLE_PROBES_UNIX" OFF)
|
|
|
2f7d90 |
cmake_dependent_option(OPENSCAP_PROBE_UNIX_FILE "Unix file probe" ON "ENABLE_PROBES_UNIX" OFF)
|
|
|
2f7d90 |
-cmake_dependent_option(OPENSCAP_PROBE_UNIX_FILEEXTENDEDATTRIBUTE "Unix fileextendedattribute probe" ON "ENABLE_PROBES_UNIX; (HAVE_SYS_XATTR_H OR HAVE_ATTR_XATTR_H)" OFF)
|
|
|
2f7d90 |
+cmake_dependent_option(OPENSCAP_PROBE_UNIX_FILEEXTENDEDATTRIBUTE "Unix fileextendedattribute probe" ON "ENABLE_PROBES_UNIX; HAVE_SYS_XATTR_H OR HAVE_ATTR_XATTR_H" OFF)
|
|
|
2f7d90 |
cmake_dependent_option(OPENSCAP_PROBE_UNIX_GCONF "Unix gconf probe" ON "ENABLE_PROBES_UNIX; GCONF_FOUND" OFF)
|
|
|
2f7d90 |
cmake_dependent_option(OPENSCAP_PROBE_UNIX_INTERFACE "Unix interface probe" ON "ENABLE_PROBES_UNIX" OFF)
|
|
|
2f7d90 |
cmake_dependent_option(OPENSCAP_PROBE_UNIX_PASSWORD "Unix password probe" ON "ENABLE_PROBES_UNIX" OFF)
|
|
|
2f7d90 |
diff --git a/cmake/FindACL.cmake b/cmake/FindACL.cmake
|
|
|
2f7d90 |
index 1753b0dd3..2d4a3027c 100644
|
|
|
2f7d90 |
--- a/cmake/FindACL.cmake
|
|
|
2f7d90 |
+++ b/cmake/FindACL.cmake
|
|
|
2f7d90 |
@@ -8,17 +8,17 @@
|
|
|
2f7d90 |
include(LibFindMacros)
|
|
|
2f7d90 |
|
|
|
2f7d90 |
# Use pkg-config to get hints about paths
|
|
|
2f7d90 |
-libfind_pkg_check_modules(ACL_PKGCONF acl)
|
|
|
2f7d90 |
+libfind_pkg_check_modules(ACL_PKGCONF libacl)
|
|
|
2f7d90 |
|
|
|
2f7d90 |
# Include dir
|
|
|
2f7d90 |
find_path(ACL_INCLUDE_DIR
|
|
|
2f7d90 |
- NAMES acl/libacl.h
|
|
|
2f7d90 |
+ NAMES "acl/libacl.h sys/libacl.h"
|
|
|
2f7d90 |
PATHS ${ACL_PKGCONF_INCLUDE_DIRS}
|
|
|
2f7d90 |
)
|
|
|
2f7d90 |
|
|
|
2f7d90 |
# Finally the library itself
|
|
|
2f7d90 |
find_library(ACL_LIBRARY
|
|
|
2f7d90 |
- NAMES acl
|
|
|
2f7d90 |
+ NAMES libacl
|
|
|
2f7d90 |
PATHS ${ACL_PKGCONF_LIBRARY_DIRS}
|
|
|
2f7d90 |
)
|
|
|
2f7d90 |
|