mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libsasl: update to 2.1.28.
This commit is contained in:
parent
4dbaeb679a
commit
cfe8e5d18a
5 changed files with 5 additions and 109 deletions
|
@ -1,15 +0,0 @@
|
||||||
https://github.com/cyrusimap/cyrus-sasl/issues/587
|
|
||||||
|
|
||||||
diff --git a/lib/common.c b/lib/common.c
|
|
||||||
index bc3bf1df..9969d6aa 100644
|
|
||||||
--- a/lib/common.c
|
|
||||||
+++ b/lib/common.c
|
|
||||||
@@ -190,7 +190,7 @@ int _sasl_add_string(char **out, size_t *alloclen,
|
|
||||||
|
|
||||||
if (add==NULL) add = "(null)";
|
|
||||||
|
|
||||||
- addlen=strlen(add); /* only compute once */
|
|
||||||
+ addlen=strlen(add)+1; /* only compute once */
|
|
||||||
if (_buf_alloc(out, alloclen, (*outlen)+addlen)!=SASL_OK)
|
|
||||||
return SASL_NOMEM;
|
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
Upstream: No
|
|
||||||
Reason: Tries to run cross compiled binary
|
|
||||||
|
|
||||||
diff --git a/m4/sasl2.m4 b/m4/sasl2.m4
|
|
||||||
index 56e0504..c1d8e35 100644
|
|
||||||
--- a/m4/sasl2.m4
|
|
||||||
+++ b/m4/sasl2.m4
|
|
||||||
@@ -315,31 +315,8 @@ if test "$gssapi" != no; then
|
|
||||||
LIBS="$LIBS $GSSAPIBASE_LIBS"
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for SPNEGO support in GSSAPI libraries])
|
|
||||||
- AC_TRY_RUN([
|
|
||||||
-#ifdef HAVE_GSSAPI_H
|
|
||||||
-#include <gssapi.h>
|
|
||||||
-#else
|
|
||||||
-#include <gssapi/gssapi.h>
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
-int main(void)
|
|
||||||
-{
|
|
||||||
- gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
|
|
||||||
- gss_OID_set mech_set;
|
|
||||||
- OM_uint32 min_stat;
|
|
||||||
- int have_spnego = 0;
|
|
||||||
-
|
|
||||||
- if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
|
|
||||||
- gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
|
|
||||||
- gss_release_oid_set(&min_stat, &mech_set);
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- return (!have_spnego); // 0 = success, 1 = failure
|
|
||||||
-}
|
|
||||||
-],
|
|
||||||
- [ AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO])
|
|
||||||
- AC_MSG_RESULT(yes) ],
|
|
||||||
- AC_MSG_RESULT(no))
|
|
||||||
+ AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO])
|
|
||||||
+ AC_MSG_RESULT(yes)
|
|
||||||
LIBS="$cmu_save_LIBS"
|
|
||||||
|
|
||||||
else
|
|
|
@ -1,29 +0,0 @@
|
||||||
Source: https://git.alpinelinux.org/aports/tree/main/cyrus-sasl/cyrus-sasl-2.1.27-as_needed.patch
|
|
||||||
Upstream: No
|
|
||||||
Reason: FTBFS
|
|
||||||
|
|
||||||
Author: Matthias Klose <doko@ubuntu.com>
|
|
||||||
Desription: Fix FTBFS, add $(SASL_DB_LIB) as dependency to libsasldb, and use
|
|
||||||
it.
|
|
||||||
--- cyrus-sasl-2.1.27/saslauthd/Makefile.am
|
|
||||||
+++ cyrus-sasl-2.1.27/saslauthd/Makefile.am
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
saslauthd_DEPENDENCIES = saslauthd-main.o $(LTLIBOBJS_FULL)
|
|
||||||
saslauthd_LDADD = @SASL_KRB_LIB@ \
|
|
||||||
@GSSAPIBASE_LIBS@ @LIB_CRYPT@ @LIB_SIA@ \
|
|
||||||
- @LIB_SOCKET@ @SASL_DB_LIB@ @LIB_PAM@ @LDAP_LIBS@ $(LTLIBOBJS_FULL) $(CRYPTO_COMPAT_OBJS) $(LIBSASLDB_OBJS)
|
|
||||||
+ @LIB_SOCKET@ ../sasldb/libsasldb.la @LIB_PAM@ @LDAP_LIBS@ $(LTLIBOBJS_FULL) $(CRYPTO_COMPAT_OBJS) $(LIBSASLDB_OBJS)
|
|
||||||
|
|
||||||
testsaslauthd_SOURCES = testsaslauthd.c utils.c
|
|
||||||
testsaslauthd_LDADD = @LIB_SOCKET@
|
|
||||||
--- cyrus-sasl-2.1.27/sasldb/Makefile.am
|
|
||||||
+++ cyrus-sasl-2.1.27/sasldb/Makefile.am
|
|
||||||
@@ -54,6 +54,6 @@
|
|
||||||
|
|
||||||
libsasldb_la_SOURCES = allockey.c sasldb.h
|
|
||||||
EXTRA_libsasldb_la_SOURCES = $(extra_common_sources)
|
|
||||||
-libsasldb_la_DEPENDENCIES = $(SASL_DB_BACKEND)
|
|
||||||
-libsasldb_la_LIBADD = $(SASL_DB_BACKEND)
|
|
||||||
+libsasldb_la_DEPENDENCIES = $(SASL_DB_BACKEND) $(SASL_DB_LIB)
|
|
||||||
+libsasldb_la_LIBADD = $(SASL_DB_BACKEND) $(SASL_DB_LIB)
|
|
||||||
libsasldb_la_LDFLAGS = -no-undefined
|
|
|
@ -1,20 +0,0 @@
|
||||||
Source: https://git.alpinelinux.org/aports/tree/main/cyrus-sasl/cyrus-sasl-2.1.27-avoid_pic_overwrite.patch
|
|
||||||
Upstream: No
|
|
||||||
|
|
||||||
Author: Fabian Fagerholm <fabbe@debian.org>
|
|
||||||
Description: This patch makes sure the non-PIC version of libsasldb.a, which
|
|
||||||
is created out of non-PIC objects, is not going to overwrite the PIC version,
|
|
||||||
which is created out of PIC objects. The PIC version is placed in .libs, and
|
|
||||||
the non-PIC version in the current directory. This ensures that both non-PIC
|
|
||||||
and PIC versions are available in the correct locations.
|
|
||||||
--- cyrus-sasl-2.1.27/lib/Makefile.am
|
|
||||||
+++ cyrus-sasl-2.1.27/lib/Makefile.am
|
|
||||||
@@ -98,7 +98,7 @@
|
|
||||||
|
|
||||||
libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS)
|
|
||||||
@echo adding static plugins and dependencies
|
|
||||||
- $(AR) cru .libs/$@ $(SASL_STATIC_OBJS)
|
|
||||||
+ $(AR) cru $@ $(SASL_STATIC_OBJS)
|
|
||||||
@for i in ./libsasl2.la ../common/libplugin_common.la ../sasldb/libsasldb.la ../plugins/lib*.la; do \
|
|
||||||
if test ! -f $$i; then continue; fi; . $$i; \
|
|
||||||
for j in $$dependency_libs foo; do \
|
|
|
@ -1,13 +1,14 @@
|
||||||
# Template file for 'libsasl'
|
# Template file for 'libsasl'
|
||||||
pkgname=libsasl
|
pkgname=libsasl
|
||||||
version=2.1.27
|
version=2.1.28
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-cram --enable-digest --enable-auth-sasldb
|
configure_args="--enable-cram --enable-digest --enable-auth-sasldb
|
||||||
--enable-plain --enable-anon --enable-login --enable-gssapi --enable-ntlm
|
--enable-plain --enable-anon --enable-login --enable-gssapi --enable-ntlm
|
||||||
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2
|
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2
|
||||||
--disable-otp --disable-srp --disable-srp-setpass --disable-krb4
|
--disable-otp --disable-srp --disable-srp-setpass --disable-krb4
|
||||||
--with-devrandom=/dev/random"
|
--with-devrandom=/dev/random
|
||||||
|
ac_cv_gssapi_supports_spnego=yes"
|
||||||
hostmakedepends="automake libtool pkg-config"
|
hostmakedepends="automake libtool pkg-config"
|
||||||
makedepends="db-devel"
|
makedepends="db-devel"
|
||||||
short_desc="Cyrus SASL - runtime shared libraries"
|
short_desc="Cyrus SASL - runtime shared libraries"
|
||||||
|
@ -15,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="BSD-3-Clause-Attribution"
|
license="BSD-3-Clause-Attribution"
|
||||||
homepage="https://www.cyrusimap.org/sasl/"
|
homepage="https://www.cyrusimap.org/sasl/"
|
||||||
distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
|
distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
|
||||||
checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
|
checksum=7ccfc6abd01ed67c1a0924b353e526f1b766b21f42d4562ee635a8ebfc5bb38c
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue