diff --git a/desktop/kde/applications/kpmcore/files/98838306.patch b/desktop/kde/applications/kpmcore/files/98838306.patch new file mode 100644 index 0000000000..cd8cb577f9 --- /dev/null +++ b/desktop/kde/applications/kpmcore/files/98838306.patch @@ -0,0 +1,31 @@ +From 9883830642b943d8b26b7d83f1ac87b0a63b5b48 Mon Sep 17 00:00:00 2001 +From: Fabio Bas +Date: Tue, 22 Apr 2025 14:40:33 +0200 +Subject: [PATCH] Fix a crash when filesystem==nullptr. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +(cherry picked from commit 458ef81f2e424f13cdea44d2d89b8260b463e34e) + +Co-authored-by: Andrius Štikonas +--- + src/plugins/sfdisk/sfdiskbackend.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/plugins/sfdisk/sfdiskbackend.cpp b/src/plugins/sfdisk/sfdiskbackend.cpp +index e47c4e58..447c096b 100644 +--- a/src/plugins/sfdisk/sfdiskbackend.cpp ++++ b/src/plugins/sfdisk/sfdiskbackend.cpp +@@ -515,6 +515,8 @@ bool SfdiskBackend::updateDevicePartitionTable(Device &d, const QJsonObject &jso + */ + void SfdiskBackend::readSectorsUsed(const Device& d, Partition& p, const QString& mountPoint) + { ++ if (p.isFileSystemNullptr()) ++ return; + if (!mountPoint.isEmpty() && p.fileSystem().type() != FileSystem::Type::LinuxSwap && p.fileSystem().type() != FileSystem::Type::Lvm2_PV) { + const QStorageInfo storage = QStorageInfo(mountPoint); + if (p.isMounted() && storage.isValid()) +-- +GitLab + diff --git a/desktop/kde/applications/kpmcore/pspec.xml b/desktop/kde/applications/kpmcore/pspec.xml index 1d4b2e576b..9fed6cd322 100755 --- a/desktop/kde/applications/kpmcore/pspec.xml +++ b/desktop/kde/applications/kpmcore/pspec.xml @@ -3,7 +3,7 @@ kpmcore - https://www.kde.org + https://apps.kde.org/partitionmanager/ Pisi Linux Admins admin@pisilinux.org @@ -11,7 +11,7 @@ LGPLv2 app:gui Library for managing partitions. - Library for managing partitions. + KPMcore, the KDE Partition Manager core, is a library for examining and modifying partitions, disk devices, and filesystems on a Linux system. It provides a unified programming interface over top of (external) system-manipulation tools. mirrors://kde/stable/release-service/25.04.0/src/kpmcore-25.04.0.tar.xz ntfs-3g @@ -49,6 +49,9 @@ nilfs-utils-devel e2fsprogs-devel + + 98838306.patch + @@ -86,7 +89,8 @@ /usr/bin /usr/share - /usr/lib + /usr/lib/libkpmcore.so* + /usr/lib/libexec /usr/lib/qt6 /usr/share/doc @@ -112,6 +116,13 @@ + + 2025-04-29 + 25.04.0 + patched for partitionmanager + Pisi Linux Community + admin@pisilinux.org + 2025-04-20 25.04.0