From bedc33d54b0c28d18c55d9315f7548523fd6e395 Mon Sep 17 00:00:00 2001 From: wzx Date: Fri, 28 Oct 2022 16:03:50 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx (cherry picked from commit 30501015c64eb811606ea64ac43e4bec8c3de663) --- 0003-quota-Add-sw64-architecture.patch | 28 ++++++++++++++++++++++++++ quota.spec | 9 ++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 0003-quota-Add-sw64-architecture.patch diff --git a/0003-quota-Add-sw64-architecture.patch b/0003-quota-Add-sw64-architecture.patch new file mode 100644 index 0000000..bd0f3e8 --- /dev/null +++ b/0003-quota-Add-sw64-architecture.patch @@ -0,0 +1,28 @@ +From 3801089800f4530408b4d99a3d0bcf0a154bac1f Mon Sep 17 00:00:00 2001 +From: wzx +Date: Wed, 26 Oct 2022 16:00:36 +0800 +Subject: [PATCH] Add sw64 architecture + +Add sw64 architecture in file quota.h to suport sw64 architecture. + +Signed-off-by: wzx +--- + quota.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/quota.h b/quota.h +index 4c21411..a9c9ecd 100644 +--- a/quota.h ++++ b/quota.h +@@ -171,7 +171,7 @@ enum { + /* Ioctl for getting quota size */ + #include + #ifndef FIOQSIZE +- #if defined(__alpha__) || defined(__powerpc__) || defined(__sh__) || defined(__sparc__) || defined(__sparc64__) ++ #if defined(__alpha__) || defined(__sw_64__) || defined(__powerpc__) || defined(__sh__) || defined(__sparc__) || defined(__sparc64__) + #define FIOQSIZE _IOR('f', 128, loff_t) + #elif defined(__arm__) || defined(__mc68000__) || defined(__s390__) + #define FIOQSIZE 0x545E +-- +2.33.0 + diff --git a/quota.spec b/quota.spec index b1c5c5a..ec923f6 100644 --- a/quota.spec +++ b/quota.spec @@ -1,7 +1,7 @@ Name: quota Version: 4.06 Epoch: 1 -Release: 4 +Release: 5 Summary: Linux Diskquota system as part of the Linux kernel License: BSD and GPLv2 and GPLv2+ and LGPLv2+ URL: http://sourceforge.net/projects/linuxquota/ @@ -15,6 +15,7 @@ Source4: rpc-rquotad.sysconfig Patch0: 0000-Limit-number-of-comparison-characters-to-4.patch Patch1: 0001-Limit-maximum-of-RPC-port.patch Patch2: 0002-quotaio_xfs-Warn-when-large-kernel-timestamps-cannot.patch +Patch3: 0003-quota-Add-sw64-architecture.patch BuildRequires: autoconf, automake, coreutils, rpcgen, systemd, gcc BuildRequires: e2fsprogs-devel, gettext-devel, openldap-devel @@ -123,6 +124,12 @@ make check %{_mandir}/man*/* %changelog +* Wed Oct 26 2022 wuzx - 1:4.06-5 +- Type:feature +- CVE:NA +- SUG:NA +- DESC:Add sw64 architecture + * Tue Oct 11 2022 huangduirong - 1:4.06-4 - Type:bugfix - ID:NA