gentoo-ebuilds/x11-wm/xpra/files/xpra-6.0.1-pam.patch
Sam James f0404d3658
x11-wm/xpra: fix build w/ >=sys-libs/pam-1.7.0
As of >=sys-libs/pam-1.7.0 (upstream commit 941bfc1de4c8d4963c8b9d63d32fed391f1476c8),
pam's .pc files expect proper includes in consumers with the <security/*>
namespace. Adapt to that.

Closes: https://bugs.gentoo.org/948461
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-10 02:11:59 +01:00

19 lines
624 B
Diff

https://bugs.gentoo.org/948461
--- a/xpra/server/pam.pyx
+++ b/xpra/server/pam.pyx
@@ -36,12 +36,12 @@
cdef extern from "stdlib.h":
void *calloc(size_t nitems, size_t size)
-cdef extern from "pam_misc.h":
+cdef extern from "security/pam_misc.h":
ctypedef struct pam_handle_t:
pass
void misc_conv(int num_msg, const pam_message **msgm, pam_response **response, void *appdata_ptr)
-cdef extern from "pam_appl.h":
+cdef extern from "security/pam_appl.h":
struct pam_conv:
void *conv
#int (*conv)(int num_msg, const pam_message **msg, pam_response **resp, void *appdata_ptr)