Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384055 - net-firewall/xtables-addons-1.38 says it needs >= 2.6.29, but in ebuild is kernel_is -lt 2 6 35
Summary: net-firewall/xtables-addons-1.38 says it needs >= 2.6.29, but in ebuild is ke...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 09:49 UTC by Vitaliy V. Osypenko
Modified: 2011-09-25 17:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaliy V. Osypenko 2011-09-22 09:49:06 UTC
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?
Comment 1 Jaak Ristioja 2011-09-22 21:06:25 UTC
Same emerge error with hardened-sources-2.6.32 and xtables-addons-1.37.
Comment 2 Sven Wegener gentoo-dev 2011-09-25 17:11:26 UTC
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.