aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Cardona <remi@gentoo.org>2018-04-15 22:32:12 +0200
committerRémi Cardona <remi@gentoo.org>2018-04-15 22:35:11 +0200
commite31fc2a53b8b37c9ea2bdc9839b9bc6441d2004a (patch)
tree2e981e814572c00fdb8ab70ed69d088586d9aa53
parentgnome-base/gnome-light: Bump version to 3.26.1 (diff)
downloadgnome-e31fc2a53b8b37c9ea2bdc9839b9bc6441d2004a.tar.gz
gnome-e31fc2a53b8b37c9ea2bdc9839b9bc6441d2004a.tar.bz2
gnome-e31fc2a53b8b37c9ea2bdc9839b9bc6441d2004a.zip
net-libs/glib-networking: bump to 2.56.0
Package-Manager: Portage-2.3.28, Repoman-2.3.9 Manifest-Sign-Key: 0xE0663D48103108F8
-rw-r--r--net-libs/glib-networking/Manifest30
-rw-r--r--net-libs/glib-networking/files/2.56.0-Fix-building-tls-plugin-without-pkcs11.patch57
-rw-r--r--net-libs/glib-networking/glib-networking-2.56.0.ebuild84
3 files changed, 155 insertions, 16 deletions
diff --git a/net-libs/glib-networking/Manifest b/net-libs/glib-networking/Manifest
index 90d415dc..485faff8 100644
--- a/net-libs/glib-networking/Manifest
+++ b/net-libs/glib-networking/Manifest
@@ -2,22 +2,20 @@
Hash: SHA256
DIST glib-networking-2.54.1.tar.xz 441232 BLAKE2B 4697ac5fe248d12839d2a3c1340e2e699fa2ea65a9b5d741c50d069c904e82eb23feb89d648bc127959d9ac15e18d3a4cd2bd8b08202d48d33937affb9df13c9 SHA512 8356d835914e33df43f4f2bb6a915ddcd48dd0565e4d5bc1f1d692e9c3124ee4421b99f87f2586f74e9fed24ef7421159f3242fd1eb7bd74950bd25e860896ec
+DIST glib-networking-2.56.0.tar.xz 163852 BLAKE2B 42fe3469d9e7bac8e0de0fe6a9f154dbb39ed5cc43e46b1f10cb53f04fcb24f391b436dcb2c6585033e86f83079ab3530787d1454cf8f57b81a12285c867fcdf SHA512 7c34817fa08e29c1d75e253a223d7beda0f38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4GY9SBAx
+CPhUdxAAyp7Yw6YqF59OdDDcsB7tYHvPrH9sYnrG88/fiZCW3yR6qkZzLmgjrMKd
+cgneYTZxAtJ9rKZuu8uDrNhVPtSs2LVJWJW4nWcvIasUY9EwcgD1rt9+sWzhww4Q
+vcSOjJbcDqham0Cji1YbLEljGGKouNR0gdsrbbszQc5QsCN2BYn6SUrsC/krvN1W
+7vmxk4btsvrimZ/8/C1FlD5Cp+gV20tkpeCmkWqR0u2RyFGRD11O0BLCcgTOLnQK
+AG8fM/OZ84p2fIUthCWZl52aCEbAYsYJNp7WNIWj4rk+17SnkrmxwgySNFtuGRjE
+q6ARU7t8HPXg4RUOLlQliDR1lnWIXhdvK4n+7gOfe1CYYzlrc20QNxWTv03P2w2h
+mV+/YAggyW2nJxSeyrYCYL7NBCTwV0NhKI7VCsaWT3NbF4VUU3Wf/BN5qfVbR9U0
+tqdt56k0AphL1mTYpYB96Z7UHl20TdlELY67+Z2bgD0CjdmhGbbYrgfWUu8NsJvK
+z9LLxqPqFDK4cu8G7nShP4BQJ2cE0J82FFRXFJWoBfUv3lBAAQBeGuwVG+J7mxZ1
+JncgXUlThunLtm9o+Ac8IEaMKq8pmBt1wavkupLryYvHuL4Fg8U+rhzQ4nlfDsYD
+A9ryB1w4quonnsY1jy5M78QM82SQvqDNR6xNh2ZyeLzsW3+TwC8=
+=yglC
-----END PGP SIGNATURE-----
diff --git a/net-libs/glib-networking/files/2.56.0-Fix-building-tls-plugin-without-pkcs11.patch b/net-libs/glib-networking/files/2.56.0-Fix-building-tls-plugin-without-pkcs11.patch
new file mode 100644
index 00000000..b460b248
--- /dev/null
+++ b/net-libs/glib-networking/files/2.56.0-Fix-building-tls-plugin-without-pkcs11.patch
@@ -0,0 +1,57 @@
+From 4e9bfe7e32767be5a18fc38734da09607f13799a Mon Sep 17 00:00:00 2001
+From: Tom Schoonjans <Tom.Schoonjans@diamond.ac.uk>
+Date: Tue, 13 Mar 2018 16:57:03 +0000
+Subject: [PATCH] Fix building tls plugin without pkcs11
+
+https://bugzilla.gnome.org/show_bug.cgi?id=794292
+---
+ meson.build | 3 +--
+ tls/tests/meson.build | 7 ++++---
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index f923e53..0eb39e3 100644
+--- a/meson.build
++++ b/meson.build
+@@ -92,6 +92,7 @@ pkg = import('pkgconfig')
+ po_dir = join_paths(meson.source_root(), 'po')
+
+ top_inc = include_directories('.')
++tls_inc = include_directories('tls')
+
+ subdir('po')
+
+@@ -113,8 +114,6 @@ if enable_libproxy_support or enable_gnome_proxy_support
+ endif
+
+ if enable_pkcs11_support
+- tls_inc = include_directories('tls')
+-
+ subdir('tls/pkcs11')
+ endif
+
+diff --git a/tls/tests/meson.build b/tls/tests/meson.build
+index 7e1ae13..d3611c1 100644
+--- a/tls/tests/meson.build
++++ b/tls/tests/meson.build
+@@ -1,4 +1,7 @@
+-incs = [top_inc]
++incs = [
++ top_inc,
++ tls_inc
++]
+
+ deps = [
+ gio_dep,
+@@ -25,8 +28,6 @@ test_programs = [
+ ]
+
+ if enable_pkcs11_support
+- incs += tls_inc
+-
+ pkcs11_deps = deps + [
+ libgiopkcs11_dep,
+ pkcs11_dep
+--
+2.17.0
+
diff --git a/net-libs/glib-networking/glib-networking-2.56.0.ebuild b/net-libs/glib-networking/glib-networking-2.56.0.ebuild
new file mode 100644
index 00000000..ba7d5709
--- /dev/null
+++ b/net-libs/glib-networking/glib-networking-2.56.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit gnome-meson multilib-minimal virtualx
+
+DESCRIPTION="Network-related giomodules for glib"
+HOMEPAGE="https://git.gnome.org/browse/glib-networking/"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+IUSE="+gnome +libproxy smartcard test"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+
+RDEPEND="
+ >=dev-libs/glib-2.56.0:2[${MULTILIB_USEDEP}]
+ app-misc/ca-certificates
+ >=net-libs/gnutls-3:=[${MULTILIB_USEDEP}]
+ gnome? ( gnome-base/gsettings-desktop-schemas )
+ libproxy? ( >=net-libs/libproxy-0.4.11-r1:=[${MULTILIB_USEDEP}] )
+ smartcard? (
+ >=app-crypt/p11-kit-0.18.4[${MULTILIB_USEDEP}]
+ >=net-libs/gnutls-3:=[pkcs11,${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.19.4
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ test? ( sys-apps/dbus[X] )
+"
+
+PATCHES=(
+ "${FILESDIR}"/2.56.0-Fix-building-tls-plugin-without-pkcs11.patch
+)
+
+src_prepare() {
+ default
+ # Disable SSLv3 requiring fallback test, which fails with net-libs/gnutls[-sslv3], bug 595952
+ # https://bugzilla.gnome.org/show_bug.cgi?id=782853
+ sed -i -e '/\/tls\/connection\/fallback\/SSL/d' "${S}"/tls/tests/connection.c || die
+}
+
+multilib_src_configure() {
+ gnome-meson_src_configure \
+ -Dstatic_modules=false \
+ -Dca_certificates_path="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \
+ $(meson_use gnome gnome_proxy_support) \
+ $(meson_use libproxy libproxy_support) \
+ $(meson_use smartcard pkcs11_support)
+ # TODO gnutls is mandatory with meson
+}
+
+multilib_src_test() {
+ # XXX: non-native tests fail if glib-networking is already installed.
+ # have no idea what's wrong. would appreciate some help.
+ multilib_is_native_abi || return 0
+
+ virtx meson_src_test
+}
+
+multilib_src_install() {
+ gnome-meson_src_install
+}
+
+pkg_postinst() {
+ gnome-meson_pkg_postinst
+
+ multilib_pkg_postinst() {
+ gnome2_giomodule_cache_update \
+ || die "Update GIO modules cache failed (for ${ABI})"
+ }
+ multilib_foreach_abi multilib_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome-meson_pkg_postrm
+
+ multilib_pkg_postrm() {
+ gnome2_giomodule_cache_update \
+ || die "Update GIO modules cache failed (for ${ABI})"
+ }
+ multilib_foreach_abi multilib_pkg_postrm
+}