On Wed, Jul 03, 2002, Christoph Schug wrote:
> I backed out the patch re-enabled before since we only need it on Linux
> (-> glibc?) but for some reason %ifarch-Tags doesn't seem to work as
> documented. Do I miss a thing?
> [...]
> +## FIXME: surely we need the patch for Linux only but those do not work
> +## as documented in RPM-HOWTO. Any hints how to work around the
> +## situation without requireing external patch program?
> +%ifarch linux2.2
> %patch0 -p0
> +%endif
Two possible solutions:
1. Perform the "if" in the patch itself with CPP:
#ifdef __Linux__
...
#endif
2. Perform the "if" in the %prep with Bourne-Shell:
case "%{l_target}" in
*-linux*)
%patch0 -p0
;;
esac
I personally would use (1), because it keeps the dust in the dustbin ;)
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [EMAIL PROTECTED]