Skip to content

Commit aa7b733

Browse files
committed
rhel: Clarify instructions for RHEL 7.
The rpm build instructions did not clarify what spec files were to be used for RHEL 7 and its derivatives. Clarify that you're actually supposed to use the spec files called "fedora" for RHEL 7 right now. Update references to Fedora versions to reflect the current release (23), as neither 16 or 17 are supported releases anymore. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Gurucharan Shetty <guru@ovn.org>
1 parent 7f21f96 commit aa7b733

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

INSTALL.Fedora.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ This document describes how to build and install Open vSwitch on a Fedora
55
Linux host. If you want to install Open vSwitch on a generic Linux host,
66
see [INSTALL.md] instead.
77

8-
We have tested these instructions with Fedora 16 and Fedora 17.
8+
We have tested these instructions with Fedora 23. These instructions are also
9+
used for RHEL 7.x and its derivatives, such as CentOS 7.x.
910

1011
Building Open vSwitch for Fedora
1112
--------------------------------
@@ -26,7 +27,7 @@ Fedora. The command "rpmbuild --showrc" will show the configuration
2627
for each of those directories. Alternatively, the command "rpm --eval
2728
'%{_topdir}'" shows the current configuration for the top level
2829
directory and the command "rpm --eval '%{_sourcedir}'" does the same
29-
for the sources directory. On Fedora 17, the default RPM _topdir is
30+
for the sources directory. On Fedora 23, the default RPM _topdir is
3031
$HOME/rpmbuild and the default RPM sources directory is
3132
$HOME/rpmbuild/SOURCES.
3233

@@ -66,17 +67,17 @@ $HOME/rpmbuild/SOURCES.
6667

6768
`rpmbuild -bb --without check rhel/openvswitch-fedora.spec`
6869

69-
5. On Fedora 17, to build the Open vSwitch kernel module, run:
70+
5. On Fedora 23, to build the Open vSwitch kernel module, run:
7071

7172
`rpmbuild -bb rhel/openvswitch-kmod-fedora.spec`
7273

7374
You might have to specify a kernel version and/or variants, e.g.:
7475

7576
```
7677
rpmbuild -bb \
77-
-D "kversion 2.6.32-131.6.1.el6.x86_64" \
78+
-D "kversion 4.3.3-300.fc23.x86_64 \
7879
-D "kflavors default debug kdump" \
79-
rhel/openvswitch-kmod-rhel6.spec
80+
rhel/openvswitch-kmod-fedora.spec
8081
```
8182

8283
This produces an "kmod-openvswitch" RPM for each kernel variant,

INSTALL.RHEL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on a generic Linux host, see [INSTALL.md] instead.
77

88
We have tested these instructions with RHEL 5.6 and RHEL 6.0.
99

10+
For RHEL 7.x (or derivatives, such as CentOS 7.x), you should follow
11+
the instructions in [INSTALL.Fedora.md]. The Fedora spec files are
12+
used for RHEL 7.x.
13+
1014
Building Open vSwitch for RHEL
1115
------------------------------
1216

0 commit comments

Comments
 (0)