Hello Florian,

I will have another look on it after easter, when I'm back in the office.

Am 27.03.2012 21:21, schrieb Florian Fainelli:
Hello Thomas,

On Wednesday 21 March 2012 19:19:00 [email protected] wrote:
Hi,

this patch fixes the iptables build if no extensions are selected (e.g. when
building only as build-dependency)

Best regards,
Thomas

---

diff --git a/package/iptables/patches/210-fix-no-ext-install.patch
b/package/iptables/patches/210-fix-no-ext-install.patch new file mode
100644
--- /dev/null
+++ b/package/iptables/patches/210-fix-no-ext-install.patch
@@ -0,0 +1,15 @@
+--- a/extensions/GNUmakefile.in
++++ b/extensions/GNUmakefile.in
+@@ -68,11 +68,10 @@ pf6_solibs    := $(patsubst %,libip6t_%.
+ #
+ targets := libext4.a libext6.a matches4.man matches6.man \
+            targets4.man targets6.man
+-targets_install :=
+ libext4_objs := ${pfx_objs} ${pf4_objs}
+ libext6_objs := ${pfx_objs} ${pf6_objs}
+ targets += ${pfx_solibs} ${pf4_solibs} ${pf6_solibs}
+-targets_install += ${pfx_solibs} ${pf4_solibs} ${pf6_solibs}
++targets_install := $(strip ${pfx_solibs} ${pf4_solibs} ${pf6_solibs})
This breaks build when extensions are enabled for me:

make[5]: *** No rule to make target `extensions/libext4.a', needed by
`iptables-multi'.  Stop.
make[5]: Leaving directory `/home/florian/dev/openwrt/trunk/build_dir/linux-
malta_le/iptables-1.4.10'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/florian/dev/openwrt/trunk/build_dir/linux-
malta_le/iptables-1.4.10'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/florian/dev/openwrt/trunk/build_dir/linux-
malta_le/iptables-1.4.10'
make[2]: *** [/home/florian/dev/openwrt/trunk/build_dir/linux-
malta_le/iptables-1.4.10/.built] Error 2

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to