Skip to content

Commit

Permalink
rhel: Fix openvswitch.spec install.
Browse files Browse the repository at this point in the history
This is the equivalent change of 2f4f43b ("rhel: fix the fedora
spec") for the regular openvswitch.spec. From that patch:

When commit d0c961a ("lib/automake.mk: don't install runtime
directories") landed, it broke RPM based builds since the requisite
directories were no longer available.  This commit adds those
directories back when making RPMs so that the packagemanager can see
them.

Fixes: d0c961a ("lib/automake.mk: don't install runtime directories")
Signed-off-by: Joe Stringer <[email protected]>
Acked-by: Greg Rose <[email protected]>
  • Loading branch information
joestringer committed May 18, 2017
1 parent f15010f commit b9b56b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rhel/openvswitch.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ rm \
(cd "$RPM_BUILD_ROOT" && rm -rf usr/%{_lib}/*.la)
(cd "$RPM_BUILD_ROOT" && rm -rf usr/include)

install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch
install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
install -d -m 0755 $RPM_BUILD_ROOT/var/lib/openvswitch

copy_headers() {
src=$1
Expand Down

0 comments on commit b9b56b2

Please sign in to comment.