aboutsummaryrefslogtreecommitdiff
path: root/desktop/flatpak/3405.patch
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2020-02-03 15:20:59 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-08 15:03:31 +0700
commit418f529ea95a638b7199ff933b982e249c0dbf47 (patch)
tree24ccc64581c434cf06d30e50047404d285af54a9 /desktop/flatpak/3405.patch
parent7d523f911d16b76e8251b6ea15cf85634dbc9e67 (diff)
desktop/flatpak: fix build
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
Diffstat (limited to 'desktop/flatpak/3405.patch')
-rw-r--r--desktop/flatpak/3405.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/desktop/flatpak/3405.patch b/desktop/flatpak/3405.patch
new file mode 100644
index 0000000000000..c7d1fb4eeba43
--- /dev/null
+++ b/desktop/flatpak/3405.patch
@@ -0,0 +1,32 @@
+From e3232bb3d0649f3fdce01091e1948fb8e906f9eb Mon Sep 17 00:00:00 2001
+From: Matthew Leeds <matthew.leeds@endlessm.com>
+Date: Mon, 3 Feb 2020 11:24:41 -0800
+Subject: [PATCH] portal: Add g_autoptr() defines for old GLib versions
+
+We don't need to check for GLib 2.44 (the first release with g_autoptr()
+support) since Flatpak requires that version in configure.ac.
+
+Fixes https://github.com/flatpak/flatpak/issues/3403
+---
+ portal/flatpak-portal.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/portal/flatpak-portal.c b/portal/flatpak-portal.c
+index aa0d2d399..060987b7f 100644
+--- a/portal/flatpak-portal.c
++++ b/portal/flatpak-portal.c
+@@ -50,6 +50,14 @@
+ #include "portal-impl.h"
+ #include "flatpak-permission-dbus.h"
+
++/* GLib 2.47.92 was the first release to define these in gdbus-codegen */
++#if !GLIB_CHECK_VERSION (2, 47, 92)
++G_DEFINE_AUTOPTR_CLEANUP_FUNC (PortalFlatpakProxy, g_object_unref)
++G_DEFINE_AUTOPTR_CLEANUP_FUNC (PortalFlatpakSkeleton, g_object_unref)
++G_DEFINE_AUTOPTR_CLEANUP_FUNC (PortalFlatpakUpdateMonitorProxy, g_object_unref)
++G_DEFINE_AUTOPTR_CLEANUP_FUNC (PortalFlatpakUpdateMonitorSkeleton, g_object_unref)
++#endif
++
+ #define IDLE_TIMEOUT_SECS 10 * 60
+
+ static GHashTable *client_pid_data_hash = NULL;