Andreas Wacknitz
2023-06-13 cf837309c86121aa61882af1255b8ce754887a2b
cups: add pam patch from omnios

1 files added
1 files modified
25 ■■■■■ changed files
components/print/cups/Makefile 1 ●●●● patch | view | raw | blame | history
components/print/cups/patches/06-pam_conv.patch 24 ●●●●● patch | view | raw | blame | history
components/print/cups/Makefile
@@ -28,6 +28,7 @@
COMPONENT_NAME=        cups
COMPONENT_VERSION=    2.4.4
COMPONENT_REVISION=    1
COMPONENT_SRC=        $(COMPONENT_NAME)-$(HUMAN_VERSION)
COMPONENT_PROJECT_URL=    https://openprinting.github.io/cups/
COMPONENT_ARCHIVE=    $(COMPONENT_SRC)-source.tar.gz
components/print/cups/patches/06-pam_conv.patch
New file
@@ -0,0 +1,24 @@
see: https://www.illumos.org/issues/15657
struct pam_message in struct pam_conv is not const in illumos
diff -wpruN --no-dereference '--exclude=*.orig' a~/tools/ippeveprinter.c a/tools/ippeveprinter.c
--- a~/tools/ippeveprinter.c    1970-01-01 00:00:00
+++ a/tools/ippeveprinter.c    1970-01-01 00:00:00
@@ -324,7 +324,7 @@ static ipp_t        *load_legacy_attributes(co
 static ipp_t        *load_ppd_attributes(const char *ppdfile, cups_array_t *docformats);
 #endif /* !CUPS_LITE */
 #if HAVE_LIBPAM
-static int        pam_func(int, const struct pam_message **, struct pam_response **, void *);
+static int        pam_func(int, struct pam_message **, struct pam_response **, void *);
 #endif /* HAVE_LIBPAM */
 static int        parse_options(ippeve_client_t *client, cups_option_t **options);
 static void        process_attr_message(ippeve_job_t *job, char *message);
@@ -5635,7 +5635,7 @@ load_ppd_attributes(
 static int                /* O - Success or failure */
 pam_func(
     int                      num_msg,    /* I - Number of messages */
-    const struct pam_message **msg,    /* I - Messages */
+    struct pam_message **msg,    /* I - Messages */
     struct pam_response      **resp,    /* O - Responses */
     void                     *appdata_ptr)
                     /* I - Pointer to connection */