diff --git a/0001-crash-with-remote-mounts.patch b/0001-crash-with-remote-mounts.patch new file mode 100644 index 0000000000000000000000000000000000000000..3f5cde1d09420ff9df885aa16d03f551769ea6dd --- /dev/null +++ b/0001-crash-with-remote-mounts.patch @@ -0,0 +1,29 @@ +From d36a5500f31175375867e2171b4770f87dea1318 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= +Date: Wed, 23 Apr 2025 14:28:01 +0200 +Subject: [PATCH] locations-list: Don't try to iterate over a list after a + removal + +In the volume_changed callback, we might to remove a location from the list. +Follow the pattern of breaking out of the foreach loop inmediately after, +otherwise we'll end-up causing a segfault. + +Fixes #175. +--- + src/baobab-location-list.vala | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/baobab-location-list.vala b/src/baobab-location-list.vala +index cceacc0a..ff3d8049 100644 +--- a/src/baobab-location-list.vala ++++ b/src/baobab-location-list.vala +@@ -162,6 +162,7 @@ namespace Baobab { + var same_mount = location.mount != null && location.mount.get_root ().equal (mount.get_root ()); + if (same_mount && location.volume != volume) { + locations.remove(location); ++ break; + } + } + +-- +GitLab diff --git a/baobab-44.0.tar.xz b/baobab-44.0.tar.xz deleted file mode 100644 index 4cc466a3119a309db16c770d2e3ffdc9798df8ef..0000000000000000000000000000000000000000 Binary files a/baobab-44.0.tar.xz and /dev/null differ diff --git a/baobab-48.0.tar.xz b/baobab-48.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..64c4c84a8c92aaf6798d8b66c745b46fbaa1bee6 Binary files /dev/null and b/baobab-48.0.tar.xz differ diff --git a/baobab.spec b/baobab.spec index e671c4a9d0bfb0005e26d9144578edd9333009e7..defe6ad54de56b0a7e2b5e6f32c2500d592552b3 100644 --- a/baobab.spec +++ b/baobab.spec @@ -1,13 +1,17 @@ -%global gtk4_version 4.4.0 -%global libadwaita_version 1.2 +%global gtk4_version 4.15.1 +%global libadwaita_version 1.6~alpha + +%global tarball_version %%(echo %{version} | tr '~' '.') Name: baobab -Version: 44.0 +Version: 48.0 Release: 1 Summary: A graphical directory tree analyzer -License: GPLv2+ and GFDL-1.1-or-later +License: GPL-2.0-later AND CC-BY-SA-3.0 AND CC0-1.0 URL: https://wiki.gnome.org/Apps/Baobab -Source0: https://download.gnome.org/sources/baobab/44/%{name}-%{version}.tar.xz +Source0: https://download.gnome.org/sources/baobab/48/%{name}-%{tarball_version}.tar.xz + +Patch01: 0001-crash-with-remote-mounts.patch BuildRequires: pkgconfig(gtk4) >= %{gtk4_version} BuildRequires: pkgconfig(libadwaita-1) >= %{libadwaita_version} @@ -28,7 +32,7 @@ directory size or percentage in the branch. It also auto-detects in real-time any change made to your home folder as far as any mounted/unmounted device. %prep -%autosetup -p1 -n %{name}-%{version} +%autosetup -p1 -n %{name}-%{tarball_version} %build %meson @@ -45,7 +49,7 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.baobab.des %files -f %{name}.lang %doc AUTHORS NEWS README.md -%license COPYING COPYING.docs +%license COPYING %{_bindir}/baobab %{_datadir}/applications/org.gnome.baobab.desktop %{_datadir}/dbus-1/services/org.gnome.baobab.service @@ -56,6 +60,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.baobab.des %{_mandir}/man1/baobab.1* %changelog +* Fri Sep 12 2025 liweigang - 48.0-1 +- update to version 48.0 + * Fri Nov 24 2023 lwg - 44.0-1 - update to version 44.0