From 29c12040fd065ad4a1ac109367031a06d32b860e Mon Sep 17 00:00:00 2001 From: herengui Date: Thu, 10 Aug 2023 10:44:38 +0800 Subject: [PATCH] add loongarch64 support Signed-off-by: herengui --- chrony.spec | 13 +++++++--- feat-loongarch64-do-not-support-fstat.patch | 28 +++++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 feat-loongarch64-do-not-support-fstat.patch diff --git a/chrony.spec b/chrony.spec index 0fa3f07..85a3a74 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,13 +140,19 @@ 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 + * Sat May 6 2023 chengyechun - 4.1-5 - Type:bugfix - ID:NA - SUG:NA -- DESC:add BuildRequire for enable NTS +- DESC:add BuildRequire for enable NTS -* Wed DEC 28 2022 chengyechun - 4.1-4 +* Wed Dec 28 2022 chengyechun - 4.1-4 - Type:bugfix - ID:NA - SUG:NA diff --git a/feat-loongarch64-do-not-support-fstat.patch b/feat-loongarch64-do-not-support-fstat.patch new file mode 100644 index 0000000..edabeab --- /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 + -- Gitee