[ATrpms-devel] dovecot src RPMs
Axel Thimm
Axel.Thimm at ATrpms.net
Wed Aug 30 21:19:24 CEST 2006
Hi,
copying atrpms-devel.
On Wed, Aug 30, 2006 at 08:43:40PM +0200, Magnus Stenman wrote:
> Hi!
>
> I need to recompile the dovecot RPM since it seems to use Linux quota v1
> and CentOS4 uses v2
>
> the logs say
>
> quotactl(Q_GETQUOTA, /dev/hda4) failed: Invalid argument
> Dovecot was compiled with Linux quota v1 support, try changing it
> (--with-linux-quota configure option)
Ah, good catch. That's a bug in RHEL4's /usr/include/sys/quota.h:
/*
* Select between different incompatible quota versions.
* Default to the version used by Linux kernel version 2.4.21
* or earlier (in RHEL version 1 is AS2.1, version 2 is RHEL3 and later). */
#ifndef _LINUX_QUOTA_VERSION
# define _LINUX_QUOTA_VERSION 1
#endif
> But, I cannot find the src packages anywhere! the src links at ATrpms
> are all dead
Yes, this is fixed in the next wes site rebuild (I hope). Until then
go directly to http://dl.atrpms.net/src/el3-i386/atrpms/
I'll fix the packages with the following diff. If you like, do get the
src.rpm and apply this to the specfile. Then use
rpmbuild -bb --without inotify --with pam_stack --with forcequota2 dovecot.spec
It's yet untested, I only patched up the specfile and am waiting for
the builds to be submitted. Let's know how it works, thanks!
@@ -2,2 +2,3 @@
%bcond_with pam_stack
+%bcond_with forcequota2
@@ -6,3 +7,3 @@
Version: 1.0
-Release: 0_20.rc7%{?dist}
+Release: 0_21.rc7%{?dist}
License: LGPL
@@ -95,3 +96,4 @@
--with-ldap \
- %{?_with_inotify:--with-notify=inotify}
+ %{?with_forcequota2:--with-linux-quota=2} \
+ %{?with_inotify:--with-notify=inotify}
@@ -225,2 +227,6 @@
%changelog
+* Wed Aug 30 2006 Axel Thimm <Axel.Thimm at ATrpms.net> - 1.0-0_21.rc7
+- Some systems (like RHEL4) need to be told to use quota v2. Found by
+ Magnus Stenman <stone at hkust.se>.
+
* Fri Aug 18 2006 Axel Thimm <Axel.Thimm at ATrpms.net> - 1.0-0_20.rc7
--
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20060830/a61fa0f1/attachment.bin
More information about the atrpms-devel
mailing list