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 A82C2138359 for ; Sun, 23 Aug 2020 20:09:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7037E0845; Sun, 23 Aug 2020 20:09:29 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 C394DE0845 for ; Sun, 23 Aug 2020 20:09:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 8F610340775 for ; Sun, 23 Aug 2020 20:09:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 315632EC for ; Sun, 23 Aug 2020 20:09:27 +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: <1598213282.8d8a3892c9a16b39689ab274474c12362e191d14.leio@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: gui-libs/libhandy/files/, gui-libs/libhandy/ X-VCS-Repository: repo/gentoo X-VCS-Files: gui-libs/libhandy/files/0.0.13-glade3.36-compat1.patch gui-libs/libhandy/files/0.0.13-glade3.36-compat2.patch gui-libs/libhandy/libhandy-0.0.13.ebuild X-VCS-Directories: gui-libs/libhandy/files/ gui-libs/libhandy/ X-VCS-Committer: leio X-VCS-Committer-Name: Mart Raudsepp X-VCS-Revision: 8d8a3892c9a16b39689ab274474c12362e191d14 X-VCS-Branch: master Date: Sun, 23 Aug 2020 20:09:27 +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: 543eac6a-2502-4b7a-a117-eeb9f2eb61fd X-Archives-Hash: e7224db7d77cacd482e78faa7da3fb0d commit: 8d8a3892c9a16b39689ab274474c12362e191d14 Author: Mart Raudsepp gentoo org> AuthorDate: Sun Aug 23 20:07:49 2020 +0000 Commit: Mart Raudsepp gentoo org> CommitDate: Sun Aug 23 20:08:02 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d8a3892 gui-libs/libhandy: fix USE=glade build against newer dev-util/glade Closes: https://bugs.gentoo.org/737600 Package-Manager: Portage-2.3.103, Repoman-2.3.20 Signed-off-by: Mart Raudsepp gentoo.org> .../libhandy/files/0.0.13-glade3.36-compat1.patch | 40 ++++++++++++++++ .../libhandy/files/0.0.13-glade3.36-compat2.patch | 56 ++++++++++++++++++++++ gui-libs/libhandy/libhandy-0.0.13.ebuild | 4 ++ 3 files changed, 100 insertions(+) diff --git a/gui-libs/libhandy/files/0.0.13-glade3.36-compat1.patch b/gui-libs/libhandy/files/0.0.13-glade3.36-compat1.patch new file mode 100644 index 00000000000..13321778ff2 --- /dev/null +++ b/gui-libs/libhandy/files/0.0.13-glade3.36-compat1.patch @@ -0,0 +1,40 @@ +From c5ada7063a68cc05ed1b783a9769557b8e2a83ed Mon Sep 17 00:00:00 2001 +From: Alberto Fanjul +Date: Thu, 7 May 2020 12:43:51 +0200 +Subject: [PATCH 1/2] glade: Adapt to Glade 3.36 API changes + +Fixes https://source.puri.sm/Librem5/libhandy/issues/267. +--- + glade/glade-hdy-header-group.c | 2 +- + glade/glade-hdy-swipe-group.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/glade/glade-hdy-header-group.c b/glade/glade-hdy-header-group.c +index be6a9de..aa83c6b 100644 +--- a/glade/glade-hdy-header-group.c ++++ b/glade/glade-hdy-header-group.c +@@ -43,7 +43,7 @@ glade_hdy_header_group_read_widgets (GladeWidget *widget, GladeXmlNode *node) + string = widget_name; + } else if (widget_name != NULL) { + tmp = +- g_strdup_printf ("%s%s%s", string, GPC_OBJECT_DELIMITER, ++ g_strdup_printf ("%s%s%s", string, GLADE_PROPERTY_DEF_OBJECT_DELIMITER, + widget_name); + string = (g_free (string), tmp); + g_free (widget_name); +diff --git a/glade/glade-hdy-swipe-group.c b/glade/glade-hdy-swipe-group.c +index 0b42798..ff909b0 100644 +--- a/glade/glade-hdy-swipe-group.c ++++ b/glade/glade-hdy-swipe-group.c +@@ -45,7 +45,7 @@ glade_hdy_swipe_group_read_widgets (GladeWidget *widget, + string = widget_name; + } else if (widget_name != NULL) { + tmp = +- g_strdup_printf ("%s%s%s", string, GPC_OBJECT_DELIMITER, ++ g_strdup_printf ("%s%s%s", string, GLADE_PROPERTY_DEF_OBJECT_DELIMITER, + widget_name); + string = (g_free (string), tmp); + g_free (widget_name); +-- +2.20.1 + diff --git a/gui-libs/libhandy/files/0.0.13-glade3.36-compat2.patch b/gui-libs/libhandy/files/0.0.13-glade3.36-compat2.patch new file mode 100644 index 00000000000..a3b2f891499 --- /dev/null +++ b/gui-libs/libhandy/files/0.0.13-glade3.36-compat2.patch @@ -0,0 +1,56 @@ +From 2fb8c6a62b52aa85266f1cf0e8cf6dfa1a7f194f Mon Sep 17 00:00:00 2001 +From: Adrien Plazas +Date: Mon, 11 May 2020 13:38:36 +0200 +Subject: [PATCH 2/2] glade: Support both 3.24 and 3.36 + +leio: Backported to 0.0.13 +--- + glade/glade-hdy-header-group.c | 9 +++++++++ + glade/glade-hdy-swipe-group.c | 11 +++++++++++ + 2 files changed, 20 insertions(+) + +diff --git a/glade/glade-hdy-header-group.c b/glade/glade-hdy-header-group.c +index aa83c6b..bd620ad 100644 +--- a/glade/glade-hdy-header-group.c ++++ b/glade/glade-hdy-header-group.c +@@ -14,6 +14,15 @@ + #include + #include + ++/* Guess wether we are using a Glade version older than 3.36. ++ * ++ * If yes, redefine some symbols which got renamed. ++ */ ++#ifndef GLADE_PROPERTY_DEF_OBJECT_DELIMITER ++#define GLADE_PROPERTY_DEF_OBJECT_DELIMITER GPC_OBJECT_DELIMITER ++#define glade_widget_action_get_def glade_widget_action_get_class ++#endif ++ + #define GLADE_TAG_HEADERGROUP_WIDGETS "headerbars" + #define GLADE_TAG_HEADERGROUP_WIDGET "headerbar" + +diff --git a/glade/glade-hdy-swipe-group.c b/glade/glade-hdy-swipe-group.c +index ff909b0..5b165a2 100644 +--- a/glade/glade-hdy-swipe-group.c ++++ b/glade/glade-hdy-swipe-group.c +@@ -15,6 +15,17 @@ + #include + #include + ++/* Guess wether we are using a Glade version older than 3.36. ++ * ++ * If yes, redefine some symbols which got renamed. ++ */ ++#ifndef GLADE_PROPERTY_DEF_OBJECT_DELIMITER ++#define GLADE_PROPERTY_DEF_OBJECT_DELIMITER GPC_OBJECT_DELIMITER ++#define glade_widget_action_get_def glade_widget_action_get_class ++#endif ++ ++#define GLADE_TAG_HEADERGROUP_WIDGETS "headerbars" ++#define GLADE_TAG_HEADERGROUP_WIDGET "headerbar" + #define PROP_SWIPEABLES "swipeables" + #define GLADE_TAG_SWIPEGROUP_SWIPEABLES "swipeables" + #define GLADE_TAG_SWIPEGROUP_SWIPEABLE "swipeable" +-- +2.20.1 + diff --git a/gui-libs/libhandy/libhandy-0.0.13.ebuild b/gui-libs/libhandy/libhandy-0.0.13.ebuild index 4f69d327c06..07b2ca7fab2 100644 --- a/gui-libs/libhandy/libhandy-0.0.13.ebuild +++ b/gui-libs/libhandy/libhandy-0.0.13.ebuild @@ -37,6 +37,10 @@ BDEPEND=" app-text/docbook-xml-dtd:4.3 ) " +PATCHES=( + "${FILESDIR}"/${PV}-glade3.36-compat{1,2}.patch +) + src_prepare() { use vala && vala_src_prepare xdg_src_prepare