summaryrefslogtreecommitdiff
path: root/glib-networking
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2011-08-28 21:08:53 +1000
committerDanny Rawlins <monster.romster@gmail.com>2011-08-28 21:09:33 +1000
commit18149967b4f06512510f0059be1ee2a60c754510 (patch)
tree53b96402e14c2083cf75c45bb79612191186123c /glib-networking
parenta60ef949546450182078a8c4e2cc14f3c3717d26 (diff)
downloadcontrib-18149967b4f06512510f0059be1ee2a60c754510.tar.gz
contrib-18149967b4f06512510f0059be1ee2a60c754510.tar.xz
glib-networking: update for newer gnutls
Diffstat (limited to 'glib-networking')
-rw-r--r--glib-networking/.md5sum1
-rw-r--r--glib-networking/Pkgfile9
-rw-r--r--glib-networking/gnutls3-API.patch17
3 files changed, 24 insertions, 3 deletions
diff --git a/glib-networking/.md5sum b/glib-networking/.md5sum
index 11704ecb0..b29fe8ada 100644
--- a/glib-networking/.md5sum
+++ b/glib-networking/.md5sum
@@ -1 +1,2 @@
c10e51571d03c10111a37bcd21fbf777 glib-networking-2.28.7.tar.bz2
+68b150313e3aefef489f4bace0279688 gnutls3-API.patch
diff --git a/glib-networking/Pkgfile b/glib-networking/Pkgfile
index 8484529cf..389b91a67 100644
--- a/glib-networking/Pkgfile
+++ b/glib-networking/Pkgfile
@@ -2,16 +2,19 @@
# URL: http://git.gnome.org/browse/glib-networking/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Danny Rawlins, monster dot romster at gmail dot com
-# Depends on: gnutls intltool
+# Depends on: gnutls intltool libgcrypt
name=glib-networking
version=2.28.7
-release=1
-source=(http://ftp.gnome.org/pub/GNOME/sources/$name/${version%.*}/$name-$version.tar.bz2)
+release=2
+source=(http://ftp.gnome.org/pub/GNOME/sources/$name/${version%.*}/$name-$version.tar.bz2
+ gnutls3-API.patch)
build() {
cd $name-$version
+ patch -p 0 -i $SRC/gnutls3-API.patch
+
./configure \
--prefix=/usr \
--disable-static \
diff --git a/glib-networking/gnutls3-API.patch b/glib-networking/gnutls3-API.patch
new file mode 100644
index 000000000..3923666ba
--- /dev/null
+++ b/glib-networking/gnutls3-API.patch
@@ -0,0 +1,17 @@
+http://projects.archlinux.org/svntogit/packages.git/tree/glib-networking/repos/extra-i686/glib-networking-2.29.9-port-gnutls3-API.patch
+--- tls/gnutls/gtlsconnection-gnutls.c
++++ tls/gnutls/gtlsconnection-gnutls.c 2011-08-04 00:40:33.194189789 +0200
+@@ -860,9 +860,10 @@
+
+ if (peer_certificate)
+ {
+- int status;
++ int verify_ret;
++ unsigned int status;
+
+- status = gnutls_certificate_verify_peers (gnutls->priv->session);
++ verify_ret = gnutls_certificate_verify_peers2 (gnutls->priv->session, &status);
+ peer_certificate_errors = g_tls_certificate_gnutls_convert_flags (status);
+ if (peer_certificate_errors)
+ {
+

Generated by cgit