]> git.pld-linux.org Git - packages/perl-Quota.git/commitdiff
* bad quota-version autodetect, fixed. (detects now v1 instead of v2)
authorbartowl <bartowl@pld-linux.org>
Mon, 25 Feb 2002 16:44:56 +0000 (16:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
* this make it works for 2.2.20 & 2.4.17 pld kernel

Changed files:
    perl-Quota-vers.patch -> 1.1
    perl-Quota.spec -> 1.22

perl-Quota-vers.patch [new file with mode: 0644]
perl-Quota.spec

diff --git a/perl-Quota-vers.patch b/perl-Quota-vers.patch
new file mode 100644 (file)
index 0000000..67314b9
--- /dev/null
@@ -0,0 +1,19 @@
+diff -urN Quota-1.4.1/linuxapi.c Quota-1.4.1-new/linuxapi.c
+--- Quota-1.4.1/linuxapi.c     Sun Sep  2 20:36:16 2001
++++ Quota-1.4.1-new/linuxapi.c Mon Feb 25 17:37:02 2002
+@@ -18,11 +18,12 @@
+ #define Q2_GETSTATS  0x1100
+-#if defined(INITQFNAMES) && (Q_GETQUOTA==0x0300) && (Q_GETSTATS==0x0800)
++#if 0 && defined(INITQFNAMES) && (Q_GETQUOTA==0x0300) && (Q_GETSTATS==0x0800)
+ /* this is an early version of the quota patch which did not have the
+ ** version element in the stats struct. Hence it's impossible to detect
+-** at runtime with a sufficient degree of certainity. */
+-# define LINUX_API_V2_ONLY
++** at runtime with a sufficient degree of certainity.
++** DISABLED by bartowl@pld.org.pl due to bad version detection */
++#define LINUX_API_V2_ONLY
+ #endif
index 55fa961f28462cec740bf5cfe2a281fc262dd301..b2be321e9aabc2728299bb324a50b74ab291fa18 100644 (file)
@@ -3,11 +3,12 @@ Summary:      Quota perl module
 Summary(pl):   Modu³ perla Quota
 Name:          perl-Quota
 Version:       1.4.1
-Release:       1
+Release:       2
 License:       GPL
 Group:         Development/Languages/Perl
 Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Quota/Quota-%{version}.tar.gz
 Patch0:                %{name}-paths.patch
+Patch1:                %{name}-vers.patch
 BuildRequires: rpm-perlprov >= 3.0.3-16
 BuildRequires: perl >= 5.6.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -20,7 +21,8 @@ Modu
 
 %prep
 %setup -q -n Quota-%{version}
-%patch -p0
+%patch0 -p0
+%patch1 -p1
 
 %build
 perl Makefile.PL
This page took 0.12994 seconds and 4 git commands to generate.