[Pkg-sssd-devel] Bug#1060177: nss-wrapper: cmocka does not set CMOCKA_LIBRARY anymore.

Hefee hefee at debian.org
Sat Jan 6 22:59:26 GMT 2024


Package: nss-wrapper
Version: 1.1.15-2
Severity: normal
Tags: patch
X-Debbugs-Cc: hefee at debian.org

Hey,

cmocka does not set CMOCKA_LIBRARY anymore with 1.1.6+. You can easly use cmoka as
library name. I tested the attached patch locally and it makes the
autopkgtests pass again.

Regards,

hefee
-------------- next part --------------
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 3b94076..e5feaaa 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,6 +1,6 @@
 project(tests C)
 
-set(TESTSUITE_LIBRARIES nss_utils ${NWRAP_REQUIRED_LIBRARIES} ${CMOCKA_LIBRARY})
+set(TESTSUITE_LIBRARIES nss_utils ${NWRAP_REQUIRED_LIBRARIES} cmocka)
 string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
 
 add_library(nss_nwrap SHARED nss_nwrap.c)


More information about the Pkg-sssd-devel mailing list