[packages/gnome-recipes] - added git patch to fix warnings fatal with gcc 14; release 2 (gspell 1.14)
qboosh
qboosh at pld-linux.org
Thu Sep 26 18:11:27 CEST 2024
commit 498903853387a7f19296bd3c2dcbf06129cc4298
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Sep 26 18:14:20 2024 +0200
- added git patch to fix warnings fatal with gcc 14; release 2 (gspell 1.14)
gnome-recipes-warnings.patch | 69 ++++++++++++++++++++++++++++++++++++++++++++
gnome-recipes.spec | 4 ++-
2 files changed, 72 insertions(+), 1 deletion(-)
---
diff --git a/gnome-recipes.spec b/gnome-recipes.spec
index 8599584..8b54800 100644
--- a/gnome-recipes.spec
+++ b/gnome-recipes.spec
@@ -2,11 +2,12 @@ Summary: A GNOME cookbook
Summary(pl.UTF-8): Książka kucharska GNOME
Name: gnome-recipes
Version: 2.0.4
-Release: 1
+Release: 2
License: GPL v3+
Group: X11/Applications
Source0: https://download.gnome.org/sources/gnome-recipes/2.0/%{name}-%{version}.tar.xz
# Source0-md5: 2e854234e88c6320cb167db9bd8270e0
+Patch0: %{name}-warnings.patch
URL: https://wiki.gnome.org/Apps/Recipes
BuildRequires: appstream-glib
# C11 (-std=gnu11)
@@ -59,6 +60,7 @@ i udostępnianie ich znajomym.
%prep
%setup -q
+%patch0 -p1
%build
%meson build
diff --git a/gnome-recipes-warnings.patch b/gnome-recipes-warnings.patch
new file mode 100644
index 0000000..b271161
--- /dev/null
+++ b/gnome-recipes-warnings.patch
@@ -0,0 +1,69 @@
+From c0304675f63a33737b24fdf37e06c6b154a91a31 Mon Sep 17 00:00:00 2001
+From: Matthew Leeds <matthew.leeds at endlessm.com>
+Date: Sun, 22 Mar 2020 15:19:25 -0700
+Subject: [PATCH] Fix a few more compiler warnings
+
+Use g_ptr_array_unref() where appropriate, and cast to GtkTreeModel
+since GtkListStore implements that.
+---
+ src/gr-cooking-view.c | 2 +-
+ src/gr-edit-page.c | 2 +-
+ src/gr-image-viewer.c | 2 +-
+ src/gr-ingredients-viewer-row.c | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/gr-cooking-view.c b/src/gr-cooking-view.c
+index ed1ca6bb..709a1b6d 100644
+--- a/src/gr-cooking-view.c
++++ b/src/gr-cooking-view.c
+@@ -663,7 +663,7 @@ gr_cooking_view_stop (GrCookingView *view,
+ container_remove_all (GTK_CONTAINER (view->timer_box));
+
+ g_clear_pointer (&view->instructions, g_free);
+- g_clear_pointer (&view->images, g_array_unref);
++ g_clear_pointer (&view->images, g_ptr_array_unref);
+ g_ptr_array_set_size (view->steps, 0);
+
+ if (stop_timers) {
+diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
+index 856680aa..a0256230 100644
+--- a/src/gr-edit-page.c
++++ b/src/gr-edit-page.c
+@@ -946,7 +946,7 @@ get_units_model (GrEditPage *page)
+ -1);
+ }
+
+- return g_object_ref (store);
++ return GTK_TREE_MODEL (g_object_ref (store));
+ }
+
+ static gboolean
+diff --git a/src/gr-image-viewer.c b/src/gr-image-viewer.c
+index 34355df8..aeedeb2a 100644
+--- a/src/gr-image-viewer.c
++++ b/src/gr-image-viewer.c
+@@ -127,7 +127,7 @@ gr_image_viewer_finalize (GObject *object)
+ g_clear_pointer (&viewer->additions, g_ptr_array_unref);
+ g_clear_pointer (&viewer->removals, g_ptr_array_unref);
+
+- g_clear_pointer (&viewer->images, g_array_unref);
++ g_clear_pointer (&viewer->images, g_ptr_array_unref);
+ remove_hide_timeout (viewer);
+ g_clear_object (&viewer->gesture);
+
+diff --git a/src/gr-ingredients-viewer-row.c b/src/gr-ingredients-viewer-row.c
+index 27230535..bea73769 100644
+--- a/src/gr-ingredients-viewer-row.c
++++ b/src/gr-ingredients-viewer-row.c
+@@ -764,7 +764,7 @@ get_units_model (GrIngredientsViewerRow *row)
+ }
+ }
+
+- return g_object_ref (store);
++ return GTK_TREE_MODEL (g_object_ref (store));
+ }
+
+ static void
+--
+GitLab
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnome-recipes.git/commitdiff/498903853387a7f19296bd3c2dcbf06129cc4298
More information about the pld-cvs-commit
mailing list