Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kdiskmark for openSUSE:Factory checked in at 2026-12-05 19:11:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kdiskmark (Old) and /work/SRC/openSUSE:Factory/.kdiskmark.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kdiskmark" Sat Dec 5 19:11:43 2026 rev:13 rq:1403270 version:3.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kdiskmark/kdiskmark.changes 2026-06-15 19:44:10.121236578 +0200 +++ /work/SRC/openSUSE:Factory/.kdiskmark.new.1340718/kdiskmark.changes 2026-12-05 19:14:44.438158817 +0100 @@ -1,0 +2,5 @@ +Sat Dec 5 15:09:47 UTC 2026 - Dominique Leuenberger <[email protected]> + +- Add kdiskmark-fix-32bit-statfs.patch: Fix narrowing conversion on 32-bit architectures (gh#JonMagon/KDiskMark#185). + +------------------------------------------------------------------- New: ---- kdiskmark-fix-32bit-statfs.patch ----------(New B)---------- New: - Add kdiskmark-fix-32bit-statfs.patch: Fix narrowing conversion on 32-bit architectures (gh#JonMagon/KDiskMark#185). ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kdiskmark.spec ++++++ --- /var/tmp/diff_new_pack.KhzjOA/_old 2026-12-05 19:14:45.435200900 +0100 +++ /var/tmp/diff_new_pack.KhzjOA/_new 2026-12-05 19:14:45.440201111 +0100 @@ -1,7 +1,7 @@ # # spec file for package kdiskmark # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # Copyright (c) 2020, Dmitry Sidorov <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -25,15 +25,17 @@ License: GPL-3.0-only URL: https://github.com/JonMagon/KDiskMark Source0: %{url}/releases/download/%{version}/kdiskmark-%{version}-source.tar.gz +# PATCH-FIX-UPSTREAM kdiskmark-fix-32bit-statfs.patch gh#JonMagon/KDiskMark#185 -- Fix narrowing conversion on 32-bit architectures +Patch0: kdiskmark-fix-32bit-statfs.patch BuildRequires: extra-cmake-modules BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme BuildRequires: update-desktop-files BuildRequires: cmake(PolkitQt6-1) -BuildRequires: cmake(Qt6LinguistTools) -BuildRequires: cmake(Qt6Widgets) BuildRequires: cmake(Qt6DBus) +BuildRequires: cmake(Qt6LinguistTools) BuildRequires: cmake(Qt6Network) +BuildRequires: cmake(Qt6Widgets) Requires: fio Provides: bundled(singleapplication) = %{_singleapplication_version} @@ -41,7 +43,7 @@ KDiskMark is an HDD and SSD benchmark tool with a very friendly graphical user interface. %prep -%autosetup +%autosetup -p1 %build %cmake ++++++ kdiskmark-fix-32bit-statfs.patch ++++++ From: Boyuan Yang <[email protected]> Date: Wed, 7 Oct 2026 14:06:13 -0400 Subject: [PATCH] Fix FTBFS on 32-bit architectures On 32-bit architectures, struct statfs.f_type is a signed 32-bit int, so the filesystem magic constants 0x9123683E and 0xca451a4e do not fit in it and the case labels are rejected as narrowing conversions. Compare the value as an unsigned 32-bit integer instead. References: https://github.com/JonMagon/KDiskMark/issues/185 References: https://bugs.debian.org/1140620 --- src/helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper.cpp b/src/helper.cpp index 07a4d69..690e7c3 100644 --- a/src/helper.cpp +++ b/src/helper.cpp @@ -315,7 +315,7 @@ QVariantMap Helper::checkCowStatus(const QString &path) return {{"success", false}, {"error", QStringLiteral("Cannot get filesystem info: %1").arg(strerror(errno))}}; } - switch (fs_info.f_type) { + switch (static_cast<quint32>(fs_info.f_type)) { case 0x9123683E: // BTRFS_SUPER_MAGIC case 0xca451a4e: // BCACHEFS_SUPER_MAGIC break; -- 2.47.0
