diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/openscap/dependencies.diff | |
Diffstat (limited to 'vcpkg/ports/openscap/dependencies.diff')
| -rw-r--r-- | vcpkg/ports/openscap/dependencies.diff | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/openscap/dependencies.diff b/vcpkg/ports/openscap/dependencies.diff new file mode 100644 index 0000000..163a47f --- /dev/null +++ b/vcpkg/ports/openscap/dependencies.diff @@ -0,0 +1,47 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4c0b074..8893e1e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -85,8 +85,12 @@ include(FindPythonModule) + find_package(ACL) + if(ACL_FOUND) + check_library_exists("${ACL_LIBRARY}" acl_extended_file "" HAVE_ACL_EXTENDED_FILE) +- check_include_file(acl/libacl.h HAVE_ACL_LIBACL_H) +- check_include_file(sys/acl.h HAVE_SYS_ACL_H) ++ if(EXISTS "${ACL_INCLUDE_DIR}/acl/libacl.h") ++ set(HAVE_ACL_LIBACL_H 1) ++ endif() ++ if(EXISTS "${ACL_INCLUDE_DIR}/sys/acl.h") ++ set(HAVE_SYS_ACL_H 1) ++ endif() + endif() + + find_package(Blkid) +diff --git a/cmake/FindACL.cmake b/cmake/FindACL.cmake +index a41f2c1..9675498 100644 +--- a/cmake/FindACL.cmake ++++ b/cmake/FindACL.cmake +@@ -12,7 +12,7 @@ libfind_pkg_check_modules(ACL_PKGCONF libacl) + + # Include dir + find_path(ACL_INCLUDE_DIR +- NAMES "acl/libacl.h" "sys/libacl.h" ++ NAMES "acl/libacl.h" "sys/acl.h" + PATHS ${ACL_PKGCONF_INCLUDE_DIRS} + ) + +diff --git a/cmake/FindGCrypt.cmake b/cmake/FindGCrypt.cmake +index 00fc4b3..d7997f6 100644 +--- a/cmake/FindGCrypt.cmake ++++ b/cmake/FindGCrypt.cmake +@@ -18,6 +18,10 @@ + #============================================================================= + # + ++find_package(PkgConfig) ++pkg_check_modules(GCRYPT libgcrypt) ++set(GCRYPT_LIBRARIES "${GCRYPT_LINK_LIBRARIES}") ++ + if (GCRYPT_LIBRARIES AND GCRYPT_INCLUDE_DIRS) + # in cache already + # set(GCRYPT_FOUND TRUE) |