[packages/pcmanfm] - added gcc14 patch; rel 5

mrozowik mrozowik at pld-linux.org
Sun Aug 4 02:07:16 CEST 2024


commit 7942e4059d4335c10b3ddf8b1ec855ab80bc5156
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date:   Sun Aug 4 00:07:06 2024 +0000

    - added gcc14 patch; rel 5

 pcmanfm-1.3.2-c99.patch | 21 +++++++++++++++++++++
 pcmanfm.spec            |  4 +++-
 2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/pcmanfm.spec b/pcmanfm.spec
index 1132843..800334c 100644
--- a/pcmanfm.spec
+++ b/pcmanfm.spec
@@ -7,11 +7,12 @@ Summary:	File manager for GTK
 Summary(pl.UTF-8):	Zarządca plików dla GTK
 Name:		pcmanfm
 Version:	1.3.2
-Release:	4
+Release:	5
 License:	GPL v2+
 Group:		X11/Applications
 Source0:	https://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.xz
 # Source0-md5:	ef7c4417d2697ef138d175db7aeae15a
+Patch0:		pcmanfm-1.3.2-c99.patch
 URL:		http://pcmanfm.sourceforge.net/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake
@@ -67,6 +68,7 @@ Plik nagłówkowy dla modułów pcmanfm.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__intltoolize}
diff --git a/pcmanfm-1.3.2-c99.patch b/pcmanfm-1.3.2-c99.patch
new file mode 100644
index 0000000..3da44c1
--- /dev/null
+++ b/pcmanfm-1.3.2-c99.patch
@@ -0,0 +1,21 @@
+--- a/src/desktop.c
++++ b/src/desktop.c
+@@ -1267,7 +1267,7 @@ static AtkObject *fm_desktop_accessible_ref_selection(AtkSelection *selection,
+         item = items->data;
+         if (item->item->is_selected)
+             if (i-- == 0)
+-                return g_object_ref(item);
++                return (AtkObject *)g_object_ref(item);
+     }
+     return NULL;
+ }
+@@ -1454,7 +1454,7 @@ static AtkObject *fm_desktop_accessible_ref_child(AtkObject *accessible,
+     item = g_list_nth_data(priv->items, index);
+     if (!item)
+         return NULL;
+-    return g_object_ref(item);
++    return (AtkObject *)g_object_ref(item);
+ }
+ 
+ static void fm_desktop_accessible_initialize(AtkObject *accessible, gpointer data)
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pcmanfm.git/commitdiff/7942e4059d4335c10b3ddf8b1ec855ab80bc5156



More information about the pld-cvs-commit mailing list