diff --git a/fix-audit-arch.h-support-sw64.patch b/fix-audit-arch.h-support-sw64.patch new file mode 100644 index 0000000000000000000000000000000000000000..5962027a4aec1cd5cbe2779bfe7a927f80f8acc4 --- /dev/null +++ b/fix-audit-arch.h-support-sw64.patch @@ -0,0 +1,17 @@ +From: zhangfeilong +Date: Wed, 17 Sep 2025 11:22:21 +0800 +Subject: fix sw64 build. + +--- + +--- a/include/audit-arch.h 2023-06-14 17:11:15.527890092 +0800 ++++ b/include/audit-arch.h 2025-09-17 11:17:42.884405728 +0800 +@@ -57,6 +57,8 @@ + # else + # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 + # endif ++#elif __sw_64__ ++# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SW_64 + #else + # error Unknown target architecture + #endif diff --git a/util-linux.spec b/util-linux.spec index 4db53b2aec855d7f156e41f4780085e9a43817c2..7b8824520bdf158688e1a82950b9d652d089834c 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -3,7 +3,7 @@ Name: util-linux Version: 2.39.1 -Release: 27 +Release: 28 Summary: A random collection of Linux utilities License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain URL: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git @@ -125,6 +125,7 @@ Patch9002: sfdisk-fix-crash-casued-by-out-of-bounds-access.patch Patch9003: add-new-gmo-file.patch Patch9004: mount-fix-use-option-owner-mount-failed.patch Patch9005: Add-new-cpu-model-name-of-arm-Kunpeng.patch +Patch9006: fix-audit-arch.h-support-sw64.patch BuildRequires: audit-libs-devel >= 1.0.6 gettext-devel libselinux-devel ncurses-devel pam-devel zlib-devel popt-devel BuildRequires: libutempter-devel systemd-devel systemd libuser-devel libcap-ng-devel python3-devel gcc autoconf automake @@ -483,6 +484,9 @@ fi %endif %changelog +* Wed Sep 17 2025 zhangfeilong - 2.39.1-28 +- fix sw64 build. + * Tue Sep 02 2025 cenhuilin - 2.39.1-27 - Type:bugfix - CVE:NA