[gnome-builder] flatpak: work around type deadlocks
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: work around type deadlocks
- Date: Fri, 17 Mar 2017 20:38:53 +0000 (UTC)
commit 73f6666499ba0584106234ace367f686e53f1428
Author: Christian Hergert <chergert redhat com>
Date: Fri Mar 17 13:37:52 2017 -0700
flatpak: work around type deadlocks
Ensure that some dependent types are loaded early to reduce the chance that
we run into deadlock scenarios.
...rkaround-deadlocks-in-type-initialization.patch | 39 ++++++++++++++++++++
org.gnome.Builder.json | 4 ++
2 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/build/flatpak/0001-workaround-deadlocks-in-type-initialization.patch
b/build/flatpak/0001-workaround-deadlocks-in-type-initialization.patch
new file mode 100644
index 0000000..43f00cf
--- /dev/null
+++ b/build/flatpak/0001-workaround-deadlocks-in-type-initialization.patch
@@ -0,0 +1,39 @@
+From dc9d5e6df0c30341b99302a085d4fc8269a82942 Mon Sep 17 00:00:00 2001
+From: Christian Hergert <chergert redhat com>
+Date: Fri, 17 Mar 2017 13:35:14 -0700
+Subject: [PATCH] workaround deadlocks in type initialization
+
+---
+ gtksourceview/gtksourcefileloader.c | 2 ++
+ gtksourceview/gtksourcefilesaver.c | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/gtksourceview/gtksourcefileloader.c b/gtksourceview/gtksourcefileloader.c
+index 0376b9b6..5bd11abe 100644
+--- a/gtksourceview/gtksourcefileloader.c
++++ b/gtksourceview/gtksourcefileloader.c
+@@ -447,6 +447,8 @@ gtk_source_file_loader_class_init (GtkSourceFileLoaderClass *klass)
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
++
++ g_type_ensure (GTK_SOURCE_TYPE_BUFFER_OUTPUT_STREAM);
+ }
+
+ static void
+diff --git a/gtksourceview/gtksourcefilesaver.c b/gtksourceview/gtksourcefilesaver.c
+index dd75e091..0e3f20f9 100644
+--- a/gtksourceview/gtksourcefilesaver.c
++++ b/gtksourceview/gtksourcefilesaver.c
+@@ -464,6 +464,8 @@ gtk_source_file_saver_class_init (GtkSourceFileSaverClass *klass)
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
++
++ g_type_ensure (GTK_SOURCE_TYPE_BUFFER_INPUT_STREAM);
+ }
+
+ static void
+--
+2.12.0
+
diff --git a/org.gnome.Builder.json b/org.gnome.Builder.json
index fbec881..e19a1e1 100644
--- a/org.gnome.Builder.json
+++ b/org.gnome.Builder.json
@@ -249,6 +249,10 @@
"branch": "gnome-3-24",
"type": "git",
"url": "https://git.gnome.org/browse/gtksourceview"
+ },
+ {
+ "type": "patch",
+ "path": "build/flatpak/0001-workaround-deadlocks-in-type-initialization.patch"
}
]
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]