Codebase list cyrus-sasl2 / 978e3da
Refresh patches for final cyrus-sasl2 2.1.27 release Gbp-Dch: ignore Ondřej Surý 5 years ago
16 changed file(s) with 51 addition(s) and 60 deletion(s). Raw diff Collapse all Expand all
2222 +HIDDEN { local: __*; _rest*; _save*; *; };
2323 +
2424 diff --git a/lib/Makefile.am b/lib/Makefile.am
25 index a158ca3..43345f4 100644
25 index 72ada6d..c2dfbf7 100644
2626 --- a/lib/Makefile.am
2727 +++ b/lib/Makefile.am
28 @@ -80,7 +80,8 @@ libobj_la_SOURCES =
28 @@ -79,7 +79,8 @@ libobj_la_SOURCES =
2929 libobj_la_LIBADD = $(LTLIBOBJS)
3030
3131 libsasl2_la_SOURCES = $(common_sources) $(common_headers)
1010 2 files changed, 4 insertions(+), 4 deletions(-)
1111
1212 diff --git a/utils/Makefile.am b/utils/Makefile.am
13 index cce413b..17f0457 100644
13 index 6ffd8b9..2dcafca 100644
1414 --- a/utils/Makefile.am
1515 +++ b/utils/Makefile.am
1616 @@ -45,10 +45,10 @@
2727 if NO_SASL_DB_MANS
2828 man_MANS =
2929 diff --git a/utils/dbconverter-2.c b/utils/dbconverter-2.c
30 index c53d403..958aac8 100644
30 index 4e1bc13..9de1a87 100644
3131 --- a/utils/dbconverter-2.c
3232 +++ b/utils/dbconverter-2.c
33 @@ -382,7 +382,7 @@ static struct sasl_callback goodsasl_cb[] = {
33 @@ -385,7 +385,7 @@ static struct sasl_callback goodsasl_cb[] = {
3434
3535 int main(int argc, char **argv)
3636 {
3939 int result;
4040
4141 if (argc > 1) {
42 @@ -418,7 +418,7 @@ int main(int argc, char **argv)
42 @@ -421,7 +421,7 @@ int main(int argc, char **argv)
4343
4444 printf("\nThis program will take the sasldb file specified on the\n"
4545 "command line and convert it to a new sasldb file in the default\n"
77 1 file changed, 3 insertions(+), 3 deletions(-)
88
99 diff --git a/lib/common.c b/lib/common.c
10 index 305311d..1fad916 100644
10 index bc3bf1d..244d0f0 100644
1111 --- a/lib/common.c
1212 +++ b/lib/common.c
1313 @@ -816,7 +816,7 @@ int _sasl_common_init(sasl_global_callbacks_t *global_callbacks)
77 1 file changed, 2 insertions(+)
88
99 diff --git a/configure.ac b/configure.ac
10 index ac59f14..a9c5e11 100644
10 index 388f5d0..b3db52c 100644
1111 --- a/configure.ac
1212 +++ b/configure.ac
1313 @@ -69,6 +69,8 @@ AC_CANONICAL_TARGET
1111 1 file changed, 1 insertion(+), 1 deletion(-)
1212
1313 diff --git a/lib/Makefile.am b/lib/Makefile.am
14 index 43345f4..9344606 100644
14 index c2dfbf7..fbaf7be 100644
1515 --- a/lib/Makefile.am
1616 +++ b/lib/Makefile.am
17 @@ -100,7 +100,7 @@ endif
17 @@ -99,7 +99,7 @@ endif
1818
1919 libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS)
2020 @echo adding static plugins and dependencies
99 2 files changed, 3 insertions(+), 3 deletions(-)
1010
1111 diff --git a/saslauthd/Makefile.am b/saslauthd/Makefile.am
12 index d7244be..a5a4dfd 100644
12 index 864b29b..4cf3a3d 100644
1313 --- a/saslauthd/Makefile.am
1414 +++ b/saslauthd/Makefile.am
1515 @@ -25,7 +25,7 @@ EXTRA_saslauthd_sources = getaddrinfo.c getnameinfo.c
33 Subject: Don't use la files for opening plugins
44
55 ---
6 lib/dlopen.c | 115 ++++-------------------------------------------------------
7 1 file changed, 7 insertions(+), 108 deletions(-)
6 lib/dlopen.c | 121 ++++-------------------------------------------------------
7 1 file changed, 7 insertions(+), 114 deletions(-)
88
99 diff --git a/lib/dlopen.c b/lib/dlopen.c
10 index 2032f94..9cb1ce7 100644
10 index 8284cd8..ef90b11 100644
1111 --- a/lib/dlopen.c
1212 +++ b/lib/dlopen.c
13 @@ -247,107 +247,6 @@ static int _sasl_plugin_load(char *plugin, void *library,
13 @@ -246,113 +246,6 @@ static int _sasl_plugin_load(char *plugin, void *library,
1414 return result;
1515 }
1616
3838 - if (strcmp(in + (length - strlen(LA_SUFFIX)), LA_SUFFIX)) {
3939 - if(!strcmp(in + (length - strlen(SO_SUFFIX)),SO_SUFFIX)) {
4040 - /* check for a .la file */
41 - if (strlen(prefix) + strlen(in) + strlen(LA_SUFFIX) + 1 >= MAX_LINE)
42 - return SASL_BADPARAM;
4143 - strcpy(line, prefix);
4244 - strcat(line, in);
4345 - length = strlen(line);
5052 - return SASL_FAIL;
5153 - }
5254 - }
55 - if (strlen(prefix) + strlen(in) + 1 >= PATH_MAX)
56 - return SASL_BADPARAM;
5357 - strcpy(out, prefix);
5458 - strcat(out, in);
5559 - return SASL_OK;
5660 - }
5761 -
62 - if (strlen(prefix) + strlen(in) + 1 >= MAX_LINE)
63 - return SASL_BADPARAM;
5864 - strcpy(line, prefix);
5965 - strcat(line, in);
6066 -
118124 #endif /* DO_DLOPEN */
119125
120126 /* loads a plugin library */
121 @@ -501,18 +400,18 @@ int _sasl_load_plugins(const add_plugin_list_t *entrypoints,
127 @@ -506,18 +399,18 @@ int _sasl_load_plugins(const add_plugin_list_t *entrypoints,
122128 if (length + pos>=PATH_MAX) continue; /* too big */
123129
124130 if (strcmp(dir->d_name + (length - strlen(SO_SUFFIX)),
99 4 files changed, 4 insertions(+), 76 deletions(-)
1010
1111 diff --git a/configure.ac b/configure.ac
12 index aa9e059..db02be9 100644
12 index 1882f31..687779c 100644
1313 --- a/configure.ac
1414 +++ b/configure.ac
15 @@ -1252,64 +1252,11 @@ AC_SUBST(SMTPTEST_PROGRAM)
15 @@ -1218,64 +1218,11 @@ AC_SUBST(SMTPTEST_PROGRAM)
1616 AC_SUBST(SASL_UTIL_LIBS_EXTRA)
1717 AC_SUBST(SASL_UTIL_HEADERS_EXTRA)
1818
3232 -LTSNPRINTFOBJS=""
3333 -AC_CHECK_FUNC(snprintf, [AC_DEFINE(HAVE_SNPRINTF,[],[Does the system have snprintf()?])], [sasl_cv_snprintf=yes])
3434 -AC_CHECK_FUNC(vsnprintf, [AC_DEFINE(HAVE_VSNPRINTF,[],[Does the system have vsnprintf()?])], [sasl_cv_snprintf=yes])
35 -if test $sasl_cv_snprintf = no; then
35 -if test $sasl_cv_snprintf = yes; then
3636 - AC_LIBOBJ(snprintf)
3737 - SNPRINTFOBJS="snprintf.o"
3838 - LTSNPRINTFOBJS="snprintf.lo"
7979 AC_C_INLINE
8080 AC_TYPE_MODE_T
8181 diff --git a/lib/Makefile.am b/lib/Makefile.am
82 index a747335..5029a18 100644
82 index 510c139..520676c 100644
8383 --- a/lib/Makefile.am
8484 +++ b/lib/Makefile.am
85 @@ -66,27 +66,13 @@ endif
85 @@ -65,27 +65,13 @@ endif
8686 common_headers = saslint.h
8787 common_sources = auxprop.c canonusr.c checkpw.c client.c common.c config.c external.c md5.c saslutil.c server.c seterror.c $(DLOPEN_C)
8888
112112 if MACOSX
113113 framedir = /Library/Frameworks/SASL2.framework
114114 diff --git a/plugins/Makefile.am b/plugins/Makefile.am
115 index 24a3571..4310af1 100644
115 index 5e84b3b..65eeeec 100644
116116 --- a/plugins/Makefile.am
117117 +++ b/plugins/Makefile.am
118118 @@ -52,9 +52,6 @@ plugin_version = 2:25:0
126126 CRYPTO_COMPAT_OBJS = $(top_builddir)/common/libcrypto_compat.la
127127
128128 diff --git a/saslauthd/Makefile.am b/saslauthd/Makefile.am
129 index a5a4dfd..43a9a9a 100644
129 index 4cf3a3d..af1c7ca 100644
130130 --- a/saslauthd/Makefile.am
131131 +++ b/saslauthd/Makefile.am
132132 @@ -2,8 +2,6 @@ AUTOMAKE_OPTIONS = 1.7
77 1 file changed, 1 insertion(+), 1 deletion(-)
88
99 diff --git a/configure.ac b/configure.ac
10 index a9c5e11..7019686 100644
10 index b3db52c..17b3f99 100644
1111 --- a/configure.ac
1212 +++ b/configure.ac
13 @@ -286,7 +286,7 @@ AC_ARG_WITH(pam, [ --with-pam=DIR use PAM (rooted in DIR) [[yes]] ],
13 @@ -606,7 +606,7 @@ AC_ARG_WITH(pam, AC_HELP_STRING([--with-pam=DIR], [use PAM (rooted in DIR) [yes]
1414 if test "$with_pam" != no; then
1515 if test -d $with_pam; then
1616 CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
1717 - LDFLAGS="$LDFLAGS -L${with_pam}/lib"
1818 + LDFLAGS="$LDFLAGS -L${with_pam}/$DEB_HOST_MULTIARCH/lib"
1919 fi
20 AC_CHECK_HEADERS(security/pam_appl.h pam/pam_appl.h)
2120 cmu_save_LIBS="$LIBS"
21 AC_CHECK_LIB(pam, pam_start, [
+0
-21
debian/patches/0018-We-need-to-look-for-compat-crypto.h-in-top_srcdir-as.patch less more
0 From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= <ondrej@sury.org>
1 Date: Tue, 2 Oct 2018 08:42:04 +0000
2 Subject: We need to look for compat-crypto.h in top_srcdir as well
3
4 ---
5 saslauthd/Makefile.am | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8 diff --git a/saslauthd/Makefile.am b/saslauthd/Makefile.am
9 index 43a9a9a..452ed83 100644
10 --- a/saslauthd/Makefile.am
11 +++ b/saslauthd/Makefile.am
12 @@ -32,7 +32,7 @@ saslcache_SOURCES = saslcache.c
13
14 EXTRA_DIST = saslauthd.8 saslauthd.mdoc include \
15 getnameinfo.c getaddrinfo.c LDAP_SASLAUTHD
16 -AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/../include -I$(top_builddir)/common
17 +AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/../include -I$(top_srcdir)/common -I$(top_builddir)/common
18 DEFS = @DEFS@ -DSASLAUTHD_CONF_FILE_DEFAULT=\"@sysconfdir@/saslauthd.conf\" -I. -I$(srcdir) -I..
19
20
2020 AC_CHECK_FUNCS(gss_encapsulate_token)
2121 AC_CHECK_FUNCS(gss_oid_equal)
2222 diff --git a/plugins/gssapi.c b/plugins/gssapi.c
23 index cf3fc64..7aab703 100644
23 index ff663da..7c69ac2 100644
2424 --- a/plugins/gssapi.c
2525 +++ b/plugins/gssapi.c
2626 @@ -1545,7 +1545,7 @@ static sasl_server_plug_t gssapi_server_plugins[] =
77 2 files changed, 2 insertions(+), 2 deletions(-)
88
99 diff --git a/lib/Makefile.am b/lib/Makefile.am
10 index 9344606..a747335 100644
10 index fbaf7be..510c139 100644
1111 --- a/lib/Makefile.am
1212 +++ b/lib/Makefile.am
1313 @@ -43,7 +43,7 @@
1818 +sasl_version = 2:25:0
1919
2020 AM_CPPFLAGS=-DLIBSASL_EXPORTS=1 -I$(top_srcdir)/include -I$(top_srcdir)/plugins \
21 -I$(top_builddir)/include -I$(top_srcdir)/sasldb -I$(top_srcdir)/common
21 -I$(top_builddir)/include -I$(top_srcdir)/sasldb -I$(top_srcdir)/common -DCONFIGDIR='"${configdir}"' -DPLUGINDIR='"${plugindir}"'
2222 diff --git a/plugins/Makefile.am b/plugins/Makefile.am
23 index 2b02a52..24a3571 100644
23 index 7aff8fe..5e84b3b 100644
2424 --- a/plugins/Makefile.am
2525 +++ b/plugins/Makefile.am
2626 @@ -47,7 +47,7 @@
88 2 files changed, 13 insertions(+), 1 deletion(-)
99
1010 diff --git a/Makefile.am b/Makefile.am
11 index 04fc82d..a4fed1e 100644
11 index 83dae6f..25694a8 100644
1212 --- a/Makefile.am
1313 +++ b/Makefile.am
1414 @@ -44,6 +44,15 @@ ACLOCAL_AMFLAGS = -I m4
3939 @find $(distdir) -exec chmod u+w {} ';'
4040 @find $(distdir) -name CVS -print | xargs -t rm -rf
4141 diff --git a/configure.ac b/configure.ac
42 index 7019686..049382e 100644
42 index 17b3f99..fe7f0eb 100644
4343 --- a/configure.ac
4444 +++ b/configure.ac
45 @@ -1592,7 +1592,6 @@ AH_BOTTOM([#if defined __GNUC__ && __GNUC__ > 6
45 @@ -1558,7 +1558,6 @@ AH_BOTTOM([#if defined __GNUC__ && __GNUC__ > 6
4646 AC_CONFIG_HEADERS(config.h)
4747
4848 AC_OUTPUT(Makefile
66 1 file changed, 3 insertions(+), 1 deletion(-)
77
88 diff --git a/configure.ac b/configure.ac
9 index 049382e..aa9e059 100644
9 index fe7f0eb..1882f31 100644
1010 --- a/configure.ac
1111 +++ b/configure.ac
12 @@ -926,7 +926,9 @@ case "$with_pgsql" in
12 @@ -894,7 +894,9 @@ case "$with_pgsql" in
1313 LIB_PGSQL_DIR=$LIB_PGSQL
1414 LIB_PGSQL="$LIB_PGSQL -lpq"
1515
0 Description: fix cross compialtion
1 Author: Helmut Grohne <helmut@subdivi.de>
0 From: Helmut Grohne <helmut@subdivi.de>
1 Date: Mon, 21 Jan 2019 09:56:41 +0000
2 Subject: fix cross compialtion
3
24 Bug-Debian: https://bugs.debian.org/792851
35 Last-Update: 2015-07-19
46
57 * Remove SASL_DB_LIB as it expands to -ldb and make fails to find a build arch
68 -ldb.
9 ---
10 sasldb/Makefile.am | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
712
13 diff --git a/sasldb/Makefile.am b/sasldb/Makefile.am
14 index a27645f..1348945 100644
815 --- a/sasldb/Makefile.am
916 +++ b/sasldb/Makefile.am
10 @@ -54,6 +54,6 @@
17 @@ -54,6 +54,6 @@ noinst_LTLIBRARIES = libsasldb.la
1118
1219 libsasldb_la_SOURCES = allockey.c sasldb.h
1320 EXTRA_libsasldb_la_SOURCES = $(extra_common_sources)
1414 0027-properly-create-libsasl2.pc.patch
1515 0032-Add-with_pgsql-include-postgresql-to-include-path.patch
1616 0017-Just-completely-remove-libobj-from-autotools-files.patch
17 0018-We-need-to-look-for-compat-crypto.h-in-top_srcdir-as.patch
1817 0033-cross.patch