diff --git a/multimedia/video/cheese/files/cheese-gcc14.patch b/multimedia/video/cheese/files/cheese-gcc14.patch new file mode 100644 index 0000000000..fa712f94d5 --- /dev/null +++ b/multimedia/video/cheese/files/cheese-gcc14.patch @@ -0,0 +1,27 @@ +From d8b8f27730cca948a5e5346b8ed2db0793bb16e7 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Fri, 19 Jan 2024 21:31:33 +0100 +Subject: [PATCH] libcheese: Add GtkWidget cast to avoid an + incompatible-pointer-types error + +This is required for compilation with GCC 14. +--- + libcheese/cheese-flash.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libcheese/cheese-flash.c b/libcheese/cheese-flash.c +index 59959dbd..e4023221 100644 +--- a/libcheese/cheese-flash.c ++++ b/libcheese/cheese-flash.c +@@ -132,7 +132,7 @@ cheese_flash_set_property (GObject *object, + GObject *parent; + parent = g_value_get_object (value); + if (object != NULL) +- priv->parent = g_object_ref (parent); ++ priv->parent = GTK_WIDGET (g_object_ref (parent)); + else + priv->parent = NULL; + } +-- +GitLab + diff --git a/multimedia/video/cheese/files/cheese-json.patch b/multimedia/video/cheese/files/cheese-json.patch new file mode 100644 index 0000000000..76efb8e01f --- /dev/null +++ b/multimedia/video/cheese/files/cheese-json.patch @@ -0,0 +1,32 @@ +From 5b4aad3123992badf7f1bfb4c23bff390b9c9494 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= +Date: Wed, 4 Sep 2024 14:01:58 +0000 +Subject: [PATCH] Fix JSON validation + +json-glib 1.10 is more strict when parsing the JSON data. + +Closes: https://gitlab.gnome.org/GNOME/cheese/-/issues/183 +--- + data/cheese-viewport.json | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/data/cheese-viewport.json b/data/cheese-viewport.json +index cf03fcec..132b68d2 100644 +--- a/data/cheese-viewport.json ++++ b/data/cheese-viewport.json +@@ -53,9 +53,9 @@ + "type": "ClutterActor", + "children": + [ +- 'video_preview', +- 'countdown_layer', +- 'error_layer' ++ "video_preview", ++ "countdown_layer", ++ "error_layer" + ] + }, + { +-- +GitLab + diff --git a/multimedia/video/cheese/pspec.xml b/multimedia/video/cheese/pspec.xml index e63639215f..09a3ce4195 100644 --- a/multimedia/video/cheese/pspec.xml +++ b/multimedia/video/cheese/pspec.xml @@ -35,11 +35,14 @@ libgee-devel gnome-video-effects gst-plugins-bad-devel + gnome-video-effects-devel - cheese-43.0-buildfix.patch + cheese-43.0-buildfix.patch + cheese-json.patch +