On Wed, 28 May 2003 20:38:30 -0700 Joerg Schilling wrote
> From: Andreas Metzler <[EMAIL PROTECTED]>
>>>>>The "problem" really exists, my memory isn't that bad:
>>>>>|--------
>>>>>| cdrecord won't work as non-root on Linux if compiled with
>>>>>| -DUSE_USGSHM, but will work as non-root if -DUSE_USGSHM was *not*
>>>>>| specified.
>>>>>|--------
>>[...]
>>> 1) You are not intended to use -DUSE_USGSHM manually.
>>> If you compile for a Llinux-2.4, there is a working MMAP
>>> and you need no SysV SHM.
>> If I did that the resulting binary would not work with Linux-2.2.
> I thought that this has already been discussed now.....
[...]
> You need two sets of binaries for two sets of OS environments if you
> like to have a high quality OS distribution.
I think we'll resolve this by shipping two versions af cdrecord, one
compiled with -DUSE_USGSHM and the other one without it, using a
simple wrapper skript to choose the correct one at runtime:
#bin/sh
VERS=`/sbin/kernelversion`
case $VERS in
2.0|2.2)
exec cdrecord.shm "$@"
;;
2.4|*)
exec cdrecord.mmap "$@"
;;
esac
cu andreas
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]