-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1513 from hadfl/fix
package updates
- Loading branch information
Showing
48 changed files
with
253 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 23 additions & 5 deletions
28
build/cups/patches/pam_conv.patch → build/cups/patches/pam-illumos.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,42 @@ | ||
see: https://www.illumos.org/issues/15657 | ||
struct pam_message in struct pam_conv is not const in illumos | ||
struct pam_message in struct pam_conv is not const in illumos before r151051 | ||
|
||
diff -wpruN --no-dereference '--exclude=*.orig' a~/scheduler/auth.c a/scheduler/auth.c | ||
--- a~/scheduler/auth.c 1970-01-01 00:00:00 | ||
+++ a/scheduler/auth.c 1970-01-01 00:00:00 | ||
@@ -575,7 +575,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I | ||
strlcpy(data.username, username, sizeof(data.username)); | ||
strlcpy(data.password, password, sizeof(data.password)); | ||
|
||
-# ifdef __sun | ||
+# if defined(__sun) && OOCEVER < 151051 | ||
pamdata.conv = (int (*)(int, struct pam_message **, | ||
struct pam_response **, | ||
void *))pam_func; | ||
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 | ||
@@ -324,7 +324,11 @@ 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 *); | ||
+#if OOCEVER >= 151051 | ||
static int pam_func(int, const struct pam_message **, struct pam_response **, void *); | ||
+#else | ||
+static int pam_func(int, struct pam_message **, struct pam_response **, void *); | ||
+#endif | ||
#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); | ||
@@ -5649,7 +5649,7 @@ load_ppd_attributes( | ||
@@ -5649,7 +5653,11 @@ 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 */ | ||
+#if OOCEVER >= 151051 | ||
const struct pam_message **msg, /* I - Messages */ | ||
+#else | ||
+ struct pam_message **msg, /* I - Messages */ | ||
+#endif | ||
struct pam_response **resp, /* O - Responses */ | ||
void *appdata_ptr) | ||
/* I - Pointer to connection */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
02-smf.patch | ||
properly-check-pie.patch | ||
pam_conv.patch | ||
pam-illumos.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/imap/relocate_by_id.c a/imap/relocate_by_id.c | ||
--- a~/imap/relocate_by_id.c 1970-01-01 00:00:00 | ||
+++ a/imap/relocate_by_id.c 1970-01-01 00:00:00 | ||
@@ -54,6 +54,7 @@ | ||
#include <syslog.h> | ||
#include <sys/types.h> | ||
#include <sys/stat.h> | ||
+#include <libgen.h> | ||
|
||
#include "dav_db.h" | ||
#include "global.h" | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/lib/ptrarray.c a/lib/ptrarray.c | ||
--- a~/lib/ptrarray.c 1970-01-01 00:00:00 | ||
+++ a/lib/ptrarray.c 1970-01-01 00:00:00 | ||
@@ -45,6 +45,7 @@ | ||
|
||
#include "ptrarray.h" | ||
#include <memory.h> | ||
+#include <string.h> | ||
#include "util.h" | ||
#include "xmalloc.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ no-lmtp-version.patch | |
adminip.patch | ||
sasllib.patch | ||
log-pri.patch | ||
gcc14.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
see: https://www.illumos.org/issues/15657 | ||
struct pam_message in struct pam_conv is not const in illumos before r151051 | ||
|
||
diff -wpruN --no-dereference '--exclude=*.orig' a~/src/modules/rlm_pam/rlm_pam.c a/src/modules/rlm_pam/rlm_pam.c | ||
--- a~/src/modules/rlm_pam/rlm_pam.c 1970-01-01 00:00:00 | ||
+++ a/src/modules/rlm_pam/rlm_pam.c 1970-01-01 00:00:00 | ||
@@ -68,7 +68,7 @@ typedef struct rlm_pam_data_t { | ||
@@ -68,7 +68,11 @@ typedef struct rlm_pam_data_t { | ||
* Uses PAM's appdata_ptr so it's thread safe, and doesn't | ||
* have any nasty static variables hanging around. | ||
*/ | ||
-static int pam_conv(int num_msg, struct pam_message const **msg, struct pam_response **resp, void *appdata_ptr) | ||
+#if OOCEVER >= 151051 | ||
static int pam_conv(int num_msg, struct pam_message const **msg, struct pam_response **resp, void *appdata_ptr) | ||
+#else | ||
+static int pam_conv(int num_msg, struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) | ||
+#endif | ||
{ | ||
int count; | ||
struct pam_response *reply; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
illumos-target.patch | ||
utils_unix.go.patch | ||
terminal.go.patch | ||
npm-10.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 13 additions & 4 deletions
17
build/openvpn/patches/pam_conv.patch → build/openvpn/patches/pam-illumos.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
see: https://www.illumos.org/issues/15657 | ||
struct pam_message in struct pam_conv is not const in illumos before r151051 | ||
|
||
diff -wpruN --no-dereference '--exclude=*.orig' a~/src/plugins/auth-pam/auth-pam.c a/src/plugins/auth-pam/auth-pam.c | ||
--- a~/src/plugins/auth-pam/auth-pam.c 1970-01-01 00:00:00 | ||
+++ a/src/plugins/auth-pam/auth-pam.c 1970-01-01 00:00:00 | ||
@@ -645,7 +645,7 @@ openvpn_plugin_abort_v1(openvpn_plugin_h | ||
@@ -645,7 +645,11 @@ openvpn_plugin_abort_v1(openvpn_plugin_h | ||
* PAM conversation function | ||
*/ | ||
static int | ||
-my_conv(int n, const struct pam_message **msg_array, | ||
+#if OOCEVER >= 151051 | ||
my_conv(int n, const struct pam_message **msg_array, | ||
+#else | ||
+my_conv(int n, struct pam_message **msg_array, | ||
+#endif | ||
struct pam_response **response_array, void *appdata_ptr) | ||
{ | ||
const struct user_pass *up = ( const struct user_pass *) appdata_ptr; | ||
@@ -667,7 +667,7 @@ my_conv(int n, const struct pam_message | ||
@@ -667,7 +671,11 @@ my_conv(int n, const struct pam_message | ||
/* loop through each PAM-module query */ | ||
for (i = 0; i < n; ++i) | ||
{ | ||
- const struct pam_message *msg = msg_array[i]; | ||
+#if OOCEVER >= 151051 | ||
const struct pam_message *msg = msg_array[i]; | ||
+#else | ||
+ struct pam_message *msg = msg_array[i]; | ||
+#endif | ||
aresp[i].resp_retcode = 0; | ||
aresp[i].resp = NULL; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pam_conv.patch | ||
pam-illumos.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.