From 4c92a4c501c4c2b5bf737816b04f321a886e9ce8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 16:13:40 +0000 Subject: [PATCH 01/34] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libfm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index 1e6c384..ab3ba0a 100644 --- a/libfm.spec +++ b/libfm.spec @@ -40,7 +40,7 @@ Name: libfm Version: %{mainver} -Release: %{fedorarel}%{?dist} +Release: %{fedorarel}%{?dist}.1 Summary: GIO-based library for file manager-like programs License: GPLv2+ @@ -449,6 +449,9 @@ fi %endif %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 1.3.2-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Oct 28 2021 Mamoru TASAKA - 1.3.2-2 - Make fm_config_load_from_key_file don't replace string key value when subsequent config file does not contain such key but previous key had From d2fb1c9997fd6adde1995b2e5f0ce7194aef856d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 17:48:59 +0000 Subject: [PATCH 02/34] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libfm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index ab3ba0a..60b87ab 100644 --- a/libfm.spec +++ b/libfm.spec @@ -40,7 +40,7 @@ Name: libfm Version: %{mainver} -Release: %{fedorarel}%{?dist}.1 +Release: %{fedorarel}%{?dist}.2 Summary: GIO-based library for file manager-like programs License: GPLv2+ @@ -449,6 +449,9 @@ fi %endif %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 1.3.2-2.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 1.3.2-2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From d655de6001e7eb71abddcd4af5acdb985d05e046 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 16:20:26 +0000 Subject: [PATCH 03/34] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libfm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index 60b87ab..77cd5ed 100644 --- a/libfm.spec +++ b/libfm.spec @@ -40,7 +40,7 @@ Name: libfm Version: %{mainver} -Release: %{fedorarel}%{?dist}.2 +Release: %{fedorarel}%{?dist}.3 Summary: GIO-based library for file manager-like programs License: GPLv2+ @@ -449,6 +449,9 @@ fi %endif %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 1.3.2-2.3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Jul 21 2022 Fedora Release Engineering - 1.3.2-2.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 413f45c49ffd21a34a31265b29ee1ec2e2e2999f Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Mon, 13 Mar 2023 10:11:59 +0900 Subject: [PATCH 04/34] rename release macro to make rpmdev-bumprelease work --- libfm.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libfm.spec b/libfm.spec index 77cd5ed..96ac700 100644 --- a/libfm.spec +++ b/libfm.spec @@ -28,10 +28,10 @@ %endif %if 0%{?userelease} >= 1 -%global fedorarel %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}} +%global baserelease %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}} %endif %if 0%{?usegitbare} >= 1 -%global fedorarel %{?prever:0.}%{mainrel}.D%{gitdate}git%{shortcommit} +%global baserelease %{?prever:0.}%{mainrel}.D%{gitdate}git%{shortcommit} %endif %global build_doc 1 @@ -40,7 +40,7 @@ Name: libfm Version: %{mainver} -Release: %{fedorarel}%{?dist}.3 +Release: %{baserelease}%{?dist}.3 Summary: GIO-based library for file manager-like programs License: GPLv2+ From 5ebd9fc8fb4cd73f6da12eee630ed3cf657f34db Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 24 Mar 2023 16:25:09 +0900 Subject: [PATCH 05/34] fix baserelease usage --- libfm.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libfm.spec b/libfm.spec index 96ac700..f96b6a0 100644 --- a/libfm.spec +++ b/libfm.spec @@ -16,7 +16,7 @@ %undefine prever %global prerpmver %(echo "%{?prever}" | sed -e 's|-||g') -%global mainrel 2 +%global baserelease 2 %if 0%{?usegitbare} >= 1 %global gitcommit 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 @@ -28,10 +28,10 @@ %endif %if 0%{?userelease} >= 1 -%global baserelease %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}} +%global fedorarel %{?prever:0.}%{baserelease}%{?prever:.%{prerpmver}} %endif %if 0%{?usegitbare} >= 1 -%global baserelease %{?prever:0.}%{mainrel}.D%{gitdate}git%{shortcommit} +%global fedorarel %{?prever:0.}%{baserelease}.D%{gitdate}git%{shortcommit} %endif %global build_doc 1 @@ -40,7 +40,7 @@ Name: libfm Version: %{mainver} -Release: %{baserelease}%{?dist}.3 +Release: %{fedorarel}%{?dist} Summary: GIO-based library for file manager-like programs License: GPLv2+ From a996d8ac658f33658f851f5d7d291afd064e801e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jul 2023 10:52:00 +0000 Subject: [PATCH 06/34] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- libfm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index f96b6a0..925ff03 100644 --- a/libfm.spec +++ b/libfm.spec @@ -16,7 +16,7 @@ %undefine prever %global prerpmver %(echo "%{?prever}" | sed -e 's|-||g') -%global baserelease 2 +%global baserelease 3 %if 0%{?usegitbare} >= 1 %global gitcommit 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 @@ -449,6 +449,9 @@ fi %endif %changelog +* Thu Jul 20 2023 Fedora Release Engineering - 1.3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Fedora Release Engineering - 1.3.2-2.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 24413512a769e90b39e042cd8b42cdc25e017096 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Mon, 11 Dec 2023 21:04:54 +0900 Subject: [PATCH 07/34] SPDX migration --- libfm.spec | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/libfm.spec b/libfm.spec index 925ff03..40e5a2b 100644 --- a/libfm.spec +++ b/libfm.spec @@ -16,7 +16,7 @@ %undefine prever %global prerpmver %(echo "%{?prever}" | sed -e 's|-||g') -%global baserelease 3 +%global baserelease 4 %if 0%{?usegitbare} >= 1 %global gitcommit 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 @@ -43,7 +43,24 @@ Version: %{mainver} Release: %{fedorarel}%{?dist} Summary: GIO-based library for file manager-like programs -License: GPLv2+ +# src/actions/ GPL-2.0-or-later +# src/base/ LGPL-2.1-or-later +# src/demo/ GPL-2.0-or-later +# src/extra/ LGPL-2.1-or-later +# src/fm-gtk.{c,h} GPL-2.0-or-later +# src/gtk-compat.c GPL-2.0-or-later +# src/*.c (rest) LGPL-2.1-or-later +# src/gio/ GPL-2.0-or-later +# src/gtk/exo/ LGPL-2.1-or-later AND GPL-2.0-or-later +# src/gtk/ GPL-2.0-or-later AND LGPL-2.1-or-later +# src/job/ LGPL-2.1-or-later +# src/modules/ GPL-2.0-or-later +# src/tests/ GPL-2.0-or-later +# src/tools/ GPL-2.0-or-later +# src/udisks/ GPL-2.0-or-later + +# SPDX confirmed +License: LGPL-2.1-or-later AND GPL-2.0-or-later URL: http://pcmanfm.sourceforge.net/ %if 0%{?userelease} >= 1 Source0: http://downloads.sourceforge.net/pcmanfm/%{name}-%{mainver}%{?prever}.tar.xz @@ -229,7 +246,7 @@ done %endif cat %PATCH1 | git am -%patch1000 -p1 -Z +%patch -P1000 -p1 -Z # Patch1000 needs below sh autogen.sh git commit -m "Use gtk version specific module directory" -a @@ -449,6 +466,9 @@ fi %endif %changelog +* Mon Dec 11 2023 Mamoru TASAKA - 1.3.2-4 +- SPDX migration + * Thu Jul 20 2023 Fedora Release Engineering - 1.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 67c7e9518bbf96f1a41880163bae235443b459b5 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 19 Jan 2024 10:27:53 +0900 Subject: [PATCH 08/34] Change -Wincompatible-pointer-types from error to warning --- libfm.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index 40e5a2b..d33ad12 100644 --- a/libfm.spec +++ b/libfm.spec @@ -1,3 +1,6 @@ +# Skip -Werror=incompatilbe-pointer-types +%global build_type_safety_c 2 + # Review: https://bugzilla.redhat.com/show_bug.cgi?id=567257 # Upstream git: @@ -16,7 +19,7 @@ %undefine prever %global prerpmver %(echo "%{?prever}" | sed -e 's|-||g') -%global baserelease 4 +%global baserelease 5 %if 0%{?usegitbare} >= 1 %global gitcommit 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 @@ -466,6 +469,9 @@ fi %endif %changelog +* Fri Jan 19 2024 Mamoru TASAKA - 1.3.2-5 +- Change -Wincompatible-pointer-types from error to warning + * Mon Dec 11 2023 Mamoru TASAKA - 1.3.2-4 - SPDX migration From fc6f3ba65f669f060f5433b7228f25de3367b21e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 04:05:26 +0000 Subject: [PATCH 09/34] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- libfm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index d33ad12..684e032 100644 --- a/libfm.spec +++ b/libfm.spec @@ -19,7 +19,7 @@ %undefine prever %global prerpmver %(echo "%{?prever}" | sed -e 's|-||g') -%global baserelease 5 +%global baserelease 6 %if 0%{?usegitbare} >= 1 %global gitcommit 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 @@ -469,6 +469,9 @@ fi %endif %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 1.3.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Mamoru TASAKA - 1.3.2-5 - Change -Wincompatible-pointer-types from error to warning From 2e4ec8cd873de0d81e1f046f40424f1b01197cea Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jan 2024 02:10:08 +0000 Subject: [PATCH 10/34] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- libfm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index 684e032..bddb04d 100644 --- a/libfm.spec +++ b/libfm.spec @@ -19,7 +19,7 @@ %undefine prever %global prerpmver %(echo "%{?prever}" | sed -e 's|-||g') -%global baserelease 6 +%global baserelease 7 %if 0%{?usegitbare} >= 1 %global gitcommit 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 @@ -469,6 +469,9 @@ fi %endif %changelog +* Thu Jan 25 2024 Fedora Release Engineering - 1.3.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Jan 21 2024 Fedora Release Engineering - 1.3.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From cfa79c87aa34b09351c20ec804e1f6d83edbb811 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 27 Feb 2024 15:29:11 +0900 Subject: [PATCH 11/34] Handle gcc14 -Werror=incompatible-pointer-types Make vala regenerate C source related to -Werror=incompatible-pointer-types workaround for vala source --- ...14-Werror-incompatible-pointer-types.patch | 56 +++++++++++++++++ libfm.spec | 60 +++++++++++-------- 2 files changed, 90 insertions(+), 26 deletions(-) create mode 100644 libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch diff --git a/libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch b/libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch new file mode 100644 index 0000000..7389021 --- /dev/null +++ b/libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch @@ -0,0 +1,56 @@ +From a86353b8ef8ddd5c8a8a0de9b00a103e8f5e5c52 Mon Sep 17 00:00:00 2001 +From: libfm Fedora maintainer +Date: Fri, 23 Feb 2024 14:56:20 +0900 +Subject: [PATCH] FIX: support gcc14 -Werror=incompatible-pointer-types + +gcc14 now defaults to -Werror=incompatible-pointer-types . +To support this, cast GTK related objects for assignment +properly. +--- + src/gtk/exo/exo-icon-view.c | 2 +- + src/gtk/fm-dnd-dest.c | 2 +- + src/gtk/fm-standard-view.c | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/gtk/exo/exo-icon-view.c b/src/gtk/exo/exo-icon-view.c +index 3ce9809..79e1c7a 100644 +--- a/src/gtk/exo/exo-icon-view.c ++++ b/src/gtk/exo/exo-icon-view.c +@@ -2819,7 +2819,7 @@ exo_icon_view_key_press_event (GtkWidget *widget, + /* allocate a new event to forward */ + new_event = gdk_event_copy ((GdkEvent *) event); + g_object_unref (G_OBJECT (new_event->key.window)); +- new_event->key.window = g_object_ref (G_OBJECT (gtk_widget_get_window (icon_view->priv->search_entry))); ++ new_event->key.window = GDK_WINDOW(g_object_ref (G_OBJECT (gtk_widget_get_window (icon_view->priv->search_entry)))); + + /* send the event to the search entry. If the "preedit-changed" signal is + * emitted during this event, priv->search_imcontext_changed will be set. +diff --git a/src/gtk/fm-dnd-dest.c b/src/gtk/fm-dnd-dest.c +index 95d310d..ce75275 100644 +--- a/src/gtk/fm-dnd-dest.c ++++ b/src/gtk/fm-dnd-dest.c +@@ -458,7 +458,7 @@ static GdkDragAction _ask_action_on_drop(GtkWidget *widget, + gtk_action_set_sensitive(act, FALSE); + } + } +- ri.menu = g_object_ref(gtk_ui_manager_get_widget(ui, "/popup")); ++ ri.menu = GTK_MENU(g_object_ref(gtk_ui_manager_get_widget(ui, "/popup"))); + g_signal_connect(ri.menu, "selection-done", G_CALLBACK(gtk_widget_destroy), NULL); + unmap_handler = g_signal_connect(ri.menu, "unmap", + G_CALLBACK(run_unmap_handler), &ri); +diff --git a/src/gtk/fm-standard-view.c b/src/gtk/fm-standard-view.c +index e0ff5a0..df92025 100644 +--- a/src/gtk/fm-standard-view.c ++++ b/src/gtk/fm-standard-view.c +@@ -637,7 +637,7 @@ static inline void create_icon_view(FmStandardView* fv, GList* sels) + "text", FM_FOLDER_MODEL_COL_NAME ); + if(fv->renderer_text) + g_object_unref(fv->renderer_text); +- fv->renderer_text = g_object_ref_sink(render); ++ fv->renderer_text = FM_CELL_RENDERER_TEXT(g_object_ref_sink(render)); + exo_icon_view_set_search_column((ExoIconView*)fv->view, FM_FOLDER_MODEL_COL_NAME); + g_signal_connect(fv->view, "item-activated", G_CALLBACK(on_icon_view_item_activated), fv); + g_signal_connect(fv->view, "selection-changed", G_CALLBACK(on_sel_changed), fv); +-- +2.43.2 + diff --git a/libfm.spec b/libfm.spec index bddb04d..dd8fb48 100644 --- a/libfm.spec +++ b/libfm.spec @@ -1,6 +1,3 @@ -# Skip -Werror=incompatilbe-pointer-types -%global build_type_safety_c 2 - # Review: https://bugzilla.redhat.com/show_bug.cgi?id=567257 # Upstream git: @@ -14,36 +11,36 @@ %global userelease 1 %endif -%global bootstrap 0 +%global git_version %{nil} +%global git_ver_rpm %{nil} +%global git_builddir %{nil} + %global mainver 1.3.2 -%undefine prever -%global prerpmver %(echo "%{?prever}" | sed -e 's|-||g') -%global baserelease 7 +%if 0%{?use_gitbare} +%global gittardate 20210204 +%global gittartime 1524 -%if 0%{?usegitbare} >= 1 -%global gitcommit 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 -%global gitdate 20210202 -%global shortcommit %(c=%{gitcommit}; echo ${c:0:7}) +%global gitbaredate 20210202 +%global git_rev 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 +%global git_short %(echo %{git_rev} | cut -c-8) +%global git_version %{gitbaredate}git%{git_short} -%global tarballdate 20210204 -%global tarballtime 1524 +%global git_ver_rpm ^%{git_version} +%global git_builddir -%{git_version} %endif -%if 0%{?userelease} >= 1 -%global fedorarel %{?prever:0.}%{baserelease}%{?prever:.%{prerpmver}} -%endif -%if 0%{?usegitbare} >= 1 -%global fedorarel %{?prever:0.}%{baserelease}.D%{gitdate}git%{shortcommit} -%endif +%global main_version 1.3.2 + +%global bootstrap 0 %global build_doc 1 %undefine _changelog_trimtime Name: libfm -Version: %{mainver} -Release: %{fedorarel}%{?dist} +Version: %{main_version}%{git_ver_rpm} +Release: 8%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -78,6 +75,8 @@ Source10: create-libfm-git-bare-tarball.sh # when subsequent config file does not contain such key but previous key had # (related to bug 2011471) Patch1: libfm-1.3.2-0001-fm_config_load_from_key_file-don-t-replace-string-va.patch +# Support gcc14 -Werror=incompatible-pointer-types +Patch2: libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch # http://sourceforge.net/p/pcmanfm/feature-requests/385/ #Patch1000: http://sourceforge.net/p/pcmanfm/feature-requests/_discuss/thread/0a50a386/597e/attachment/libfm-1.2.3-moduledir-gtkspecific-v02.patch Patch1000: libfm-1.3.0.2-moduledir-gtkspecific-v03.patch @@ -213,16 +212,16 @@ This package containg development documentation files for %{name}. %prep %if 0%{?userelease} >= 1 -%setup -q -n %{name}-%{version}%{?prever} +%setup -q -n %{name}-%{main_version}%{?prever} cp -a %{SOURCE1} . #%%patch0 -p1 -b .orig git init %endif -%if 0%{?usegitbare} >= 1 -%setup -q -c -T -a 0 -git clone ./libfm.git/ -cd libfm +%if 0%{?use_gitbare} +%setup -q -c -T -n %{name}-%{main_version}%{git_builddir} -a 0 +git clone ./%{name}.git/ +cd %{name} cp -a [A-Z]* .. %endif @@ -249,6 +248,7 @@ done %endif cat %PATCH1 | git am +cat %PATCH2 | git am %patch -P1000 -p1 -Z # Patch1000 needs below sh autogen.sh @@ -261,6 +261,9 @@ sed -i.libdir_syssearch \ configure git commit -m "Tweak library search path spec not to inject rpath" -a +# Tell vala to regenerate C source +find . -name \*.vala | xargs touch + %build %if 0%{?usegitbare} >= 1 cd libfm @@ -469,6 +472,11 @@ fi %endif %changelog +* Fri Feb 23 2024 Mamoru TASAKA - 1.3.2-8 +- Handle gcc14 -Werror=incompatible-pointer-types +- Make vala regenerate C source related to -Werror=incompatible-pointer-types + workaround for vala source + * Thu Jan 25 2024 Fedora Release Engineering - 1.3.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 5043da67fd854eb0c28fd5ca841f600dbb1f76bb Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 27 Feb 2024 16:24:00 +0900 Subject: [PATCH 12/34] Update to the latest git (20230916git5346a539) --- .gitignore | 49 +------------------ libfm-1.3.0.2-moduledir-gtkspecific-v03.patch | 4 +- libfm.spec | 47 +++++++++--------- sources | 2 +- 4 files changed, 30 insertions(+), 72 deletions(-) diff --git a/.gitignore b/.gitignore index e79c0ce..b334c15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,47 +1,2 @@ -libfm-0.1.12.tar.gz -/libfm-0.1.14.tar.gz -/libfm-0.1.15-git3ec0a717adde65f262b5bb2b33ae5eb56e9aea6f.tar.gz -/libfm-0.1.15-git197c7e1b8e3e439a5e4f3f004a3447aef43b298b.tar.gz -/libfm-0.1.15-gitdebea4a90d17ec6fd5876564d28977a3c3875924.tar.gz -/libfm-0.1.15-D20110422git30d03d27e4.tar.gz -/libfm-0.1.15-D20110427gita1f63c3114.tar.gz -/libfm-0.1.15-D20110529gitcd79d6228b.tar.gz -/libfm-0.1.15-D20110807gitd22b41fd2f.tar.gz -/libfm-0.1.16.tar.gz -/libfm-0.1.17.tar.gz -/libfm-1.0.tar.gz -/libfm-1.0.1.tar.gz -/libfm-1.1.0.tar.gz -/libfm-1.1.1.tar.gz -/libfm-1.1.2.tar.gz -/libfm-1.1.2.1.tar.gz -/libfm-1.1.2.2.tar.gz -/libfm-1.1.3.tar.xz -/libfm-1.1.4.tar.xz -/libfm-1.2.0-rc1.tar.xz -/libfm-1.2.0.tar.xz -/libfm-1.2.1.tar.xz -/libfm-1.2.2.tar.xz -/libfm-1.2.3.tar.xz -/libfm-1.2.3-699810d3bd0c5d9d508fcd9aa3a65442f2afee3f.tar.gz -/libfm-1.2.3-577806e29d2ec27ce5fee9dc816566fb4e23b155.tar.gz -/libfm-1.2.3-D20150525git8f38f90e04b648637509f2fa2d4208027ae59b5c.tar.gz -/libfm-1.2.3-D20150607gite1de98ccba316605e14d8cfc06df9a55752cdcec.tar.gz -/libfm-1.2.3-D20150713gitf47c9ae7ae7e1c5ff9742b8a6ca49fdb6f55f98d.tar.gz -/libfm-1.2.3-D20150728git47d0c1dd7d59c83188f11bfd6aef4a855f4f5c39.tar.gz -/libfm-1.2.4.tar.xz -/libfm-1.2.4-D20160618gitb22c0995e76936d62e246a12e5a0cf0ccf31361e.tar.gz -/libfm-1.2.4-D20160627git2a537414def87ebd75024a74030e60582cd78c45.tar.gz -/libfm-1.2.4-D20161017git82b3a1a201aae22860f501e3f7e75b46f8bcacd7.tar.gz -/libfm-1.2.4-D20161105gitc2989af0154256c35c5def4b9f5a758c8a3878ca.tar.gz -/libfm-1.2.4-D20161204git275559f196db6340d4ae6119a10d9b0efedaf84f.tar.gz -/libfm-1.2.4-D20161206gita24389f804ae95f737bbb4239be00bc99a62180b.tar.gz -/libfm-1.2.4-D20161209gitab583d7800bbc308f2852384f87c2357f49b01cd.tar.gz -/libfm-1.2.5.tar.xz -/libfm-20171230T1949.tar.gz -/libfm-1.3.0.2.tar.xz -/libfm-1.3.1.tar.xz -/libfm-20200407T1514.tar.gz -/libfm-20210201T2130.tar.gz -/libfm-20210204T1524.tar.gz -/libfm-1.3.2.tar.xz +/libfm-*.tar.gz +/libfm-*.tar.xz diff --git a/libfm-1.3.0.2-moduledir-gtkspecific-v03.patch b/libfm-1.3.0.2-moduledir-gtkspecific-v03.patch index b70a7e5..d240e49 100644 --- a/libfm-1.3.0.2-moduledir-gtkspecific-v03.patch +++ b/libfm-1.3.0.2-moduledir-gtkspecific-v03.patch @@ -22,8 +22,8 @@ + LIBFM_GTK_MODULE_DIR_SUFFIX="" LIBFM_PREF_APPS= fi - AC_SUBST(GTK_CFLAGS) -@@ -141,6 +144,7 @@ AC_SUBST(GTK_LIBS) + if test "$ac_with_gtk" = "3.0"; then +@@ -144,6 +147,7 @@ AC_SUBST(GTK_LIBS) AC_SUBST(LIBFM_GTK_LTLIBRARIES) AC_SUBST(LIBFM_PREF_APPS) AC_SUBST(LIBFM_GTK_PC) diff --git a/libfm.spec b/libfm.spec index dd8fb48..0caf0fd 100644 --- a/libfm.spec +++ b/libfm.spec @@ -3,26 +3,26 @@ # Upstream git: # git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/libfm # add bootstrap, need to build menu-cache in epel7 -%global userelease 1 -%global usegitbare 0 +%global use_release 0 +%global use_gitbare 1 -%if 0%{?usegitbare} < 1 +%if 0%{?use_gitbare} < 1 # force -%global userelease 1 +%global use_release 0 %endif %global git_version %{nil} %global git_ver_rpm %{nil} %global git_builddir %{nil} -%global mainver 1.3.2 +%global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20210204 -%global gittartime 1524 +%global gittardate 20240227 +%global gittartime 1529 -%global gitbaredate 20210202 -%global git_rev 54cd5fc0af2407a70717ed3e8577d3ae9ae1a849 +%global gitbaredate 20230916 +%global git_rev 5346a5390a0881d5713a71e15f371132680056ee %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -40,7 +40,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 8%{?dist} +Release: 1%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -62,12 +62,12 @@ Summary: GIO-based library for file manager-like programs # SPDX confirmed License: LGPL-2.1-or-later AND GPL-2.0-or-later URL: http://pcmanfm.sourceforge.net/ -%if 0%{?userelease} >= 1 +%if 0%{?use_release} >= 1 Source0: http://downloads.sourceforge.net/pcmanfm/%{name}-%{mainver}%{?prever}.tar.xz Source1: https://raw.githubusercontent.com/lxde/libfm/master/autogen.sh %endif -%if 0%{?usegitbare} >= 1 -Source0: libfm-%{tarballdate}T%{tarballtime}.tar.gz +%if 0%{?use_gitbare} >= 1 +Source0: libfm-%{gittardate}T%{gittartime}.tar.gz %endif Source10: create-libfm-git-bare-tarball.sh @@ -211,7 +211,7 @@ This package containg development documentation files for %{name}. %prep -%if 0%{?userelease} >= 1 +%if 0%{?use_release} >= 1 %setup -q -n %{name}-%{main_version}%{?prever} cp -a %{SOURCE1} . #%%patch0 -p1 -b .orig @@ -228,15 +228,15 @@ cp -a [A-Z]* .. git config user.name "libfm Fedora maintainer" git config user.email "libfm-maintainer@fedoraproject.org" -%if 0%{?userelease} >= 1 +%if 0%{?use_release} >= 1 # Once call autogen.sh to make git status clean sh autogen.sh git add . git commit -m "Init tree" -q %endif -%if 0%{?usegitbare} >= 1 -git checkout -b %{version}-fedora %{gitcommit} +%if 0%{?use_gitbare} >= 1 +git checkout -b %{main_version}-fedora %{git_rev} cat > GITHASH <= 1 +%if 0%{?use_gitbare} >= 1 cd libfm %endif -%if 0%{?usegitbare} >= 1 +%if 0%{?use_gitbare} >= 1 # Workaround # Once generate files anyway ./configure @@ -312,7 +312,7 @@ done %install TOPDIR=$(pwd) -%if 0%{?usegitbare} >= 1 +%if 0%{?use_gitbare} >= 1 cd libfm %endif @@ -373,7 +373,7 @@ popd /usr/lib/rpm/check-rpaths %check -%if 0%{?usegitbare} >= 1 +%if 0%{?use_gitbare} >= 1 cd libfm %endif @@ -472,6 +472,9 @@ fi %endif %changelog +* Tue Feb 27 2024 Mamoru TASAKA - 1.3.2^20230916git5346a539-1 +- Update to the latest git (20230916git5346a539) + * Fri Feb 23 2024 Mamoru TASAKA - 1.3.2-8 - Handle gcc14 -Werror=incompatible-pointer-types - Make vala regenerate C source related to -Werror=incompatible-pointer-types diff --git a/sources b/sources index 803f17a..06d4435 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-1.3.2.tar.xz) = eaa3358cd1d8f611f8f4ac882e01a716b4dc32729b641417e1100aa039db3c57ae57ccc45df7dcac4f0570cd88684beba7752a5586c1d0598b1bc7502e99f4be +SHA512 (libfm-20240227T1529.tar.gz) = 716cf3eccee621ba6fd53342db483c456d08e663fccb36e2528c482eae986ed4b76ef535e14824048b60f08b28e19b55fc6204ed1d012a38c6117cc858e5c438 From 6c04728e9bb1e2da3c12dca02a0af6016278ae6a Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 1 Mar 2024 14:21:30 +0900 Subject: [PATCH 13/34] add notes --- libfm.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/libfm.spec b/libfm.spec index 0caf0fd..617f31b 100644 --- a/libfm.spec +++ b/libfm.spec @@ -76,6 +76,7 @@ Source10: create-libfm-git-bare-tarball.sh # (related to bug 2011471) Patch1: libfm-1.3.2-0001-fm_config_load_from_key_file-don-t-replace-string-va.patch # Support gcc14 -Werror=incompatible-pointer-types +# https://github.com/lxde/libfm/pull/101 Patch2: libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch # http://sourceforge.net/p/pcmanfm/feature-requests/385/ #Patch1000: http://sourceforge.net/p/pcmanfm/feature-requests/_discuss/thread/0a50a386/597e/attachment/libfm-1.2.3-moduledir-gtkspecific-v02.patch From 04ed106f9b5186ae4eb304de9c5e816b4f8c540b Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 14 May 2024 17:35:01 +0900 Subject: [PATCH 14/34] Restore timestamps for git ls files --- libfm.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index 617f31b..bac1d5a 100644 --- a/libfm.spec +++ b/libfm.spec @@ -40,7 +40,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 1%{?dist} +Release: 2%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -223,6 +223,17 @@ git init %setup -q -c -T -n %{name}-%{main_version}%{git_builddir} -a 0 git clone ./%{name}.git/ cd %{name} + +# Restore timestamps +set +x +echo "Restore timestamps" +git ls-tree -r --name-only HEAD | while read f +do + unixtime=$(git log -n 1 --pretty='%ct' -- $f) + touch -d "@${unixtime}" $f +done +set -x + cp -a [A-Z]* .. %endif @@ -473,6 +484,9 @@ fi %endif %changelog +* Tue May 14 2024 Mamoru TASAKA - 1.3.2^20230916git5346a539-2 +- Restore timestamps for git ls files + * Tue Feb 27 2024 Mamoru TASAKA - 1.3.2^20230916git5346a539-1 - Update to the latest git (20230916git5346a539) From a41a5219de07994adf6831386e4763d96814925d Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 4 Jun 2024 17:24:03 +0900 Subject: [PATCH 15/34] add missing percent --- libfm.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index bac1d5a..6b4fba5 100644 --- a/libfm.spec +++ b/libfm.spec @@ -369,7 +369,7 @@ done pushd INSTDIR-gtk2 find . -name '*.la' -exec rm -f {} ';' -rm -f .{_libdir}/pkgconfig/libfm-gtk3.pc +rm -f .%{_libdir}/pkgconfig/libfm-gtk3.pc diff -urNp .%{_includedir}/%{name}-1.0 $RPM_BUILD_ROOT%{_includedir}/%name-1.0 diff -urNp .%{_datadir}/%{name} $RPM_BUILD_ROOT/%{_datadir}/%{name} From ad54cbaac6b3bfee838777aee7d754d65400ef50 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 4 Jun 2024 17:46:36 +0900 Subject: [PATCH 16/34] Ignore po/ directory make check error with autoconf 2.72 --- libfm.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libfm.spec b/libfm.spec index 6b4fba5..36338b0 100644 --- a/libfm.spec +++ b/libfm.spec @@ -40,7 +40,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 2%{?dist} +Release: 3%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -273,6 +273,12 @@ sed -i.libdir_syssearch \ configure git commit -m "Tweak library search path spec not to inject rpath" -a || true +# Ignore po/ directory make check error +sed -i.error po/Makefile.in.in \ + -e '\@check@,\@fi@s|exit 1|exit 0|' +git commit -m "ignore po/ directory make check error" -a || true + + # Tell vala to regenerate C source find . -name \*.vala | xargs touch @@ -389,7 +395,6 @@ popd cd libfm %endif -find INSTDIR-gtk* -name \*.ui >> po/POTFILES.skip for ver in \ 2 \ 3 \ @@ -484,6 +489,9 @@ fi %endif %changelog +* Tue Jun 04 2024 Mamoru TASAKA - 1.3.2^20230916git5346a539-3 +- Ignore po/ directory make check error with autoconf 2.72 + * Tue May 14 2024 Mamoru TASAKA - 1.3.2^20230916git5346a539-2 - Restore timestamps for git ls files From 331076b2f5b44ee96bd33fcc28575e7e28667fc8 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 18 Jul 2024 12:25:09 +0900 Subject: [PATCH 17/34] update to the latest git --- libfm.spec | 13 ++++++++----- sources | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/libfm.spec b/libfm.spec index 36338b0..ad679aa 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20240227 -%global gittartime 1529 +%global gittardate 20240718 +%global gittartime 1045 -%global gitbaredate 20230916 -%global git_rev 5346a5390a0881d5713a71e15f371132680056ee +%global gitbaredate 20240714 +%global git_rev ee33947ee71719e5750cbe832159a7ecc90e0add %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -40,7 +40,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 3%{?dist} +Release: 1%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -489,6 +489,9 @@ fi %endif %changelog +* Thu Jul 18 2024 Mamoru TASAKA - 1.3.2^20240714gitee33947e-1 +- Update to the latest git (20240714gitee33947e) + * Tue Jun 04 2024 Mamoru TASAKA - 1.3.2^20230916git5346a539-3 - Ignore po/ directory make check error with autoconf 2.72 diff --git a/sources b/sources index 06d4435..ed4a9f2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20240227T1529.tar.gz) = 716cf3eccee621ba6fd53342db483c456d08e663fccb36e2528c482eae986ed4b76ef535e14824048b60f08b28e19b55fc6204ed1d012a38c6117cc858e5c438 +SHA512 (libfm-20240718T1045.tar.gz) = 58470e49d3a47ac3951ba047d798d625d804777ff7b8ceb034e7ce231cdb85628e0ddfec959b008b86dc66c46b096f5ad975eb047b2de0e325f292a335d05a22 From fee91f19c3a96f12e174be02dca0238fa9e761a9 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 13 Aug 2024 14:51:58 +0900 Subject: [PATCH 18/34] Update to the latest git --- ...14-Werror-incompatible-pointer-types.patch | 56 ------------------- libfm.spec | 15 +++-- sources | 2 +- 3 files changed, 8 insertions(+), 65 deletions(-) delete mode 100644 libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch diff --git a/libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch b/libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch deleted file mode 100644 index 7389021..0000000 --- a/libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch +++ /dev/null @@ -1,56 +0,0 @@ -From a86353b8ef8ddd5c8a8a0de9b00a103e8f5e5c52 Mon Sep 17 00:00:00 2001 -From: libfm Fedora maintainer -Date: Fri, 23 Feb 2024 14:56:20 +0900 -Subject: [PATCH] FIX: support gcc14 -Werror=incompatible-pointer-types - -gcc14 now defaults to -Werror=incompatible-pointer-types . -To support this, cast GTK related objects for assignment -properly. ---- - src/gtk/exo/exo-icon-view.c | 2 +- - src/gtk/fm-dnd-dest.c | 2 +- - src/gtk/fm-standard-view.c | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/src/gtk/exo/exo-icon-view.c b/src/gtk/exo/exo-icon-view.c -index 3ce9809..79e1c7a 100644 ---- a/src/gtk/exo/exo-icon-view.c -+++ b/src/gtk/exo/exo-icon-view.c -@@ -2819,7 +2819,7 @@ exo_icon_view_key_press_event (GtkWidget *widget, - /* allocate a new event to forward */ - new_event = gdk_event_copy ((GdkEvent *) event); - g_object_unref (G_OBJECT (new_event->key.window)); -- new_event->key.window = g_object_ref (G_OBJECT (gtk_widget_get_window (icon_view->priv->search_entry))); -+ new_event->key.window = GDK_WINDOW(g_object_ref (G_OBJECT (gtk_widget_get_window (icon_view->priv->search_entry)))); - - /* send the event to the search entry. If the "preedit-changed" signal is - * emitted during this event, priv->search_imcontext_changed will be set. -diff --git a/src/gtk/fm-dnd-dest.c b/src/gtk/fm-dnd-dest.c -index 95d310d..ce75275 100644 ---- a/src/gtk/fm-dnd-dest.c -+++ b/src/gtk/fm-dnd-dest.c -@@ -458,7 +458,7 @@ static GdkDragAction _ask_action_on_drop(GtkWidget *widget, - gtk_action_set_sensitive(act, FALSE); - } - } -- ri.menu = g_object_ref(gtk_ui_manager_get_widget(ui, "/popup")); -+ ri.menu = GTK_MENU(g_object_ref(gtk_ui_manager_get_widget(ui, "/popup"))); - g_signal_connect(ri.menu, "selection-done", G_CALLBACK(gtk_widget_destroy), NULL); - unmap_handler = g_signal_connect(ri.menu, "unmap", - G_CALLBACK(run_unmap_handler), &ri); -diff --git a/src/gtk/fm-standard-view.c b/src/gtk/fm-standard-view.c -index e0ff5a0..df92025 100644 ---- a/src/gtk/fm-standard-view.c -+++ b/src/gtk/fm-standard-view.c -@@ -637,7 +637,7 @@ static inline void create_icon_view(FmStandardView* fv, GList* sels) - "text", FM_FOLDER_MODEL_COL_NAME ); - if(fv->renderer_text) - g_object_unref(fv->renderer_text); -- fv->renderer_text = g_object_ref_sink(render); -+ fv->renderer_text = FM_CELL_RENDERER_TEXT(g_object_ref_sink(render)); - exo_icon_view_set_search_column((ExoIconView*)fv->view, FM_FOLDER_MODEL_COL_NAME); - g_signal_connect(fv->view, "item-activated", G_CALLBACK(on_icon_view_item_activated), fv); - g_signal_connect(fv->view, "selection-changed", G_CALLBACK(on_sel_changed), fv); --- -2.43.2 - diff --git a/libfm.spec b/libfm.spec index ad679aa..239e467 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20240718 -%global gittartime 1045 +%global gittardate 20240813 +%global gittartime 1440 -%global gitbaredate 20240714 -%global git_rev ee33947ee71719e5750cbe832159a7ecc90e0add +%global gitbaredate 20240812 +%global git_rev fbcd183335729fa3e8dd6a837c13a23ff3271000 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -75,9 +75,6 @@ Source10: create-libfm-git-bare-tarball.sh # when subsequent config file does not contain such key but previous key had # (related to bug 2011471) Patch1: libfm-1.3.2-0001-fm_config_load_from_key_file-don-t-replace-string-va.patch -# Support gcc14 -Werror=incompatible-pointer-types -# https://github.com/lxde/libfm/pull/101 -Patch2: libfm-1.3.2-0002-FIX-support-gcc14-Werror-incompatible-pointer-types.patch # http://sourceforge.net/p/pcmanfm/feature-requests/385/ #Patch1000: http://sourceforge.net/p/pcmanfm/feature-requests/_discuss/thread/0a50a386/597e/attachment/libfm-1.2.3-moduledir-gtkspecific-v02.patch Patch1000: libfm-1.3.0.2-moduledir-gtkspecific-v03.patch @@ -260,7 +257,6 @@ done %endif cat %PATCH1 | git am -cat %PATCH2 | git am %patch -P1000 -p1 -Z # Patch1000 needs below sh autogen.sh @@ -489,6 +485,9 @@ fi %endif %changelog +* Tue Aug 13 2024 Mamoru TASAKA - 1.3.2^20240812gitfbcd1833-1 +- Update to the latest git + * Thu Jul 18 2024 Mamoru TASAKA - 1.3.2^20240714gitee33947e-1 - Update to the latest git (20240714gitee33947e) diff --git a/sources b/sources index ed4a9f2..be6f930 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20240718T1045.tar.gz) = 58470e49d3a47ac3951ba047d798d625d804777ff7b8ceb034e7ce231cdb85628e0ddfec959b008b86dc66c46b096f5ad975eb047b2de0e325f292a335d05a22 +SHA512 (libfm-20240813T1440.tar.gz) = a865bc79c87152743e11b6dc5929d8ce8fb265c214379a388ac03eb4c6d9ef8d038c9d866c478f3cc2b9e0c9052c5292a3626d45a472b3d235123d35c433b5ee From 944eebdf07846bb7a965822ae17970dcfb54f9e3 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 25 Aug 2024 16:46:10 +0900 Subject: [PATCH 19/34] Update to the latest git Update to the latest git Update to the latest git Update to the latest git Update to the latest git Update to the latest git Update to the latest git Update to the latest git Update to the latest git --- libfm.spec | 11 +++++++---- sources | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libfm.spec b/libfm.spec index 239e467..94b2bd0 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20240813 -%global gittartime 1440 +%global gittardate 20240825 +%global gittartime 1555 -%global gitbaredate 20240812 -%global git_rev fbcd183335729fa3e8dd6a837c13a23ff3271000 +%global gitbaredate 20240823 +%global git_rev 4d2f7b41407f769e2ef4df5e74e736921c90aa92 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -485,6 +485,9 @@ fi %endif %changelog +* Sun Aug 25 2024 Mamoru TASAKA - 1.3.2^20240823git4d2f7b41-1 +- Update to the latest git + * Tue Aug 13 2024 Mamoru TASAKA - 1.3.2^20240812gitfbcd1833-1 - Update to the latest git diff --git a/sources b/sources index be6f930..bf5c92f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20240813T1440.tar.gz) = a865bc79c87152743e11b6dc5929d8ce8fb265c214379a388ac03eb4c6d9ef8d038c9d866c478f3cc2b9e0c9052c5292a3626d45a472b3d235123d35c433b5ee +SHA512 (libfm-20240825T1555.tar.gz) = e70dcbba08b5927a37b0c17b1714593f6d8e370b7cb81bf3c94e3657b1bca1eb7e7b9483fa36d73bd1ba11aff1a9a9e13346a908c8cfd4e8ea682124338c2127 From cc7b8fca7b4e9623dc52dedbf0c1a3b453506e86 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 10 Nov 2024 16:25:35 +0900 Subject: [PATCH 20/34] Update to the latest git --- libfm.spec | 23 ++++++++++++++++------- sources | 2 +- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/libfm.spec b/libfm.spec index 94b2bd0..3339a5f 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20240825 -%global gittartime 1555 +%global gittardate 20241110 +%global gittartime 1605 -%global gitbaredate 20240823 -%global git_rev 4d2f7b41407f769e2ef4df5e74e736921c90aa92 +%global gitbaredate 20241107 +%global git_rev d9935ec1d06f335c1a97fc0128c89a6af92a6d63 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -258,10 +258,16 @@ done cat %PATCH1 | git am %patch -P1000 -p1 -Z -# Patch1000 needs below -sh autogen.sh git commit -m "Use gtk version specific module directory" -a +# Need reporting upstream +# ref: https://github.com/lxde/libfm/commit/1af95bd8f26cab6848a74b7e02b53c6c79fb53a5 +sed -i Makefile.am \ + -e '\@docs/reference/libfm/libfm-sections.txt@d' +git commit -m "Remove files entry to be regenerated" -a || true + +sh autogen.sh +git commit -m "save modified files" -a || true # treak rpath sed -i.libdir_syssearch \ @@ -274,10 +280,10 @@ sed -i.error po/Makefile.in.in \ -e '\@check@,\@fi@s|exit 1|exit 0|' git commit -m "ignore po/ directory make check error" -a || true - # Tell vala to regenerate C source find . -name \*.vala | xargs touch + %build %if 0%{?use_gitbare} >= 1 cd libfm @@ -485,6 +491,9 @@ fi %endif %changelog +* Sun Nov 10 2024 Mamoru TASAKA - 1.3.2^20241107gitd9935ec1-1 +- Update to the latest git + * Sun Aug 25 2024 Mamoru TASAKA - 1.3.2^20240823git4d2f7b41-1 - Update to the latest git diff --git a/sources b/sources index bf5c92f..6ec5343 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20240825T1555.tar.gz) = e70dcbba08b5927a37b0c17b1714593f6d8e370b7cb81bf3c94e3657b1bca1eb7e7b9483fa36d73bd1ba11aff1a9a9e13346a908c8cfd4e8ea682124338c2127 +SHA512 (libfm-20241110T1605.tar.gz) = 435fa35e1c3ab0762af999ca9286726eb0cc03f19dcfcbcec152199c96d72e1bba8174020c6bbd681249f60555c5dd2a42c3ae110ac620bb528cf60cd66b27f4 From e39844d7ed8c04207f60fea99f63066a35b4bf0f Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 6 Dec 2024 11:15:50 +0900 Subject: [PATCH 21/34] Update to the latest git --- libfm.spec | 13 ++++++++----- sources | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/libfm.spec b/libfm.spec index 3339a5f..b0ef39b 100644 --- a/libfm.spec +++ b/libfm.spec @@ -8,7 +8,7 @@ %if 0%{?use_gitbare} < 1 # force -%global use_release 0 +%global use_release 1 %endif %global git_version %{nil} @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20241110 -%global gittartime 1605 +%global gittardate 20241206 +%global gittartime 1042 -%global gitbaredate 20241107 -%global git_rev d9935ec1d06f335c1a97fc0128c89a6af92a6d63 +%global gitbaredate 20241203 +%global git_rev cea660713e9ca9aa71fddcd818c6c4899ca7cc34 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -491,6 +491,9 @@ fi %endif %changelog +* Fri Dec 06 2024 Mamoru TASAKA - 1.3.2^20241203gitcea66071-1 +- Update to the latest git + * Sun Nov 10 2024 Mamoru TASAKA - 1.3.2^20241107gitd9935ec1-1 - Update to the latest git diff --git a/sources b/sources index 6ec5343..a3f5421 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20241110T1605.tar.gz) = 435fa35e1c3ab0762af999ca9286726eb0cc03f19dcfcbcec152199c96d72e1bba8174020c6bbd681249f60555c5dd2a42c3ae110ac620bb528cf60cd66b27f4 +SHA512 (libfm-20241206T1042.tar.gz) = d953a1e9997204973aa8ddc57e5e154b64c50ba7fba88c261a92ca89d8f20167f41fca7e1b1ed64f7da8cfebbaf107982a14ddcec6e964164321f449335e9324 From 796b8f4969e60ed76f964d2c6036aa8edbc1a0cb Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 19 Dec 2024 15:32:05 +0900 Subject: [PATCH 22/34] Update to the latest git --- libfm.spec | 11 +++++++---- sources | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libfm.spec b/libfm.spec index b0ef39b..6af2a1c 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20241206 -%global gittartime 1042 +%global gittardate 20241219 +%global gittartime 1522 -%global gitbaredate 20241203 -%global git_rev cea660713e9ca9aa71fddcd818c6c4899ca7cc34 +%global gitbaredate 20241216 +%global git_rev fb651b87d2be140f0096458d51581faa1ebf86f4 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -491,6 +491,9 @@ fi %endif %changelog +* Thu Dec 19 2024 Mamoru TASAKA - 1.3.2^20241216gitfb651b87-1 +- Update to the latest git + * Fri Dec 06 2024 Mamoru TASAKA - 1.3.2^20241203gitcea66071-1 - Update to the latest git diff --git a/sources b/sources index a3f5421..803b03e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20241206T1042.tar.gz) = d953a1e9997204973aa8ddc57e5e154b64c50ba7fba88c261a92ca89d8f20167f41fca7e1b1ed64f7da8cfebbaf107982a14ddcec6e964164321f449335e9324 +SHA512 (libfm-20241219T1522.tar.gz) = 18d8712cabf6d58cb244df00f77410dea5da71f24c5329c6ba784f480003af4ecaf08b5d687a8873eeb9e17dd311c04f2e3f4092f7be057a7d26cf14a62af2be From aa6c3673fd47b26fc554788064d460c7094e3b05 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 25 Dec 2024 17:43:56 +0900 Subject: [PATCH 23/34] Update to the latest git Restore libfm.so ABI (bug 2333955) --- libfm-pr105-Restore-ABI-for-libfm.so.patch | 78 ++++++++++++++++++++++ libfm.spec | 18 +++-- sources | 2 +- 3 files changed, 92 insertions(+), 6 deletions(-) create mode 100644 libfm-pr105-Restore-ABI-for-libfm.so.patch diff --git a/libfm-pr105-Restore-ABI-for-libfm.so.patch b/libfm-pr105-Restore-ABI-for-libfm.so.patch new file mode 100644 index 0000000..52e762d --- /dev/null +++ b/libfm-pr105-Restore-ABI-for-libfm.so.patch @@ -0,0 +1,78 @@ +From e91fe2ee51832f82843768757cc02125ad17735d Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA +Date: Wed, 25 Dec 2024 17:33:19 +0900 +Subject: [PATCH] Restore ABI for libfm.so + +The following 2 commit: +https://github.com/lxde/libfm/commit/b0545e0e7bd347dbb8001c153f8bd46718d0c852 +https://github.com/lxde/libfm/commit/2854a4ce01f1e2868f2fa2f453eca5fe3fd8339c +broke libfm.so ABI because this changed the size of `struct _FmConfig` . + +Restore libfm.so ABI compared to before. +Fixes #104 . +--- + src/base/fm-config.c | 7 +++++-- + src/base/fm-config.h | 8 +++----- + 2 files changed, 8 insertions(+), 7 deletions(-) + +diff --git a/src/base/fm-config.c b/src/base/fm-config.c +index c4a99019..ecb2db32 100644 +--- a/src/base/fm-config.c ++++ b/src/base/fm-config.c +@@ -260,10 +260,12 @@ static void _parse_drop_default_action(GKeyFile *kf, gint *action) + void fm_config_load_from_key_file(FmConfig* cfg, GKeyFile* kf) + { + char **strv; ++ gboolean bool_val; + + fm_key_file_get_bool(kf, "config", "use_trash", &cfg->use_trash); + fm_key_file_get_bool(kf, "config", "single_click", &cfg->single_click); +- fm_key_file_get_bool(kf, "config", "middle_click", &cfg->middle_click); ++ fm_key_file_get_bool(kf, "config", "middle_click", &bool_val); ++ cfg->middle_click = bool_val; + if(cfg->single_click && cfg->middle_click) + cfg->middle_click = FALSE; + fm_key_file_get_int(kf, "config", "auto_selection_delay", &cfg->auto_selection_delay); +@@ -280,7 +282,8 @@ void fm_config_load_from_key_file(FmConfig* cfg, GKeyFile* kf) + fm_key_file_get_bool(kf, "config", "advanced_mode", &cfg->advanced_mode); + fm_key_file_get_bool(kf, "config", "si_unit", &cfg->si_unit); + fm_key_file_get_bool(kf, "config", "force_startup_notify", &cfg->force_startup_notify); +- fm_key_file_get_bool(kf, "config", "date_iso_8601", &cfg->date_iso_8601); ++ fm_key_file_get_bool(kf, "config", "date_iso_8601", &bool_val); ++ cfg->date_iso_8601 = bool_val; + fm_key_file_get_bool(kf, "config", "backup_as_hidden", &cfg->backup_as_hidden); + fm_key_file_get_bool(kf, "config", "no_usb_trash", &cfg->no_usb_trash); + fm_key_file_get_bool(kf, "config", "no_child_non_expandable", &cfg->no_child_non_expandable); +diff --git a/src/base/fm-config.h b/src/base/fm-config.h +index 8e0b3eb8..48f397f2 100644 +--- a/src/base/fm-config.h ++++ b/src/base/fm-config.h +@@ -171,7 +171,6 @@ struct _FmConfig + gint drop_default_action; + + gboolean single_click; +- gboolean middle_click; + gboolean use_trash; + gboolean confirm_del; + gboolean confirm_trash; +@@ -181,7 +180,6 @@ struct _FmConfig + gboolean si_unit; + gboolean advanced_mode; + gboolean force_startup_notify; +- gboolean date_iso_8601; + gboolean backup_as_hidden; + gboolean no_usb_trash; + gboolean no_child_non_expandable; +@@ -215,9 +213,9 @@ struct _FmConfig + gboolean smart_desktop_autodrop; + gchar *saved_search; + /*< private >*/ +- gpointer _reserved1; /* reserved space for updates until next ABI */ +- gpointer _reserved2; +- gpointer _reserved3; ++ gintptr middle_click; ++ gintptr date_iso_8601; ++ gpointer _reserved3; /* reserved space for updates until next ABI */ + gpointer _reserved4; + gpointer _reserved5; + gpointer _reserved6; diff --git a/libfm.spec b/libfm.spec index 6af2a1c..893c280 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20241219 -%global gittartime 1522 +%global gittardate 20241225 +%global gittartime 1644 -%global gitbaredate 20241216 -%global git_rev fb651b87d2be140f0096458d51581faa1ebf86f4 +%global gitbaredate 20241221 +%global git_rev 37456d7d7839c55d2cf9d1c38d92c7571aeb463a %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -77,6 +77,9 @@ Source10: create-libfm-git-bare-tarball.sh Patch1: libfm-1.3.2-0001-fm_config_load_from_key_file-don-t-replace-string-va.patch # http://sourceforge.net/p/pcmanfm/feature-requests/385/ #Patch1000: http://sourceforge.net/p/pcmanfm/feature-requests/_discuss/thread/0a50a386/597e/attachment/libfm-1.2.3-moduledir-gtkspecific-v02.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=2333955 +# https://github.com/lxde/libfm/issues/104 +Patch11: libfm-pr105-Restore-ABI-for-libfm.so.patch Patch1000: libfm-1.3.0.2-moduledir-gtkspecific-v03.patch BuildRequires: pkgconfig(gio-unix-2.0) >= 2.26.0 @@ -256,7 +259,8 @@ do done %endif -cat %PATCH1 | git am +cat %PATCH1 | git am +cat %PATCH11 | git am %patch -P1000 -p1 -Z git commit -m "Use gtk version specific module directory" -a @@ -491,6 +495,10 @@ fi %endif %changelog +* Wed Dec 25 2024 Mamoru TASAKA - 1.3.2^20241221git37456d7d-1 +- Update to the latest git +- Restore libfm.so ABI (bug 2333955) + * Thu Dec 19 2024 Mamoru TASAKA - 1.3.2^20241216gitfb651b87-1 - Update to the latest git diff --git a/sources b/sources index 803b03e..6afa68e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20241219T1522.tar.gz) = 18d8712cabf6d58cb244df00f77410dea5da71f24c5329c6ba784f480003af4ecaf08b5d687a8873eeb9e17dd311c04f2e3f4092f7be057a7d26cf14a62af2be +SHA512 (libfm-20241225T1644.tar.gz) = d29c81542bcb04291ae030d2fb5a9a49c103ab11b59f7f9e2957f85a6edcff999a495085bd08085a5a54a1a32d43d13f48831125bb3dfc98179ddeb019ff6cfb From 2da561432a83b974357c1442815b23249e7f939a Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 14 Jan 2025 15:16:34 +0900 Subject: [PATCH 24/34] update to the latest git --- libfm-pr105-Restore-ABI-for-libfm.so.patch | 78 ---------------------- libfm.spec | 15 ++--- sources | 2 +- 3 files changed, 8 insertions(+), 87 deletions(-) delete mode 100644 libfm-pr105-Restore-ABI-for-libfm.so.patch diff --git a/libfm-pr105-Restore-ABI-for-libfm.so.patch b/libfm-pr105-Restore-ABI-for-libfm.so.patch deleted file mode 100644 index 52e762d..0000000 --- a/libfm-pr105-Restore-ABI-for-libfm.so.patch +++ /dev/null @@ -1,78 +0,0 @@ -From e91fe2ee51832f82843768757cc02125ad17735d Mon Sep 17 00:00:00 2001 -From: Mamoru TASAKA -Date: Wed, 25 Dec 2024 17:33:19 +0900 -Subject: [PATCH] Restore ABI for libfm.so - -The following 2 commit: -https://github.com/lxde/libfm/commit/b0545e0e7bd347dbb8001c153f8bd46718d0c852 -https://github.com/lxde/libfm/commit/2854a4ce01f1e2868f2fa2f453eca5fe3fd8339c -broke libfm.so ABI because this changed the size of `struct _FmConfig` . - -Restore libfm.so ABI compared to before. -Fixes #104 . ---- - src/base/fm-config.c | 7 +++++-- - src/base/fm-config.h | 8 +++----- - 2 files changed, 8 insertions(+), 7 deletions(-) - -diff --git a/src/base/fm-config.c b/src/base/fm-config.c -index c4a99019..ecb2db32 100644 ---- a/src/base/fm-config.c -+++ b/src/base/fm-config.c -@@ -260,10 +260,12 @@ static void _parse_drop_default_action(GKeyFile *kf, gint *action) - void fm_config_load_from_key_file(FmConfig* cfg, GKeyFile* kf) - { - char **strv; -+ gboolean bool_val; - - fm_key_file_get_bool(kf, "config", "use_trash", &cfg->use_trash); - fm_key_file_get_bool(kf, "config", "single_click", &cfg->single_click); -- fm_key_file_get_bool(kf, "config", "middle_click", &cfg->middle_click); -+ fm_key_file_get_bool(kf, "config", "middle_click", &bool_val); -+ cfg->middle_click = bool_val; - if(cfg->single_click && cfg->middle_click) - cfg->middle_click = FALSE; - fm_key_file_get_int(kf, "config", "auto_selection_delay", &cfg->auto_selection_delay); -@@ -280,7 +282,8 @@ void fm_config_load_from_key_file(FmConfig* cfg, GKeyFile* kf) - fm_key_file_get_bool(kf, "config", "advanced_mode", &cfg->advanced_mode); - fm_key_file_get_bool(kf, "config", "si_unit", &cfg->si_unit); - fm_key_file_get_bool(kf, "config", "force_startup_notify", &cfg->force_startup_notify); -- fm_key_file_get_bool(kf, "config", "date_iso_8601", &cfg->date_iso_8601); -+ fm_key_file_get_bool(kf, "config", "date_iso_8601", &bool_val); -+ cfg->date_iso_8601 = bool_val; - fm_key_file_get_bool(kf, "config", "backup_as_hidden", &cfg->backup_as_hidden); - fm_key_file_get_bool(kf, "config", "no_usb_trash", &cfg->no_usb_trash); - fm_key_file_get_bool(kf, "config", "no_child_non_expandable", &cfg->no_child_non_expandable); -diff --git a/src/base/fm-config.h b/src/base/fm-config.h -index 8e0b3eb8..48f397f2 100644 ---- a/src/base/fm-config.h -+++ b/src/base/fm-config.h -@@ -171,7 +171,6 @@ struct _FmConfig - gint drop_default_action; - - gboolean single_click; -- gboolean middle_click; - gboolean use_trash; - gboolean confirm_del; - gboolean confirm_trash; -@@ -181,7 +180,6 @@ struct _FmConfig - gboolean si_unit; - gboolean advanced_mode; - gboolean force_startup_notify; -- gboolean date_iso_8601; - gboolean backup_as_hidden; - gboolean no_usb_trash; - gboolean no_child_non_expandable; -@@ -215,9 +213,9 @@ struct _FmConfig - gboolean smart_desktop_autodrop; - gchar *saved_search; - /*< private >*/ -- gpointer _reserved1; /* reserved space for updates until next ABI */ -- gpointer _reserved2; -- gpointer _reserved3; -+ gintptr middle_click; -+ gintptr date_iso_8601; -+ gpointer _reserved3; /* reserved space for updates until next ABI */ - gpointer _reserved4; - gpointer _reserved5; - gpointer _reserved6; diff --git a/libfm.spec b/libfm.spec index 893c280..66c40c5 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20241225 -%global gittartime 1644 +%global gittardate 20250114 +%global gittartime 1503 -%global gitbaredate 20241221 -%global git_rev 37456d7d7839c55d2cf9d1c38d92c7571aeb463a +%global gitbaredate 20250109 +%global git_rev 2d94c3c8c4a2c4e252a79da3ef2b6a70e9ec37e1 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -77,9 +77,6 @@ Source10: create-libfm-git-bare-tarball.sh Patch1: libfm-1.3.2-0001-fm_config_load_from_key_file-don-t-replace-string-va.patch # http://sourceforge.net/p/pcmanfm/feature-requests/385/ #Patch1000: http://sourceforge.net/p/pcmanfm/feature-requests/_discuss/thread/0a50a386/597e/attachment/libfm-1.2.3-moduledir-gtkspecific-v02.patch -# https://bugzilla.redhat.com/show_bug.cgi?id=2333955 -# https://github.com/lxde/libfm/issues/104 -Patch11: libfm-pr105-Restore-ABI-for-libfm.so.patch Patch1000: libfm-1.3.0.2-moduledir-gtkspecific-v03.patch BuildRequires: pkgconfig(gio-unix-2.0) >= 2.26.0 @@ -260,7 +257,6 @@ done %endif cat %PATCH1 | git am -cat %PATCH11 | git am %patch -P1000 -p1 -Z git commit -m "Use gtk version specific module directory" -a @@ -495,6 +491,9 @@ fi %endif %changelog +* Tue Jan 14 2025 Mamoru TASAKA - 1.3.2^20250109git2d94c3c8-1 +- Update to the latest git + * Wed Dec 25 2024 Mamoru TASAKA - 1.3.2^20241221git37456d7d-1 - Update to the latest git - Restore libfm.so ABI (bug 2333955) diff --git a/sources b/sources index 6afa68e..72d34c3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20241225T1644.tar.gz) = d29c81542bcb04291ae030d2fb5a9a49c103ab11b59f7f9e2957f85a6edcff999a495085bd08085a5a54a1a32d43d13f48831125bb3dfc98179ddeb019ff6cfb +SHA512 (libfm-20250114T1503.tar.gz) = 2665058991e9a22d36392ecaa7b0a4587e2b470f49e616f98abe579bebe29bc11e7d354120f7bea1f77786122720f6048fc7bfd76b1d94e500c8a602d1620877 From ed83457c20631ac9049fc238c94f5e23d825f584 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 14 Jan 2025 22:17:22 +0900 Subject: [PATCH 25/34] Apply upstream PR for C23 with function prototype strictness --- libfm-pr107-c23-prototype.patch | 29 +++++++++++++++++++++++++++++ libfm.spec | 10 +++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 libfm-pr107-c23-prototype.patch diff --git a/libfm-pr107-c23-prototype.patch b/libfm-pr107-c23-prototype.patch new file mode 100644 index 0000000..1fb76c1 --- /dev/null +++ b/libfm-pr107-c23-prototype.patch @@ -0,0 +1,29 @@ +From 69fb77bbe4d5003fe0b36f524454d3592994b51c Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA +Date: Tue, 14 Jan 2025 18:00:03 +0900 +Subject: [PATCH] FIX: function argument fix for C23 conformance + +C23 now regards function declaration without a parameter list +as that with no parameter (i.e. having `(void)`). + +Specify parameter list explicitly to make code C23 +conformant. + +Closes #106 . +--- + src/base/fm-dummy-monitor.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/base/fm-dummy-monitor.c b/src/base/fm-dummy-monitor.c +index 6ece1fcc..cf1bcf89 100644 +--- a/src/base/fm-dummy-monitor.c ++++ b/src/base/fm-dummy-monitor.c +@@ -37,7 +37,7 @@ + + G_DEFINE_TYPE(FmDummyMonitor, fm_dummy_monitor, G_TYPE_FILE_MONITOR); + +-static gboolean cancel() ++static gboolean cancel(GFileMonitor *) + { + return TRUE; + } diff --git a/libfm.spec b/libfm.spec index 66c40c5..3b48c7b 100644 --- a/libfm.spec +++ b/libfm.spec @@ -40,7 +40,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 1%{?dist} +Release: 2%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -75,6 +75,9 @@ Source10: create-libfm-git-bare-tarball.sh # when subsequent config file does not contain such key but previous key had # (related to bug 2011471) Patch1: libfm-1.3.2-0001-fm_config_load_from_key_file-don-t-replace-string-va.patch +# https://github.com/lxde/libfm/pull/107/ +# Fix for C23 +Patch10: libfm-pr107-c23-prototype.patch # http://sourceforge.net/p/pcmanfm/feature-requests/385/ #Patch1000: http://sourceforge.net/p/pcmanfm/feature-requests/_discuss/thread/0a50a386/597e/attachment/libfm-1.2.3-moduledir-gtkspecific-v02.patch Patch1000: libfm-1.3.0.2-moduledir-gtkspecific-v03.patch @@ -260,6 +263,8 @@ cat %PATCH1 | git am %patch -P1000 -p1 -Z git commit -m "Use gtk version specific module directory" -a +cat %PATCH10 | git am + # Need reporting upstream # ref: https://github.com/lxde/libfm/commit/1af95bd8f26cab6848a74b7e02b53c6c79fb53a5 sed -i Makefile.am \ @@ -491,6 +496,9 @@ fi %endif %changelog +* Tue Jan 14 2025 Mamoru TASAKA - 1.3.2^20250109git2d94c3c8-2 +- Apply upstream PR for C23 with function prototype strictness + * Tue Jan 14 2025 Mamoru TASAKA - 1.3.2^20250109git2d94c3c8-1 - Update to the latest git From a9dc9ac67a1a7af177482080b2856e0e78ebb28a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 11:14:00 +0000 Subject: [PATCH 26/34] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- libfm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index 3b48c7b..034088e 100644 --- a/libfm.spec +++ b/libfm.spec @@ -40,7 +40,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 2%{?dist} +Release: 3%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -496,6 +496,9 @@ fi %endif %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 1.3.2^20250109git2d94c3c8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Tue Jan 14 2025 Mamoru TASAKA - 1.3.2^20250109git2d94c3c8-2 - Apply upstream PR for C23 with function prototype strictness From 58adc101efbb91d24d26399567155dd7ca3454d6 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 7 Feb 2025 15:11:42 +0900 Subject: [PATCH 27/34] update to the latest git --- libfm-pr107-c23-prototype.patch | 29 ----------------------------- libfm.spec | 18 ++++++++---------- sources | 2 +- 3 files changed, 9 insertions(+), 40 deletions(-) delete mode 100644 libfm-pr107-c23-prototype.patch diff --git a/libfm-pr107-c23-prototype.patch b/libfm-pr107-c23-prototype.patch deleted file mode 100644 index 1fb76c1..0000000 --- a/libfm-pr107-c23-prototype.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 69fb77bbe4d5003fe0b36f524454d3592994b51c Mon Sep 17 00:00:00 2001 -From: Mamoru TASAKA -Date: Tue, 14 Jan 2025 18:00:03 +0900 -Subject: [PATCH] FIX: function argument fix for C23 conformance - -C23 now regards function declaration without a parameter list -as that with no parameter (i.e. having `(void)`). - -Specify parameter list explicitly to make code C23 -conformant. - -Closes #106 . ---- - src/base/fm-dummy-monitor.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/base/fm-dummy-monitor.c b/src/base/fm-dummy-monitor.c -index 6ece1fcc..cf1bcf89 100644 ---- a/src/base/fm-dummy-monitor.c -+++ b/src/base/fm-dummy-monitor.c -@@ -37,7 +37,7 @@ - - G_DEFINE_TYPE(FmDummyMonitor, fm_dummy_monitor, G_TYPE_FILE_MONITOR); - --static gboolean cancel() -+static gboolean cancel(GFileMonitor *) - { - return TRUE; - } diff --git a/libfm.spec b/libfm.spec index 034088e..43db99a 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20250114 -%global gittartime 1503 +%global gittardate 20250207 +%global gittartime 1425 -%global gitbaredate 20250109 -%global git_rev 2d94c3c8c4a2c4e252a79da3ef2b6a70e9ec37e1 +%global gitbaredate 20250114 +%global git_rev 493571d155040f13f61feff6dfbca731e5664543 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -40,7 +40,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 3%{?dist} +Release: 1%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -75,9 +75,6 @@ Source10: create-libfm-git-bare-tarball.sh # when subsequent config file does not contain such key but previous key had # (related to bug 2011471) Patch1: libfm-1.3.2-0001-fm_config_load_from_key_file-don-t-replace-string-va.patch -# https://github.com/lxde/libfm/pull/107/ -# Fix for C23 -Patch10: libfm-pr107-c23-prototype.patch # http://sourceforge.net/p/pcmanfm/feature-requests/385/ #Patch1000: http://sourceforge.net/p/pcmanfm/feature-requests/_discuss/thread/0a50a386/597e/attachment/libfm-1.2.3-moduledir-gtkspecific-v02.patch Patch1000: libfm-1.3.0.2-moduledir-gtkspecific-v03.patch @@ -263,8 +260,6 @@ cat %PATCH1 | git am %patch -P1000 -p1 -Z git commit -m "Use gtk version specific module directory" -a -cat %PATCH10 | git am - # Need reporting upstream # ref: https://github.com/lxde/libfm/commit/1af95bd8f26cab6848a74b7e02b53c6c79fb53a5 sed -i Makefile.am \ @@ -496,6 +491,9 @@ fi %endif %changelog +* Fri Feb 07 2025 Mamoru TASAKA - 1.3.2^20250114git493571d1-1 +- Update to the latest git + * Fri Jan 17 2025 Fedora Release Engineering - 1.3.2^20250109git2d94c3c8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/sources b/sources index 72d34c3..c25c660 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20250114T1503.tar.gz) = 2665058991e9a22d36392ecaa7b0a4587e2b470f49e616f98abe579bebe29bc11e7d354120f7bea1f77786122720f6048fc7bfd76b1d94e500c8a602d1620877 +SHA512 (libfm-20250207T1425.tar.gz) = fafa70fce05d8831e394e4dd7f11b64a5b1fc998d83c3d8145d22880aeb47e0d618761c6c558b7375b0800d4944dd03290b55633d84c654a0b8632037fb7b95a From 6fcfbacffc365e4274b2764928d48f9f74014b45 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 16 Feb 2025 16:37:13 +0900 Subject: [PATCH 28/34] update to the latest git --- libfm.spec | 11 +++++++---- sources | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libfm.spec b/libfm.spec index 43db99a..cad9b42 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,11 +18,11 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20250207 -%global gittartime 1425 +%global gittardate 20250216 +%global gittartime 1627 -%global gitbaredate 20250114 -%global git_rev 493571d155040f13f61feff6dfbca731e5664543 +%global gitbaredate 20250215 +%global git_rev 9ea11dca56c039f0d659e243a8b9a5a95c10b6d4 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -491,6 +491,9 @@ fi %endif %changelog +* Sun Feb 16 2025 Mamoru TASAKA - 1.3.2^20250215git9ea11dca-1 +- Update to the latest git + * Fri Feb 07 2025 Mamoru TASAKA - 1.3.2^20250114git493571d1-1 - Update to the latest git diff --git a/sources b/sources index c25c660..c696150 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20250207T1425.tar.gz) = fafa70fce05d8831e394e4dd7f11b64a5b1fc998d83c3d8145d22880aeb47e0d618761c6c558b7375b0800d4944dd03290b55633d84c654a0b8632037fb7b95a +SHA512 (libfm-20250216T1627.tar.gz) = 18b0a899be1d8021d88868b4beccbfbb43afbbaeefcf54a67dd9e7f895d3c24bcc030e94ed034908b3db898a92be030310aba17f247195019599fdfe298c1651 From 020ea9d18f207eea432794c478df222edd4ab22d Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 19 Feb 2025 16:08:42 +0900 Subject: [PATCH 29/34] 1.4.0 --- libfm.spec | 24 +++++++++++++++++++----- sources | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/libfm.spec b/libfm.spec index cad9b42..8dd5857 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,20 +18,27 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20250216 -%global gittartime 1627 +%global gittardate 20250219 +%global gittartime 1523 +%define use_gitcommit_as_rel 0 -%global gitbaredate 20250215 -%global git_rev 9ea11dca56c039f0d659e243a8b9a5a95c10b6d4 +%global gitbaredate 20250218 +%global git_rev 13e5c3eb6186c62c60ce449ed01a49c89b3adaa0 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} +%if 0%{?use_gitcommit_as_rel} %global git_ver_rpm ^%{git_version} %global git_builddir -%{git_version} +%else +%global git_ver_rpm %{nil} +%global git_builddir %{nil} +%endif + %endif -%global main_version 1.3.2 +%global main_version 1.4.0 %global bootstrap 0 %global build_doc 1 @@ -221,6 +228,10 @@ git init git clone ./%{name}.git/ cd %{name} +%if !%{use_gitcommit_as_rel} +git checkout -b fedora-%{version} %{version} +%endif + # Restore timestamps set +x echo "Restore timestamps" @@ -491,6 +502,9 @@ fi %endif %changelog +* Wed Feb 19 2025 Mamoru TASAKA - 1.4.0-1 +- 1.4.0 + * Sun Feb 16 2025 Mamoru TASAKA - 1.3.2^20250215git9ea11dca-1 - Update to the latest git diff --git a/sources b/sources index c696150..1431db8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20250216T1627.tar.gz) = 18b0a899be1d8021d88868b4beccbfbb43afbbaeefcf54a67dd9e7f895d3c24bcc030e94ed034908b3db898a92be030310aba17f247195019599fdfe298c1651 +SHA512 (libfm-20250219T1523.tar.gz) = dd8b7c886e487178f8f219eb53c027a2be47d5d6f44f8df9edc3abad999eb845c02f53729199279a5ad45443d707d0a4eac2fc9ef04c92771007b91e191ccbf9 From cb9293800449213bf92616456e4f79f4486e8773 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sat, 22 Mar 2025 17:54:33 +0900 Subject: [PATCH 30/34] Update to the latest git --- libfm.spec | 13 ++++++++----- sources | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/libfm.spec b/libfm.spec index 8dd5857..a4719e6 100644 --- a/libfm.spec +++ b/libfm.spec @@ -18,12 +18,12 @@ %global main_version 1.3.2 %if 0%{?use_gitbare} -%global gittardate 20250219 -%global gittartime 1523 -%define use_gitcommit_as_rel 0 +%global gittardate 20250322 +%global gittartime 1009 +%define use_gitcommit_as_rel 1 -%global gitbaredate 20250218 -%global git_rev 13e5c3eb6186c62c60ce449ed01a49c89b3adaa0 +%global gitbaredate 20250316 +%global git_rev 3289abf583030c664babae64a73d1981afcbe8ed %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -502,6 +502,9 @@ fi %endif %changelog +* Sat Mar 22 2025 Mamoru TASAKA - 1.4.0^20250316git3289abf5-1 +- Update to the latest git + * Wed Feb 19 2025 Mamoru TASAKA - 1.4.0-1 - 1.4.0 diff --git a/sources b/sources index 1431db8..8f5e837 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20250219T1523.tar.gz) = dd8b7c886e487178f8f219eb53c027a2be47d5d6f44f8df9edc3abad999eb845c02f53729199279a5ad45443d707d0a4eac2fc9ef04c92771007b91e191ccbf9 +SHA512 (libfm-20250322T1009.tar.gz) = f0624219aafbb76b19c215df99dfde4b1ad5a739c7af07f5966ab9e6531a9fe8a76c3225fb3bfcca37093e04ef48f5196880bc1600b1265cee0d34e64aaec406 From 20cd659875e036fd458d913209f27714825538da Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Mon, 26 May 2025 16:54:35 +0900 Subject: [PATCH 31/34] Add ACLOCAL_PATH for gettext 0.25 (ref: bug 2366708) --- libfm.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index a4719e6..65f5eb7 100644 --- a/libfm.spec +++ b/libfm.spec @@ -47,7 +47,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 1%{?dist} +Release: 2%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -277,6 +277,8 @@ sed -i Makefile.am \ -e '\@docs/reference/libfm/libfm-sections.txt@d' git commit -m "Remove files entry to be regenerated" -a || true +# Add ACLOCAL_PATH for gettext 0.25 (ref: bug 2366708) +export ACLOCAL_PATH=%{_datadir}/gettext/m4/ sh autogen.sh git commit -m "save modified files" -a || true @@ -502,6 +504,9 @@ fi %endif %changelog +* Mon May 26 2025 Mamoru TASAKA - 1.4.0^20250316git3289abf5-2 +- Add ACLOCAL_PATH for gettext 0.25 (ref: bug 2366708) + * Sat Mar 22 2025 Mamoru TASAKA - 1.4.0^20250316git3289abf5-1 - Update to the latest git From 6afb27b908e8a9c8689c1a0f552ceb9f15bbf1a8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 19:39:18 +0000 Subject: [PATCH 32/34] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- libfm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfm.spec b/libfm.spec index 65f5eb7..96666ac 100644 --- a/libfm.spec +++ b/libfm.spec @@ -47,7 +47,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 2%{?dist} +Release: 3%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -504,6 +504,9 @@ fi %endif %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 1.4.0^20250316git3289abf5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon May 26 2025 Mamoru TASAKA - 1.4.0^20250316git3289abf5-2 - Add ACLOCAL_PATH for gettext 0.25 (ref: bug 2366708) From 7dd64a1b4c12c87d5190443de623043582859fd2 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 17 Dec 2025 23:45:12 +0900 Subject: [PATCH 33/34] 1.4.1 --- libfm.spec | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/libfm.spec b/libfm.spec index 96666ac..5fc24d7 100644 --- a/libfm.spec +++ b/libfm.spec @@ -15,15 +15,13 @@ %global git_ver_rpm %{nil} %global git_builddir %{nil} -%global main_version 1.3.2 - %if 0%{?use_gitbare} -%global gittardate 20250322 -%global gittartime 1009 -%define use_gitcommit_as_rel 1 +%global gittardate 20251217 +%global gittartime 2335 +%define use_gitcommit_as_rel 0 -%global gitbaredate 20250316 -%global git_rev 3289abf583030c664babae64a73d1981afcbe8ed +%global gitbaredate 20251214 +%global git_rev 7e575d13fcf0532fc181fc26391ad6fd7717ed66 %global git_short %(echo %{git_rev} | cut -c-8) %global git_version %{gitbaredate}git%{git_short} @@ -38,7 +36,7 @@ %endif -%global main_version 1.4.0 +%global main_version 1.4.1 %global bootstrap 0 %global build_doc 1 @@ -47,7 +45,7 @@ Name: libfm Version: %{main_version}%{git_ver_rpm} -Release: 3%{?dist} +Release: 1%{?dist} Summary: GIO-based library for file manager-like programs # src/actions/ GPL-2.0-or-later @@ -504,6 +502,9 @@ fi %endif %changelog +* Wed Dec 17 2025 Mamoru TASAKA - 1.4.1-1 +- 1.4.1 + * Thu Jul 24 2025 Fedora Release Engineering - 1.4.0^20250316git3289abf5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From e90768b40a0c1c8c8001efe9f45a620ce9c94bbe Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 17 Dec 2025 23:46:59 +0900 Subject: [PATCH 34/34] 1.4.1 --- sources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources b/sources index 8f5e837..6e2ccab 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libfm-20250322T1009.tar.gz) = f0624219aafbb76b19c215df99dfde4b1ad5a739c7af07f5966ab9e6531a9fe8a76c3225fb3bfcca37093e04ef48f5196880bc1600b1265cee0d34e64aaec406 +SHA512 (libfm-20251217T2335.tar.gz) = 22310c122892588d23196b21e4e8e251fb83a49a6e8d0bd86abdc93e20d427d6f81f738f3fb8500c0aaf7d6ff7be5752329435b80ce36f5aa5c42353ab0e1864