a fix for iptables build script
Kok, Auke
sofar at foo-projects.org
Tue Feb 27 03:14:41 CET 2007
Zbigniew Luszpinski wrote:
> When kernel-reqs launches iptables rebuild after kernel update, the iptables
> module is built using includes from previous kernel. Just look at compile log
> of iptables to find evidence. This patch makes iptables always compiled using
> current kernel includes.
>
> Example. If you updated kernel recently to 2.6.20 (and kernel-reqs lunched
> iptables rebuild later) the compilation log of iptables will show include
> path of 2.6.19.2 kernel (or older if machine was
> not updated frequently) - not 2.6.20 headers.
>
> BTW: there is official 2.6.20.1 patch on www.kernel.org
>
> have a nice day,
> Zbigniew 'zbiggy' Luszpinski
>
>
> ------------------------------------------------------------------------
>
> --- iptables/BUILD 2006-10-23 00:29:59.000000000 +0200
> +++ iptables/BUILD 2007-02-13 00:25:46.000000000 +0100
> @@ -9,7 +9,8 @@
> # modes of GCC)
> # hevisko
> sedit "s/-O2/$CFLAGS -O2/" Makefile &&
> - make LIBDIR=/usr/lib &&
> + make LIBDIR=/usr/lib \
> + KERNEL_DIR=/usr/src/linux &&
good one! Applied.
Thanks,
Auke
More information about the Lunar
mailing list