From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 541001382C5 for ; Sun, 15 Apr 2018 20:36:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1C91E0894; Sun, 15 Apr 2018 20:36:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 707B5E0894 for ; Sun, 15 Apr 2018 20:36:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39EA0335C7F for ; Sun, 15 Apr 2018 20:36:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CFF8F282 for ; Sun, 15 Apr 2018 20:36:50 +0000 (UTC) From: "Remi Cardona" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Remi Cardona" Message-ID: <1523824511.e31fc2a53b8b37c9ea2bdc9839b9bc6441d2004a.remi@gentoo> Subject: [gentoo-commits] proj/gnome:master commit in: net-libs/glib-networking/files/, net-libs/glib-networking/ X-VCS-Repository: proj/gnome X-VCS-Files: net-libs/glib-networking/files/2.56.0-Fix-building-tls-plugin-without-pkcs11.patch net-libs/glib-networking/glib-networking-2.56.0.ebuild X-VCS-Directories: net-libs/glib-networking/ net-libs/glib-networking/files/ X-VCS-Committer: remi X-VCS-Committer-Name: Remi Cardona X-VCS-Revision: e31fc2a53b8b37c9ea2bdc9839b9bc6441d2004a X-VCS-Branch: master Date: Sun, 15 Apr 2018 20:36:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f72e3959-362b-48a9-9c8f-a61d58364218 X-Archives-Hash: cc2d788016fd541163c55556e99f8a39 commit: e31fc2a53b8b37c9ea2bdc9839b9bc6441d2004a Author: RĂ©mi Cardona gentoo org> AuthorDate: Sun Apr 15 20:32:12 2018 +0000 Commit: Remi Cardona gentoo org> CommitDate: Sun Apr 15 20:35:11 2018 +0000 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=e31fc2a5 net-libs/glib-networking: bump to 2.56.0 Package-Manager: Portage-2.3.28, Repoman-2.3.9 Manifest-Sign-Key: 0xE0663D48103108F8 ....0-Fix-building-tls-plugin-without-pkcs11.patch | 57 +++++++++++++++ .../glib-networking/glib-networking-2.56.0.ebuild | 84 ++++++++++++++++++++++ 2 files changed, 141 insertions(+) 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 +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 +}