From e7c3d943fc53dcea12018ad1569ae90b9a2fc04b Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 30 Mar 2016 20:58:29 +0200 Subject: [PATCH] xchat: unbreak --- srcpkgs/xchat/patches/libressl-2.3.patch | 20 ++++++++++++++++++++ srcpkgs/xchat/template | 5 ++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/xchat/patches/libressl-2.3.patch diff --git a/srcpkgs/xchat/patches/libressl-2.3.patch b/srcpkgs/xchat/patches/libressl-2.3.patch new file mode 100644 index 00000000000..d6bc0bd4a29 --- /dev/null +++ b/srcpkgs/xchat/patches/libressl-2.3.patch @@ -0,0 +1,20 @@ +--- src/common/ssl.c.orig 2016-03-30 20:54:51.193579450 +0200 ++++ src/common/ssl.c 2016-03-30 20:55:03.070579987 +0200 +@@ -70,7 +70,7 @@ + + SSLeay_add_ssl_algorithms (); + SSL_load_error_strings (); +- ctx = SSL_CTX_new (server ? SSLv3_server_method() : SSLv3_client_method ()); ++ ctx = SSL_CTX_new (server ? SSLv23_server_method() : SSLv23_client_method ()); + + SSL_CTX_set_session_cache_mode (ctx, SSL_SESS_CACHE_BOTH); + SSL_CTX_set_timeout (ctx, 300); +@@ -281,7 +281,7 @@ + __SSL_critical_error ("SSL_new"); + + SSL_set_fd (ssl, sd); +- if (ctx->method == SSLv3_client_method()) ++ if (ctx->method == SSLv23_client_method()) + SSL_set_connect_state (ssl); + else + SSL_set_accept_state(ssl); diff --git a/srcpkgs/xchat/template b/srcpkgs/xchat/template index e0ba8b2598a..8c3cd078505 100644 --- a/srcpkgs/xchat/template +++ b/srcpkgs/xchat/template @@ -1,7 +1,7 @@ # Template file for 'xchat' pkgname=xchat version=2.8.8 -revision=11 +revision=12 lib32disabled=yes build_style=gnu-configure hostmakedepends="pkg-config gdk-pixbuf-devel perl" @@ -11,11 +11,10 @@ configure_args=" --sysconfdir=/etc --enable-openssl --enable-dbus short_desc="A GTK+ based IRC client" maintainer="Enno Boland " homepage="http://www.xchat.org/" -license="GPL" +license="GPL-2" distfiles="http://www.xchat.org/files/source/${version%.*}/${pkgname}-${version}.tar.xz" checksum=37b7afd87b5576e17f5dbdd0ed8c14004ac71b8c5430baff9a785bad8df0310b make_build_args="LDFLAGS=-lgmodule-2.0" -broken="SSLv3_client_method" pre_configure() { local perlflags=