public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yanko Kaneti <yaneti@declera.com>
To: git-commits@fedoraproject.org
Subject: [rpms/sssd] f45: Add patch to fix FTBFS with GDM 51 PAM extension headers
Date: Mon, 24 Aug 2026 10:06:21 GMT [thread overview]
Message-ID: <178756598190.1.10791485985150776802.rpms-sssd-14f7a5654c68@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/sssd
Branch : f45
Commit : 14f7a5654c68fdf4e54e445c5d6dede617e6d8dd
Author : Yanko Kaneti <yaneti@declera.com>
Date : 2026-08-19T15:30:00+03:00
Stats : +62/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/sssd/c/14f7a5654c68fdf4e54e445c5d6dede617e6d8dd?branch=f45
Log:
Add patch to fix FTBFS with GDM 51 PAM extension headers
---
diff --git a/1001-Fix-FTBFS-with-GDM-51-PAM-extension-headers.patch b/1001-Fix-FTBFS-with-GDM-51-PAM-extension-headers.patch
new file mode 100644
index 0000000..63e707a
--- /dev/null
+++ b/1001-Fix-FTBFS-with-GDM-51-PAM-extension-headers.patch
@@ -0,0 +1,59 @@
+From 886848c7bf467321e57c942b3dbef9e5e79b8aa0 Mon Sep 17 00:00:00 2001
+From: Renan Rodrigo <rr@ubuntu.com>
+Date: Wed, 12 Aug 2026 14:20:58 -0300
+Subject: [PATCH] Fix FTBFS with GDM 51 PAM extension headers
+
+GDM 51 rewrote its gdm-pam-extensions headers, replacing the uppercase
+function-like macros with static inline functions.
+---
+ src/sss_client/pam_sss.c | 34 ++++++++++++++++++++++++++++++++++
+ 1 file changed, 34 insertions(+)
+
+diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
+index bd181d099..60d22bbf9 100644
+--- a/src/sss_client/pam_sss.c
++++ b/src/sss_client/pam_sss.c
+@@ -67,6 +67,40 @@
+ #endif
+ #endif /* HAVE_GDM_CUSTOM_JSON_PAM_EXTENSION */
+
++/* GDM 51 replaced the uppercase function-like macros of its PAM extension
++ * headers with lowercase static inline functions. Provide the old macro
++ * names as aliases so the code below keeps compiling with both old and new
++ * gdm-pam-extensions. */
++#ifdef HAVE_GDM_PAM_EXTENSIONS
++#ifndef GDM_PAM_EXTENSION_SUPPORTED
++#define GDM_PAM_EXTENSION_SUPPORTED(name) \
++ gdm_pam_extension_supported(name)
++#endif
++#ifndef GDM_PAM_EXTENSION_MESSAGE_TO_BINARY_PROMPT_MESSAGE
++#define GDM_PAM_EXTENSION_MESSAGE_TO_BINARY_PROMPT_MESSAGE(extended_message, binary_message) \
++ gdm_pam_extension_message_to_binary_prompt_message((GdmPamExtensionMessage *)(extended_message), binary_message)
++#endif
++#ifndef GDM_PAM_EXTENSION_CHOICE_LIST_REQUEST_INIT
++#define GDM_PAM_EXTENSION_CHOICE_LIST_REQUEST_INIT(request, title, num_items) \
++ gdm_pam_extension_choice_list_request_init(request, title, num_items)
++#endif
++#ifndef GDM_PAM_EXTENSION_REPLY_TO_CHOICE_LIST_RESPONSE
++#define GDM_PAM_EXTENSION_REPLY_TO_CHOICE_LIST_RESPONSE(reply) \
++ gdm_pam_extension_reply_to_choice_list_response(reply)
++#endif
++#endif /* HAVE_GDM_PAM_EXTENSIONS */
++
++#ifdef HAVE_GDM_CUSTOM_JSON_PAM_EXTENSION
++#ifndef GDM_PAM_EXTENSION_CUSTOM_JSON_REQUEST_INIT
++#define GDM_PAM_EXTENSION_CUSTOM_JSON_REQUEST_INIT(request, proto_name, proto_version, json_str) \
++ gdm_pam_extension_custom_json_request_init(request, proto_name, proto_version, json_str)
++#endif
++#ifndef GDM_PAM_EXTENSION_REPLY_TO_CUSTOM_JSON_RESPONSE
++#define GDM_PAM_EXTENSION_REPLY_TO_CUSTOM_JSON_RESPONSE(reply) \
++ gdm_pam_extension_reply_to_custom_json_response(reply)
++#endif
++#endif /* HAVE_GDM_CUSTOM_JSON_PAM_EXTENSION */
++
+ #include "sss_pam_compat.h"
+ #include "sss_pam_macros.h"
+
+--
+2.55.0
+
diff --git a/sssd.spec b/sssd.spec
index d39a6b3..9006d38 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -42,6 +42,9 @@ Patch0001: 0001-PAM-fix-use-after-free-during-p11_child-processing.patch
Patch0002: 0002-gpo-reject-path-traversal-in-gPCFileSysPath.patch
Patch0003: 0003-sudo-warn-when-ldap_sudo_search_base-falls-back-to-r.patch
+# https://github.com/SSSD/sssd/pull/9076
+Patch1001: 1001-Fix-FTBFS-with-GDM-51-PAM-extension-headers.patch
+
### Downstream only patches ###
# Place your downstream only patches here:
# Patch0901: 0901-downstream-only-patch-file.patch
reply other threads:[~2026-08-24 10:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178756598190.1.10791485985150776802.rpms-sssd-14f7a5654c68@fedoraproject.org \
--to=yaneti@declera.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox