From 2bf31423f24de918c73790788819532249c00f07 Mon Sep 17 00:00:00 2001 From: ponce Date: Wed, 25 Jul 2012 12:41:54 +0200 Subject: libraries/ggz-base-libs: Fixed building with gnutls3. Signed-off-by: Robby Workman --- libraries/ggz-base-libs/ggz-base-libs.SlackBuild | 6 +++++- libraries/ggz-base-libs/gnutls3.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 libraries/ggz-base-libs/gnutls3.patch (limited to 'libraries') diff --git a/libraries/ggz-base-libs/ggz-base-libs.SlackBuild b/libraries/ggz-base-libs/ggz-base-libs.SlackBuild index af96a6fb8b..f237f4933d 100644 --- a/libraries/ggz-base-libs/ggz-base-libs.SlackBuild +++ b/libraries/ggz-base-libs/ggz-base-libs.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=ggz-base-libs VERSION=0.99.5 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -67,6 +67,10 @@ cd $PRGNAM-snapshot-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . +# Fix building with gnutls3, thanks to netbsd people +( cd libggz +patch -p1 < $CWD/gnutls3.patch ) + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/libraries/ggz-base-libs/gnutls3.patch b/libraries/ggz-base-libs/gnutls3.patch new file mode 100644 index 0000000000..ed40bf12d5 --- /dev/null +++ b/libraries/ggz-base-libs/gnutls3.patch @@ -0,0 +1,11 @@ +--- src/security/ggz_tls_gnutls.c.orig 2008-01-05 19:03:41.000000000 +0000 ++++ src/security/ggz_tls_gnutls.c +@@ -56,7 +56,7 @@ const int cipher_priority[] = {GNUTLS_CI + const int mac_priority[] = {GNUTLS_MAC_NULL, GNUTLS_MAC_MD5, GNUTLS_MAC_SHA, 0}; + const int kx_priority[] = {GNUTLS_KX_ANON_DH, GNUTLS_KX_DHE_DSS, GNUTLS_KX_DHE_RSA, 0}; + const int protocol_priority[] = {GNUTLS_TLS1, GNUTLS_SSL3, 0}; +-const int compression_priority[] = {GNUTLS_COMP_NULL, GNUTLS_COMP_ZLIB, GNUTLS_COMP_LZO, 0}; ++const int compression_priority[] = {GNUTLS_COMP_NULL, GNUTLS_COMP_ZLIB, 0}; + + void ggz_tls_init(const char *certfile, const char *keyfile, const char *password) + { -- cgit v1.2.3