commit:     dfed7ed8c71712840d0f1a946147ce34377cd230
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 25 05:02:17 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 25 05:04:54 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfed7ed8

sys-libs/nss_wrapper: add 1.1.16

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/nss_wrapper/Manifest                      |   1 +
 .../files/nss_wrapper-1.1.16-stdint.patch          | 116 +++++++++++++++++++++
 sys-libs/nss_wrapper/nss_wrapper-1.1.16.ebuild     |  36 +++++++
 3 files changed, 153 insertions(+)

diff --git a/sys-libs/nss_wrapper/Manifest b/sys-libs/nss_wrapper/Manifest
index e3e3a00d14c7..1f73d585679f 100644
--- a/sys-libs/nss_wrapper/Manifest
+++ b/sys-libs/nss_wrapper/Manifest
@@ -1 +1,2 @@
 DIST nss_wrapper-1.1.15.tar.gz 185236 BLAKE2B 
9c087ec3118eabccef386214abf76d384d9f85bb095aded43492a7f41b13e196a92e088ca7b8b798f9517cbbdc1cf5efbe3c7201cbb623322a9277681203954a
 SHA512 
803dfb67e042800e60f4735177384ff3b9348f4c96c02e62ae0b449583542fdaf443eb1fa48b5d5e4ea6fe0d81ce84f340bd406c968c05f71b5c64dd499feacd
+DIST nss_wrapper-1.1.16.tar.gz 190469 BLAKE2B 
f349d05bc951ba6294c883c4ca2ffb9decbc2da5c2c6778d83547e5e6d770f6f475daa1c6b6a3257d29c74bac1d96014aebb5c5ff7441562b3b4a6989c2122ea
 SHA512 
684845c25dd7ff48c07f25908d6eef9fa77a098d8d02eb1e8d6f0f6f103a3b4bdfbe4504605015f104fc7092b1224b26fe7096cb9e72e3d8bfc635c276efd036

diff --git a/sys-libs/nss_wrapper/files/nss_wrapper-1.1.16-stdint.patch 
b/sys-libs/nss_wrapper/files/nss_wrapper-1.1.16-stdint.patch
new file mode 100644
index 000000000000..b308702dea12
--- /dev/null
+++ b/sys-libs/nss_wrapper/files/nss_wrapper-1.1.16-stdint.patch
@@ -0,0 +1,116 @@
+https://git.samba.org/?p=nss_wrapper.git;a=commit;h=e660ca85fbd23fa40272942e014bb90356175149
+
+From e660ca85fbd23fa40272942e014bb90356175149 Mon Sep 17 00:00:00 2001
+From: Andreas Schneider <[email protected]>
+Date: Thu, 17 Jul 2025 15:17:52 +0200
+Subject: [PATCH] tests: Add missing include for stdint.h
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Andreas Schneider <[email protected]>
+Reviewed-by: Pavel Filipenský <[email protected]>
+---
+ 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>
+ 
+-- 
+2.34.1

diff --git a/sys-libs/nss_wrapper/nss_wrapper-1.1.16.ebuild 
b/sys-libs/nss_wrapper/nss_wrapper-1.1.16.ebuild
new file mode 100644
index 000000000000..d1b87b49234e
--- /dev/null
+++ b/sys-libs/nss_wrapper/nss_wrapper-1.1.16.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+DESCRIPTION="Wrapper for the user, group and hosts NSS API"
+HOMEPAGE="https://cwrap.org/nss_wrapper.html";
+SRC_URI="https://ftp.samba.org/pub/cwrap/${P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# sys-libs/uid_wrapper is used to "better test initgroups()" optionally
+BDEPEND="
+       test? (
+               dev-util/cmocka
+               sys-libs/uid_wrapper
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-stdint.patch
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DUNIT_TESTING=$(usex test)
+       )
+
+       cmake-multilib_src_configure
+}

Reply via email to