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 4F91613835A for ; Sun, 7 Jun 2020 20:16:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FF00E088A; Sun, 7 Jun 2020 20:16:19 +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 64156E088A for ; Sun, 7 Jun 2020 20:16:19 +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 44C3334F3D3 for ; Sun, 7 Jun 2020 20:16:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 09D1A268 for ; Sun, 7 Jun 2020 20:16:13 +0000 (UTC) From: "Mart Raudsepp" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mart Raudsepp" Message-ID: <1591560735.351654f1ae9347e20e6dbb6d9f45a20cd24bdea7.leio@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libnma/files/, net-libs/libnma/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libnma/Manifest net-libs/libnma/files/1.8.28-nma-ws-leak-fix.patch net-libs/libnma/libnma-1.8.28.ebuild net-libs/libnma/metadata.xml X-VCS-Directories: net-libs/libnma/files/ net-libs/libnma/ X-VCS-Committer: leio X-VCS-Committer-Name: Mart Raudsepp X-VCS-Revision: 351654f1ae9347e20e6dbb6d9f45a20cd24bdea7 X-VCS-Branch: master Date: Sun, 7 Jun 2020 20:16:13 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 435b489a-69ea-434c-af09-af0617b55ac1 X-Archives-Hash: 1e2759955344de7a279c14288421db68 commit: 351654f1ae9347e20e6dbb6d9f45a20cd24bdea7 Author: Mart Raudsepp gentoo org> AuthorDate: Sun Jun 7 19:25:43 2020 +0000 Commit: Mart Raudsepp gentoo org> CommitDate: Sun Jun 7 20:12:15 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=351654f1 net-libs/libnma: bump to 1.8.28 This is an upstream split from gnome-extra/nm-applet with USE=gcr renamed to USE=pkcs11 (for naming based on feature it enables). nm-applet will remain as the package providing the legacy applet and nm-connection-editor, while consumers linking or using introspection would commonly depend on this libnma package directly instead. Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Mart Raudsepp gentoo.org> net-libs/libnma/Manifest | 1 + net-libs/libnma/files/1.8.28-nma-ws-leak-fix.patch | 86 ++++++++++++++++++++++ net-libs/libnma/libnma-1.8.28.ebuild | 72 ++++++++++++++++++ net-libs/libnma/metadata.xml | 3 + 4 files changed, 162 insertions(+) diff --git a/net-libs/libnma/Manifest b/net-libs/libnma/Manifest new file mode 100644 index 00000000000..9428f91e9ef --- /dev/null +++ b/net-libs/libnma/Manifest @@ -0,0 +1 @@ +DIST libnma-1.8.28.tar.xz 1366584 BLAKE2B 598c2d310844930a5ed8b8d4b8bc0ae91193a8e62bccdb60050cc980cd37d198adf728b98694d9f1cf9f523998b865d9682fd271c88e434ead777ed5b69866b4 SHA512 d3996da3433493149edf0743b7f2280a83db2efc2228f04eddb773bbcb08ea2efcb640f781cb1d0a5cbabd8b25b1c612387682ff5239151d8ce249568e877f5b diff --git a/net-libs/libnma/files/1.8.28-nma-ws-leak-fix.patch b/net-libs/libnma/files/1.8.28-nma-ws-leak-fix.patch new file mode 100644 index 00000000000..8f2042a2568 --- /dev/null +++ b/net-libs/libnma/files/1.8.28-nma-ws-leak-fix.patch @@ -0,0 +1,86 @@ +From 55e33e4ce01c8b2b8dc98a5ee40a5636579cd577 Mon Sep 17 00:00:00 2001 +From: Beniamino Galvani +Date: Sat, 11 Apr 2020 15:44:17 +0200 +Subject: [PATCH] nma-ws: properly dispose wireless security objects + +Chain up to parent to properly free resources on dispose(). + +Fixes: b61cc1b9fa040 ("nma-ws: add") + +https://gitlab.gnome.org/GNOME/libnma/-/issues/7 +--- + src/nma-ws/nma-ws-802-1x.c | 2 ++ + src/nma-ws/nma-ws-leap.c | 2 ++ + src/nma-ws/nma-ws-sae.c | 2 ++ + src/nma-ws/nma-ws-wep-key.c | 2 ++ + src/nma-ws/nma-ws-wpa-psk.c | 2 ++ + 5 files changed, 10 insertions(+) + +diff --git a/src/nma-ws/nma-ws-802-1x.c b/src/nma-ws/nma-ws-802-1x.c +index ba348266..0c148ce5 100644 +--- a/src/nma-ws/nma-ws-802-1x.c ++++ b/src/nma-ws/nma-ws-802-1x.c +@@ -482,6 +482,8 @@ dispose (GObject *object) + g_clear_pointer (&self->secrets_hints, g_strfreev); + g_clear_pointer (&self->username, g_free); + g_clear_pointer (&self->password, g_free); ++ ++ G_OBJECT_CLASS (nma_ws_802_1x_parent_class)->dispose (object); + } + + static void +diff --git a/src/nma-ws/nma-ws-leap.c b/src/nma-ws/nma-ws-leap.c +index f90d43aa..df6d2dde 100644 +--- a/src/nma-ws/nma-ws-leap.c ++++ b/src/nma-ws/nma-ws-leap.c +@@ -260,6 +260,8 @@ dispose (GObject *object) + NMAWsLeap *self = NMA_WS_LEAP (object); + + g_clear_object (&self->connection); ++ ++ G_OBJECT_CLASS (nma_ws_leap_parent_class)->dispose (object); + } + + static void +diff --git a/src/nma-ws/nma-ws-sae.c b/src/nma-ws/nma-ws-sae.c +index e3454bbd..00fb6ff5 100644 +--- a/src/nma-ws/nma-ws-sae.c ++++ b/src/nma-ws/nma-ws-sae.c +@@ -252,6 +252,8 @@ dispose (GObject *object) + NMAWsSae *self = NMA_WS_SAE (object); + + g_clear_object (&self->connection); ++ ++ G_OBJECT_CLASS (nma_ws_sae_parent_class)->dispose (object); + } + + static void +diff --git a/src/nma-ws/nma-ws-wep-key.c b/src/nma-ws/nma-ws-wep-key.c +index cae8c272..992aabf7 100644 +--- a/src/nma-ws/nma-ws-wep-key.c ++++ b/src/nma-ws/nma-ws-wep-key.c +@@ -404,6 +404,8 @@ dispose (GObject *object) + NMAWsWepKey *self = NMA_WS_WEP_KEY (object); + + g_clear_object (&self->connection); ++ ++ G_OBJECT_CLASS (nma_ws_wep_key_parent_class)->dispose (object); + } + + static void +diff --git a/src/nma-ws/nma-ws-wpa-psk.c b/src/nma-ws/nma-ws-wpa-psk.c +index 1c73922a..27604960 100644 +--- a/src/nma-ws/nma-ws-wpa-psk.c ++++ b/src/nma-ws/nma-ws-wpa-psk.c +@@ -270,6 +270,8 @@ dispose (GObject *object) + NMAWsWpaPsk *self = NMA_WS_WPA_PSK (object); + + g_clear_object (&self->connection); ++ ++ G_OBJECT_CLASS (nma_ws_wpa_psk_parent_class)->dispose (object); + } + + static void +-- +2.20.1 + diff --git a/net-libs/libnma/libnma-1.8.28.ebuild b/net-libs/libnma/libnma-1.8.28.ebuild new file mode 100644 index 00000000000..140757c9ecb --- /dev/null +++ b/net-libs/libnma/libnma-1.8.28.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit gnome.org gnome2-utils meson xdg vala + +DESCRIPTION="NetworkManager GUI library" +HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" + +LICENSE="GPL-2+" +SLOT="0" +# pkcs11 default enabled as it's a small dep often already present by libnma users, and it was default enabled as IUSE=+gcr in nm-applet before +IUSE="gtk-doc +introspection +pkcs11 vala" +REQUIRED_USE="vala? ( introspection )" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +DEPEND=" + app-text/iso-codes + net-misc/mobile-broadband-provider-info + >=dev-libs/glib-2.38:2 + >=x11-libs/gtk+-3.10:3[introspection?] + >=net-misc/networkmanager-1.7[introspection?] + pkcs11? ( >=app-crypt/gcr-3.14:= ) + introspection? ( >=dev-libs/gobject-introspection-1.56:= ) +" +RDEPEND="${DEPEND} + !gnome@gentoo.org Gentoo GNOME Desktop + + Enable PKCS#11 support in certificate chooser via app-crypt/gcr +