summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-03-03 06:02:29 +0000
committerSam James <sam@gentoo.org>2024-03-03 06:02:29 +0000
commit705d3d6c86f1295fed821050eb3c92714860f6e7 (patch)
tree12dbc7336db8afa0acd5c10c3621cafad0fb9c70 /sys-libs/uid_wrapper/files
parentsys-libs/nss_wrapper: backport fix for newer cmocka; add extra test dep (diff)
downloadgentoo-705d3d6c86f1295fed821050eb3c92714860f6e7.tar.gz
gentoo-705d3d6c86f1295fed821050eb3c92714860f6e7.tar.bz2
gentoo-705d3d6c86f1295fed821050eb3c92714860f6e7.zip
sys-libs/uid_wrapper: backport newer cmocka fix
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/uid_wrapper/files')
-rw-r--r--sys-libs/uid_wrapper/files/uid_wrapper-1.3.0-cmocka-cmake.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-libs/uid_wrapper/files/uid_wrapper-1.3.0-cmocka-cmake.patch b/sys-libs/uid_wrapper/files/uid_wrapper-1.3.0-cmocka-cmake.patch
new file mode 100644
index 000000000000..ada998f5f543
--- /dev/null
+++ b/sys-libs/uid_wrapper/files/uid_wrapper-1.3.0-cmocka-cmake.patch
@@ -0,0 +1,26 @@
+https://git.samba.org/?p=uid_wrapper.git;a=commit;h=850f24c6366abda30bfd77734b90330b8809d306
+
+From 850f24c6366abda30bfd77734b90330b8809d306 Mon Sep 17 00:00:00 2001
+From: Andreas Schneider <asn@samba.org>
+Date: Fri, 17 Feb 2023 17:51:27 +0100
+Subject: [PATCH] cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Andreas Schneider <asn@samba.org>
+Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -1,5 +1,9 @@
+ project(tests C)
+
++if (TARGET cmocka::cmocka)
++ set(CMOCKA_LIBRARY cmocka::cmocka)
++endif()
++
+ add_library(uwrap_fake_socket_wrapper SHARED uwrap_fake_socket_wrapper.c)
+ target_compile_options(uwrap_fake_socket_wrapper
+ PRIVATE
+--
+2.34.1