I'm using openvz-2.6.32 kernel adn xtables-addons dies with this error: * ERROR: net-firewall/xtables-addons-1.38 failed (setup phase): * xtables-addons with ipset requires kernel version >= 2.6.29 * * Call stack: * ebuild.sh, line 91: Called pkg_setup * xtables-addons-1.38.ebuild, line 74: Called die * The specific snippet of code: * die "${PN} with ipset requires kernel version >= 2.6.29" but in ebuild is: if ! (use xtables_addons_ipset4 || use xtables_addons_ipset6) && kernel_is -lt 2 6 35; then die "${PN} with ipset requires kernel version >= 2.6.29" fi So what is right?
Same emerge error with hardened-sources-2.6.32 and xtables-addons-1.37.
The whole package requires >=2.6.29 and the new separate ipset package (>=net-firewall/ipset-6) requires >=2.6.35. The ipset6 module fails to build with a 2.6.32 kernel, so I expect 2.6.35 to be the correct requirement. The logic was also wrong and resulted in the message being displayed when not building ipset[46] on an older kernel.