commit:     ff94d3a3dfe7480b42f5cd27b864eacedbc40e2d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May  3 05:04:07 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May  3 05:23:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff94d3a3

sys-auth/nss-pam-ldapd: fix build w/ c23

Closes: https://bugs.gentoo.org/944424
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/nss-pam-ldapd-0.9.13-c23.patch           | 26 ++++++++++++++++++++++
 sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.13.ebuild |  1 +
 2 files changed, 27 insertions(+)

diff --git a/sys-auth/nss-pam-ldapd/files/nss-pam-ldapd-0.9.13-c23.patch 
b/sys-auth/nss-pam-ldapd/files/nss-pam-ldapd-0.9.13-c23.patch
new file mode 100644
index 000000000000..59873f58f4b6
--- /dev/null
+++ b/sys-auth/nss-pam-ldapd/files/nss-pam-ldapd-0.9.13-c23.patch
@@ -0,0 +1,26 @@
+https://bugs.gentoo.org/944424
+https://github.com/arthurdejong/nss-pam-ldapd/commit/8ddb983a546f632986a84a784c4625110f7782a2
+
+From 8ddb983a546f632986a84a784c4625110f7782a2 Mon Sep 17 00:00:00 2001
+From: Arthur de Jong <[email protected]>
+Date: Sun, 23 Feb 2025 15:22:38 +0100
+Subject: [PATCH] Fix variable name (bool) which is a keyword in C23
+
+Closes https://bugs.debian.org/1097481
+--- a/nslcd/cfg.c
++++ b/nslcd/cfg.c
+@@ -207,10 +207,10 @@ static int get_boolean(const char *filename, int lnr,
+   return parse_boolean(filename, lnr, token);
+ }
+ 
+-static const char *print_boolean(int bool)
++static const char *print_boolean(int value)
+ {
+-  if (bool) return "yes";
+-  else      return "no";
++  if (value) return "yes";
++  else       return "no";
+ }
+ 
+ #define TIME_MINUTES 60
+

diff --git a/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.13.ebuild 
b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.13.ebuild
index ea1b29d53b21..307a11155587 100644
--- a/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.13.ebuild
+++ b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.13.ebuild
@@ -53,6 +53,7 @@ PATCHES=(
        "${FILESDIR}"/nss-pam-ldapd-0.9.11-tests-py39.patch
        "${FILESDIR}"/nss-pam-ldapd-0.9.12-netdb-defines.patch
        
"${FILESDIR}"/nss-pam-ldapd-0.9.12-configure-CFLAGS-decontamination.patch
+       "${FILESDIR}"/nss-pam-ldapd-0.9.13-c23.patch
 )
 
 pkg_setup() {

Reply via email to