Re: [exim] appendfile quota problem

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: grendelkeeper
CC: Exim Users
Sujet: Re: [exim] appendfile quota problem
On 2008-08-12 at 07:19 +0000, grendelkeeper wrote:
> It's a CentOS 5 (32bit)


Even with a 32bit OS, the off_t size should be a 64-bit value if you
want to have largefile support.

> Size of off_t: 4


This is bad.

http://mirror.centos.org/centos/5/os/SRPMS/exim-4.63-3.el5.src.rpm

The problem is that the exim.spec file builds Exim by passing overrides
for CFLAGS on the make command-line. This overrides the setting inside
OS/Makefile-Linux and you lose. The relevant bit of the .spec file is
below, so that other people don't need to download it themselves to see
this.

If you're not happy building Exim yourself, then file a packaging bug
against your vendor.

The overriden bit of OS/Makefile-Linux is:
CFLAGS=-O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

----------------------------8< cut here >8------------------------------
%build
%ifnarch s390 s390x
        make CFLAGS="$RPM_OPT_FLAGS -fpie" LFLAGS=-pie _lib=%{_lib}
%else
        make CFLAGS="$RPM_OPT_FLAGS -fPIE" LFLAGS=-pie _lib=%{_lib}
%endif


%if 0%{?buildsa}
# build sa-exim
cd sa-exim*
perl -pi -e 's|\@lynx|HOME=/ /usr/bin/lynx|g;' Makefile
make SACONF=%{_sysconfdir}/exim/sa-exim.conf CFLAGS="$RPM_OPT_FLAGS -fPIC"
%endif
----------------------------8< cut here >8------------------------------

-Phil