!13 [sync] PR-11: 添加sw架构

From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
This commit is contained in:
openeuler-ci-bot 2022-11-08 14:09:07 +00:00 committed by Gitee
commit 3ad1bebc4f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From 3801089800f4530408b4d99a3d0bcf0a154bac1f Mon Sep 17 00:00:00 2001
From: wzx <wuzx1226@qq.com>
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 <wuzx1226@qq.com>
---
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 <sys/ioctl.h>
#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

View File

@ -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<wuzx1226@qq.com> - 1:4.06-5
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add sw64 architecture
* Tue Oct 11 2022 huangduirong <huangduirong@huawei.com> - 1:4.06-4
- Type:bugfix
- ID:NA