diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-04-16 13:24:09 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-04-16 13:24:09 -0500 |
commit | 1677f0f3f9c661b36042c4568ff7f3048f1dafeb (patch) | |
tree | 2ace48ca7548c8342199ed8919762b07b3423f90 /user | |
parent | 26d49f8ffba242aefb5f26aa1e0d07911cda20e6 (diff) | |
download | packages-1677f0f3f9c661b36042c4568ff7f3048f1dafeb.tar.gz packages-1677f0f3f9c661b36042c4568ff7f3048f1dafeb.tar.bz2 packages-1677f0f3f9c661b36042c4568ff7f3048f1dafeb.tar.xz packages-1677f0f3f9c661b36042c4568ff7f3048f1dafeb.zip |
user/glib-networking: upgrade to 2.60.1, add patch for gnutls-3.6.7+
Diffstat (limited to 'user')
-rw-r--r-- | user/glib-networking/APKBUILD | 10 | ||||
-rw-r--r-- | user/glib-networking/glib-networking-2.60-new-gnutls-cert-error-fix.patch | 31 |
2 files changed, 37 insertions, 4 deletions
diff --git a/user/glib-networking/APKBUILD b/user/glib-networking/APKBUILD index 40c86ad5c..83ee6af4a 100644 --- a/user/glib-networking/APKBUILD +++ b/user/glib-networking/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: pkgname=glib-networking -pkgver=2.60.0.1 -_ver=2.60 +pkgver=2.60.1 +_ver=${pkgver%.*} pkgrel=0 pkgdesc="Networking support for GLib" url="https://www.gnome.org/" @@ -12,7 +12,8 @@ depends="ca-certificates" makedepends="bash glib-dev gnutls-dev gsettings-desktop-schemas-dev intltool libgcrypt-dev libproxy-dev meson ninja p11-kit-dev" subpackages="$pkgname-lang" -source="https://download.gnome.org/sources/glib-networking/$_ver/glib-networking-$pkgver.tar.xz" +source="https://download.gnome.org/sources/glib-networking/$_ver/glib-networking-$pkgver.tar.xz + glib-networking-2.60-new-gnutls-cert-error-fix.patch" prepare() { cd "$builddir" @@ -37,4 +38,5 @@ package() { rm -f "$pkgdir"/usr/lib/gio/modules/*.a } -sha512sums="98a34a14cdbbcb4a9496bce807e7720dd9e103adbacd5dc44439d5fcaf02eef12c0385df95767d7603587331b84c7ad4a677f47b00583a46f15a022572a3690f glib-networking-2.60.0.1.tar.xz" +sha512sums="a40a7e9678076db1a469f0d8ffdcb0c6658ef96ff1d9637299fbb07985f4c42bae3f1415f8df15242718420d20eb90de93253a00d1f6a347110b3f8a74bcc717 glib-networking-2.60.1.tar.xz +b9d3d744aec5337553e228ff1ee0616b1d79d1766ef9d87e644706a154f8e6151b15651b73a7073482e5cbe20b54ac78bd34f7ad77ebf0d34c42d969b4315241 glib-networking-2.60-new-gnutls-cert-error-fix.patch" diff --git a/user/glib-networking/glib-networking-2.60-new-gnutls-cert-error-fix.patch b/user/glib-networking/glib-networking-2.60-new-gnutls-cert-error-fix.patch new file mode 100644 index 000000000..ab04dae3e --- /dev/null +++ b/user/glib-networking/glib-networking-2.60-new-gnutls-cert-error-fix.patch @@ -0,0 +1,31 @@ +From 1ce6b40da8ecbf997c5522a592a122e805aa81c4 Mon Sep 17 00:00:00 2001 +From: Michael Catanzaro <mcatanzaro@igalia.com> +Date: Wed, 3 Apr 2019 18:00:55 -0500 +Subject: [PATCH] gnutls: Handle new GNUTLS_E_CERTIFICATE_REQUIRED + +This new error in GnuTLS 3.6.7 should correspond to +G_TLS_ERROR_CERTIFICATE_REQUIRED. This fixes our client auth tests when +run with GnuTLS 3.6.7. + +Fixes #70 +--- + tls/gnutls/gtlsconnection-gnutls.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c +index 27bbbcd..774d668 100644 +--- a/tls/gnutls/gtlsconnection-gnutls.c ++++ b/tls/gnutls/gtlsconnection-gnutls.c +@@ -1062,7 +1062,11 @@ end_gnutls_io (GTlsConnectionGnutls *gnutls, + else + return 0; + } +- else if (status == GNUTLS_E_NO_CERTIFICATE_FOUND) ++ else if (status == GNUTLS_E_NO_CERTIFICATE_FOUND ++#ifdef GNUTLS_E_CERTIFICATE_REQUIRED ++ || status == GNUTLS_E_CERTIFICATE_REQUIRED /* Added in GnuTLS 3.6.7 */ ++#endif ++ ) + { + g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED, + _("TLS connection peer did not send a certificate")); |