forked from pool/nss_wrapper
Compare commits
49 Commits
Author | SHA256 | Date | |
---|---|---|---|
a70c1d331e | |||
|
746fdc264b | ||
5e60fbef1a | |||
093e157745 | |||
|
e007bb451d | ||
8a9817b1e5 | |||
|
7ee9474fec | ||
|
595a011ea0 | ||
6b8775985e | |||
|
bfd36e626f | ||
3507c432fc | |||
|
2ad707d9dd | ||
002bab04f1 | |||
|
3b93ec3333 | ||
a125cbf5d3 | |||
|
7fe8d093a6 | ||
|
3e92f8747d | ||
|
ed370fa488 | ||
a5c6b537eb | |||
|
3d200e9b63 | ||
|
0955d8c8c7 | ||
3d82bff6a8 | |||
|
f3bb715c8a | ||
bc301a0c13 | |||
|
b33de1ba86 | ||
52153b6941 | |||
|
3abab7deca | ||
|
107d6f084d | ||
e4aff34a35 | |||
|
af47462d36 | ||
683ddb2c1c | |||
|
6d53b79d47 | ||
|
f90a8ef7a3 | ||
c032610aa3 | |||
|
ee59ac3f9b | ||
a5ff9aaa7f | |||
|
396842b16f | ||
f941fc6d34 | |||
|
974f66eaf4 | ||
|
0af8014d60 | ||
|
fc3021870f | ||
|
ada342e79c | ||
c96702803d | |||
|
4f81e47901 | ||
|
14523fafea | ||
|
8cfbdab861 | ||
|
c41bedf7b5 | ||
|
28426c3864 | ||
|
ab60afe8c0 |
BIN
nss_wrapper-1.1.15.tar.gz
(Stored with Git LFS)
BIN
nss_wrapper-1.1.15.tar.gz
(Stored with Git LFS)
Binary file not shown.
@@ -1,16 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEjf9T4Y8qvI2PPJIjfuD8TcwBTj0FAmPRTgYACgkQfuD8TcwB
|
||||
Tj20jxAAlm7ArKtzRTX4iTvBpa9lq4bGqRQp44GTiXi6JNcDfkG8vdNhC9M+ivWR
|
||||
WXJzmtHYhNLCa0exQW2i2KSE1VKiljVNj4bcDrhVLxihOqKZBppfybyiKlN1LpJ9
|
||||
8MUpKI8SwhA3bwR5v7t5GdVbCGulh6Qbr7j8Ix9wlfif3GzmXeodbUr9gGjCN3BU
|
||||
+xa+gmPkfa6V2sz3kfbdme1w33xRwKUeYkEN1jZ6gNNlH3CYcusQaxgQ6RkL5atY
|
||||
Ax3wvSfGoeQsjQLOzUbORnLjdekh5Y4GgxWmyfAoQBPKEP07sCjq7Sp317xJiqUG
|
||||
DWVe1PIO9nJHyA3Tdwx2G2oVT47emLK8QndJcE5B+h/o+x60dATXG+7dZJBtzjNa
|
||||
9L4Kri4Lq5gc7iZcvbm4MQMmKse7BKCMl6pHIhF4WfH2lt1Xd2FCNSAEVv9Q+OzH
|
||||
gdvVEJm8+6npV99+fP/WzVBHY6MRpOFIijPVJzDvNlCIrEbfx7pfjoE+nQcqnBgs
|
||||
PT0n15nbP+sOQIVtmXZ7Tkd0FRCaC/dYNGEuqceua60enjO6zff30LaGjM97rNgW
|
||||
lNjylfHaS9EXQd/I2UjHUHdSkJfGAw7RgCVLV2tUmTG7VvE+DapQzfql8ONNADup
|
||||
mMeI3UZUffN0fS5gDd67tOm+iUB1X9azkYLPd5M5GZFAfWuBiqU=
|
||||
=nRU2
|
||||
-----END PGP SIGNATURE-----
|
@@ -1,31 +0,0 @@
|
||||
From 2c879a0ffa70cee33329291d7576ec971d420da2 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=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Andreas Schneider <asn@samba.org>
|
||||
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
|
||||
---
|
||||
tests/CMakeLists.txt | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index 3b94076..733cc4e 100644
|
||||
--- 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()
|
||||
+
|
||||
set(TESTSUITE_LIBRARIES nss_utils ${NWRAP_REQUIRED_LIBRARIES} ${CMOCKA_LIBRARY})
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
|
||||
|
||||
--
|
||||
2.39.2
|
||||
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 17 13:37:09 UTC 2025 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Added nwrap-fix-tests.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 5 09:35:44 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package nss_wrapper
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -33,6 +33,8 @@ Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
||||
Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
|
||||
Source2: https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg#/%{name}.keyring
|
||||
Source3: %{name}-rpmlintrc
|
||||
# PATCH-FIX-UPSTREAM https://gitlab.com/cwrap/nss_wrapper/-/merge_requests/26
|
||||
Patch0: nwrap-fix-tests.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libcmocka-devel
|
||||
BuildRequires: netcfg
|
||||
|
111
nwrap-fix-tests.patch
Normal file
111
nwrap-fix-tests.patch
Normal file
@@ -0,0 +1,111 @@
|
||||
From 59468d514326009616e166f484b4b2ec7163b91b Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Schneider <asn@samba.org>
|
||||
Date: Thu, 17 Jul 2025 15:17:52 +0200
|
||||
Subject: [PATCH] tests: Add missing include for stdint.h
|
||||
|
||||
Signed-off-by: Andreas Schneider <asn@samba.org>
|
||||
---
|
||||
tests/test_getaddrinfo.c | 1 +
|
||||
tests/test_gethostby_name_addr.c | 1 +
|
||||
tests/test_gethostent.c | 3 ++-
|
||||
tests/test_getpwuid_module.c | 1 +
|
||||
tests/test_initgroups.c | 1 +
|
||||
tests/test_nwrap_disabled.c | 1 +
|
||||
tests/testsuite.c | 1 +
|
||||
7 files changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_getaddrinfo.c b/tests/test_getaddrinfo.c
|
||||
index 6de0323..63dc21f 100644
|
||||
--- a/tests/test_getaddrinfo.c
|
||||
+++ b/tests/test_getaddrinfo.c
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#include <stdint.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
|
||||
diff --git a/tests/test_gethostby_name_addr.c b/tests/test_gethostby_name_addr.c
|
||||
index e8939f6..9aae9ae 100644
|
||||
--- a/tests/test_gethostby_name_addr.c
|
||||
+++ b/tests/test_gethostby_name_addr.c
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#include <stdint.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
|
||||
diff --git a/tests/test_gethostent.c b/tests/test_gethostent.c
|
||||
index aa61696..ad8a89c 100644
|
||||
--- a/tests/test_gethostent.c
|
||||
+++ b/tests/test_gethostent.c
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#include <stdint.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
|
||||
@@ -31,7 +32,7 @@ static void test_nwrap_gethostent(void **state)
|
||||
char buf[INET6_ADDRSTRLEN];
|
||||
uint32_t j;
|
||||
const char *ip;
|
||||
-
|
||||
+
|
||||
ip = inet_ntop(he->h_addrtype,
|
||||
he->h_addr_list[i],
|
||||
buf,
|
||||
diff --git a/tests/test_getpwuid_module.c b/tests/test_getpwuid_module.c
|
||||
index a06a49d..3718ebb 100644
|
||||
--- a/tests/test_getpwuid_module.c
|
||||
+++ b/tests/test_getpwuid_module.c
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#include <stdint.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
#include <unistd.h>
|
||||
diff --git a/tests/test_initgroups.c b/tests/test_initgroups.c
|
||||
index 1ec2220..f5ccba7 100644
|
||||
--- a/tests/test_initgroups.c
|
||||
+++ b/tests/test_initgroups.c
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#include <stdint.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
#include <unistd.h>
|
||||
diff --git a/tests/test_nwrap_disabled.c b/tests/test_nwrap_disabled.c
|
||||
index f00294b..090377d 100644
|
||||
--- a/tests/test_nwrap_disabled.c
|
||||
+++ b/tests/test_nwrap_disabled.c
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#include <stdint.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
|
||||
diff --git a/tests/testsuite.c b/tests/testsuite.c
|
||||
index bf678fd..41082f9 100644
|
||||
--- a/tests/testsuite.c
|
||||
+++ b/tests/testsuite.c
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#include <stdint.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
Reference in New Issue
Block a user