Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 525144

Summary: net-misc/openvswitch 2.3 - kernel version detection is off by one
Product: Gentoo Linux Reporter: putty_bug
Component: Current packagesAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED FIXED    
Severity: normal CC: prometheanfire, virtualization
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description putty_bug 2014-10-12 13:06:10 UTC
Hello,
i´m using a 3.14.x kernel and try to emerge openvswitch-2.3.0:

 * ERROR: net-misc/openvswitch-2.3.0::gentoo failed (setup phase):
 *   Linux >= 2.6.32 and <= 3.14 required for userspace modules
 *
 * Call stack:
 *                  ebuild.sh, line  93:  Called pkg_setup
 *   openvswitch-2.3.0.ebuild, line  41:  Called die
 * The specific snippet of code:
 *              kernel_is lt 3 14 || die "Linux >= 2.6.32 and <= 3.14 required for userspace modules"


Problem: 
- the detection for "<= 3.14" is wrong.
- "kernel_is lt 3 14" was a "< 3.14" query
- "kernel_is le 3 14" whould be the right statement.

I´ve temporary changed the *.ebuild file and it works.

Regards
 Thorsten
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-26 23:06:19 UTC
*openvswitch-2.3.0-r1 (17 Oct 2014)
 
  17 Oct 2014; Matthew Thode <prometheanfire@gentoo.org>
  +openvswitch-2.3.0-r1.ebuild:
  fixing bug 525144