Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491844 - net-misc/openvswitch - maximum kernel version check should be restricted to USE=modules
Summary: net-misc/openvswitch - maximum kernel version check should be restricted to U...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 08:50 UTC by Spooky Ghost
Modified: 2013-11-25 19:46 UTC (History)
2 users (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 Spooky Ghost 2013-11-21 08:50:58 UTC
The net-misc/openvswitch ebuild peforms a kernel version check which prevents it being installed on 3.12.  Based on the OVS FAQ at http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=FAQ;hb=HEAD and examining "Q: What Linux kernel versions does each Open vSwitch release work with?" it seems that the version check (at least for the highest version) should only be performed when USE="modules".

The FAQ specifically states:
"Open vSwitch userspace is not sensitive to the Linux kernel version. It should build against almost any kernel, certainly against 2.6.32 and later."

Reproducible: Always

Steps to Reproduce:
1. Be running kernel v3.12
2. Unmask net-misc/openvswitch-1.11.0, (testing 2.0.0)
3. emerge net-misc/openvswitch
Actual Results:  
Openvswitch ebuild dies because of the condition:
kernel_is lt 3 11 || die "Linux >=2.6.18 and <3.11 required"

Expected Results:  
As I do not have USE="modules" and I have CONFIG_OPENVSWITCH=m in my kernel config then the package should build and install.

I moved the min and max check in the ebuild in pkg_setup() to the use modules condition in order to install 1.11.0.  The package compiled and installed and I have run it without any observed problems on kernel 3.11 and 3.12.
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-11-25 19:46:37 UTC
Verified with upstream just to be double sure, but it's now fixed for 1.11 and 2.0.