diff --git a/chrony.spec b/chrony.spec index fde7337592ff2b3d54ea29a092078b72169e4d77..ff8b69f3dd227a49ab5ca9af23c1fb91817dcb19 100644 --- a/chrony.spec +++ b/chrony.spec @@ -2,7 +2,7 @@ Name: chrony Version: 4.1 -Release: 5 +Release: 6 Summary: An NTP client/server License: GPLv2 URL: https://chrony.tuxfamily.org @@ -12,6 +12,7 @@ Source1: chrony.dhclient Source6: https://github.com/mlichvar/clknetsim/archive/%{clknetsim_ver}/clknetsim-%{clknetsim_ver}.tar.gz Patch1: chrony-nm-dispatcher-dhcp.patch +Patch2: feat-loongarch64-do-not-support-fstat.patch Patch6000: backport-rework-command-and-limit-the-length-of-command.patch @@ -139,6 +140,12 @@ fi %{_mandir}/man[158]/%{name}*.[158]* %changelog +* Thu Aug 10 2023 herengui - 4.1-6 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add loongarch64 support + * Mon May 8 2023 chengyechun - 4.1-5 - Type:bugfix - ID:NA diff --git a/feat-loongarch64-do-not-support-fstat.patch b/feat-loongarch64-do-not-support-fstat.patch new file mode 100644 index 0000000000000000000000000000000000000000..edabeabd2c8e5c8fc9c7ea6f648975bd251afc5a --- /dev/null +++ b/feat-loongarch64-do-not-support-fstat.patch @@ -0,0 +1,28 @@ +From 8e2ee1c4d87fbcfa29d5d7baa9845907e6a77c96 Mon Sep 17 00:00:00 2001 +From: yangchenguang +Date: Wed, 10 May 2023 17:36:24 +0800 +Subject: [PATCH] loongarch64 do not support fstat + +Signed-off-by: yangchenguang +--- + sys_linux.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/sys_linux.c b/sys_linux.c +index 2b53f72..68d0ba3 100644 +--- a/sys_linux.c ++++ b/sys_linux.c +@@ -539,7 +539,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context) + SCMP_SYS(faccessat), + SCMP_SYS(fchmodat), + SCMP_SYS(fchownat), +- SCMP_SYS(fstat), ++#ifndef __loongarch64 ++ SCMP_SYS(fstat), ++#endif + SCMP_SYS(fstat64), + SCMP_SYS(fstatat64), + SCMP_SYS(getdents), +-- +2.33.0 +