Re: [exim] Using statvfs instead of statfs on Linux

Pàgina inicial
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
A: exim-users
Assumpte: Re: [exim] Using statvfs instead of statfs on Linux
On 2004-11-10 Andreas Steinmetz <ast@???> wrote:
> Andreas Metzler wrote:
> >On a sidenote how about replacing the hardcoded
> >"-D_FILE_OFFSET_BITS=64" in OS/Makefile-Linux with
> >$(shell getconf LFS_CFLAGS) or a similar construct?


> And you will break quite some existing systems with this.


Hello,
I'll take your word for the fact that there are indeed linux systems
out there without getconf LFS_CFLAGS that might be used to run exim
on. I've only got access to glibc-based systems running at least 2.4.*,
and glibc's getconf supports LFS_CFLAGS since 1997 afaict. (I have not
got real access to systems that old, I just grepped this from
changelog.)

> Note: Linux != Whatever distro *you* are running


> There's people out there using linux since the 1.0.x kernels. And these
> people tend to not to depend on any distro flavor.


</rant mode="ignore>
The existence of "getconf LFS_CFLAGS" is unrelated to "running distro"
or not, if you manually setup a linux >= 2.4 with glibc (using
software that is less than 5 years old) you'll end up with "getconf
LFS_CFLAGS" if you do it properly. However if you use a different
libc, e.g. OpenBSD's[1][2][3] you'd probably end up without "getconf
LFS_CFLAGS". Sorry for the </rant>.

Well obviously the proper solution is to use something like this[4]:

getconf LFS_CFLAGS 2>/dev/null || true

However I do not know how to properly put it into exim's Makefile
system, sticking it into $(shell ) seems not to be right(TM) (and I do
not know either whether $(shell ) is a GNU-make-ism and whether this
is acceptable, BTW.)
              cu andreas


[1] No, libc5 does not come into this equation, it is handled by
Makefile-Linux-libc5 anyway.
[2] I doubt you'll be able to currently build exim on a system like
this without manual twiddling.
[3] exim probably will not work with dietlibc or uclibc, so your
choices might be limited.
[4] using "-D_FILE_OFFSET_BITS=64" if getconf does not succeed does
not seem to be useful, it is glibc-specific.)
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"