net-firewall/iptables-1.4.3.2 fails to build against sys-libs/uclibc-0.9.30.1-r1 if it lacks IPv6 support: ip6tables_static-ip6tables.o: In function `print_firewall': ip6tables.c:(.text+0x7dc): undefined reference to `in6addr_any' ip6tables.c:(.text+0x8d5): undefined reference to `in6addr_any' collect2: ld returned 1 exit status make[2]: *** [ip6tables-static] Error 1 Please find attached a patch against net-firewall/iptables-1.4.3.2 which provides an ipv6 USE-flag. If the flag isn't set, iptables will be compiled with '--disable-ipv6' and no ip6tables* related files will be merged.
Created attachment 197488 [details] iptables-1.4.3.2-ipv6-use-flag.patch Patch against iptables-1.4.3.2.ebuild with ipv6 enable/disable functionality.
Comment on attachment 197488 [details] iptables-1.4.3.2-ipv6-use-flag.patch this patch is a regression. declaring flags in a local var rather than passing straight to econf is wrong. presumably the only econf change needed is to add a line like: $(use_enable ipv6)
Ok, I modified the ebuild and created a new patch, according to http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/configuring/index.html
Created attachment 199318 [details, diff] iptables-1.4.3.2-ipv6-use-flag.patch corrected patch
thanks, that looks fine to me. tweaked and added to 1.4.4. http://sources.gentoo.org/net-firewall/iptables/iptables-1.4.4.ebuild?r1=1.1&r2=1.2