|
|
e1da54 |
From 097cfe01588570f924050bc3d1423a0266cd1ca4 Mon Sep 17 00:00:00 2001
|
|
|
e1da54 |
From: Laine Stump <laine@laine.org>
|
|
|
e1da54 |
Date: Fri, 7 Feb 2014 16:17:24 +0200
|
|
|
e1da54 |
Subject: [PATCH] Require bridge-utils for netcf-libs in the specfile
|
|
|
e1da54 |
|
|
|
e1da54 |
This resolves:
|
|
|
e1da54 |
|
|
|
e1da54 |
https://bugzilla.redhat.com/show_bug.cgi?id=1060317 (RHEL7)
|
|
|
e1da54 |
https://bugzilla.redhat.com/show_bug.cgi?id=911403 (Fedora 20)
|
|
|
e1da54 |
|
|
|
e1da54 |
netcf itself doesn't use anything in bridge-utils, but it called
|
|
|
e1da54 |
/sbin/ifup, which *can* run brctl (which is part of bridge-utils).
|
|
|
e1da54 |
Technically, initscripts should require brutils (since /sbin/ifup is a
|
|
|
e1da54 |
part of initscripts), but we all know that's not going to
|
|
|
e1da54 |
happen. Instead we can just make netcf require bridge-utils. It's not
|
|
|
e1da54 |
a very large package, so it's unlikely we'll get any complaints about
|
|
|
e1da54 |
bloat.
|
|
|
e1da54 |
|
|
|
e1da54 |
(NB: in the past, libvirt had a Requires: bridge-utils, so this didn't
|
|
|
e1da54 |
used to be a problem. libvirt removed this Requires: in v0.9.8, when
|
|
|
e1da54 |
it switched from execing brctl to directly calling ioctls to create
|
|
|
e1da54 |
and manage bridge devices.)
|
|
|
e1da54 |
|
|
|
e1da54 |
(cherry picked from commit 5bb22ec48096338a6651590299740f9e42367bb9)
|
|
|
e1da54 |
---
|
|
|
e1da54 |
netcf.spec.in | 4 ++++
|
|
|
e1da54 |
1 file changed, 4 insertions(+)
|
|
|
e1da54 |
|
|
|
e1da54 |
diff --git a/netcf.spec.in b/netcf.spec.in
|
|
|
e1da54 |
index 6ab3ee5..7862e74 100644
|
|
|
e1da54 |
--- a/netcf.spec.in
|
|
|
e1da54 |
+++ b/netcf.spec.in
|
|
|
e1da54 |
@@ -66,6 +66,10 @@ developing applications that use %{name}.
|
|
|
e1da54 |
Summary: Libraries for %{name}
|
|
|
e1da54 |
Group: System Environment/Libraries
|
|
|
e1da54 |
|
|
|
e1da54 |
+# bridge-utils is needed because /sbin/ifup calls brctl
|
|
|
e1da54 |
+# if you create a bridge device
|
|
|
e1da54 |
+Requires: bridge-utils
|
|
|
e1da54 |
+
|
|
|
e1da54 |
%description libs
|
|
|
e1da54 |
The libraries for %{name}.
|
|
|
e1da54 |
|
|
|
e1da54 |
--
|
|
|
e1da54 |
1.8.3.1
|
|
|
e1da54 |
|