From 4c52a7060e79ccd4ac16130596c623d51391d964 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 11 May 2023 16:53:53 +0800 Subject: [PATCH] add sw --- quota-4.04-sw.patch | 12 ++++++++++++ quota.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 quota-4.04-sw.patch diff --git a/quota-4.04-sw.patch b/quota-4.04-sw.patch new file mode 100644 index 0000000..ff5a23d --- /dev/null +++ b/quota-4.04-sw.patch @@ -0,0 +1,12 @@ +diff -Naur quota-4.04.org/quota.h quota-4.04.sw/quota.h +--- quota-4.04.org/quota.h 2023-05-11 16:28:04.033318118 +0800 ++++ quota-4.04.sw/quota.h 2023-05-11 16:28:38.667320373 +0800 +@@ -170,7 +170,7 @@ + /* 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 diff --git a/quota.spec b/quota.spec index 0cce443..4c86e7f 100644 --- a/quota.spec +++ b/quota.spec @@ -10,7 +10,7 @@ Name: quota Epoch: 1 Version: 4.04 -Release: 14%{?dist} +Release: 15%{?dist} Summary: System administration tools for monitoring users' disk usage # quota_nld.c, quotaio_xfs.h: GPLv2 # bylabel.c copied from util-linux: GPLv2+ @@ -102,6 +102,7 @@ Patch17: quota-4.05-quota-tools-Set-FS_DQ_TIMER_MASK-for-individual-xfs-.patch Patch18: quota-4.05-Fix-limits-setting-on-XFS-filesystem.patch # Add support for HPE XFS, bug #1945408, in upstream 4.05 Patch19: quota-4.04-Aadd-HPE-XFS-support.patch +Patch20: quota-4.04-sw.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bash @@ -237,6 +238,7 @@ Linux/UNIX environment. %patch17 -p1 %patch18 -p1 %patch19 -p1 +%patch20 -p1 # Regenerate build scripts autoreconf -f -i @@ -381,6 +383,9 @@ make check %changelog +* Thu May 11 2023 hpp - 1:4.04-15 +- Add sw64 Architecture + * Wed Apr 28 2021 Petr Pisar - 1:4.04-14 - Rebuild with binutils > 2.30-99 (bug #1954446) -- Gitee