Fix devstack/lib/ovs to run with Fedora 28
The patch is fixing two problems found when stacking DevStack on a Fedora 28 host OS. Problem 1: Account to the different patch versions between the kernel-devel and kernel-headers packages. Problem 2: Install the elfutils-libelf-devel package which is needed to compile OVS. For more a detailed information about each problem, check the bug linked in this patch. Closes-Bug: #1790143 Change-Id: Idfdee28124ff19272abcaaa3adade0435e3e474a
This commit is contained in:
@@ -53,7 +53,10 @@ function prepare_for_compilation {
|
|||||||
|
|
||||||
if is_fedora ; then
|
if is_fedora ; then
|
||||||
# is_fedora covers Fedora, RHEL, CentOS, etc...
|
# is_fedora covers Fedora, RHEL, CentOS, etc...
|
||||||
if [[ ${KERNEL_VERSION:0:2} != "3." ]]; then
|
if [[ "$os_VENDOR" == "Fedora" ]]; then
|
||||||
|
install_package elfutils-libelf-devel
|
||||||
|
KERNEL_VERSION=`echo $KERNEL_VERSION | cut --delimiter='-' --field 1`
|
||||||
|
elif [[ ${KERNEL_VERSION:0:2} != "3." ]]; then
|
||||||
# dash is illegal character in rpm version so replace
|
# dash is illegal character in rpm version so replace
|
||||||
# them with underscore like it is done in the kernel
|
# them with underscore like it is done in the kernel
|
||||||
# https://github.com/torvalds/linux/blob/master/scripts/package/mkspec#L25
|
# https://github.com/torvalds/linux/blob/master/scripts/package/mkspec#L25
|
||||||
|
Reference in New Issue
Block a user