From 138e6cc9e78d518b0d165031b3b7f61878927c60 Mon Sep 17 00:00:00 2001 From: wxiat Date: Wed, 28 Jun 2023 17:11:08 +0800 Subject: [PATCH] add sw Signed-off-by: wxiat --- quota-4.04-sw.patch | 12 ++++++++++++ quota.spec | 9 ++++++++- 2 files changed, 20 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 d80c2a0..1a602d4 100644 --- a/quota.spec +++ b/quota.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # Scan ext file systems directly to increase the performace of a quota # initialization and check %bcond_without quota_enables_extdirect @@ -13,7 +15,7 @@ Name: quota Epoch: 1 Version: 4.06 -Release: 6%{?dist} +Release: 6%{anolis_release}%{?dist} Summary: System administration tools for monitoring users' disk usage # quota_nld.c, quotaio_xfs.h: GPLv2 # bylabel.c copied from util-linux: GPLv2+ @@ -72,6 +74,7 @@ Patch5: quota-4.06-Drop-sys-cdefs.h-usage.patch # Fix sa_mask initialization when registering PID file removal, # upstream bug #141, in upstream after 4.06 Patch6: quota-4.06-quota_nld-Initialize-sa_mask-when-registering-PID-fi.patch +Patch7: quota-4.04-sw.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bash @@ -199,6 +202,7 @@ Linux/UNIX environment. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 # Regenerate build scripts autoreconf -f -i @@ -348,6 +352,9 @@ make check %changelog +* Wed Jun 28 2023 wxiat - 1:4.06-6.0.1 +- add sw patch + * Tue Aug 10 2021 Mohan Boddu - 1:4.06-6 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688 -- Gitee