xenserver: Fix ovs-vsctl in built RPM by defining /etc as sysconfdir.
authorBen Pfaff <blp@nicira.com>
Wed, 7 Oct 2009 17:19:31 +0000 (10:19 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 7 Oct 2009 17:19:31 +0000 (10:19 -0700)
By default, the "configure" script picks a sysconfdir of $prefix/etc,
which works out to /usr/etc in our case.  That's wrong, of course--it
should be /etc--but we didn't notice until now because sysconfdir was
only used in ovs-vsctl, which in turn wasn't used at all on a XenServer
system until recently.

This bug is present on all branches, but it is only potentially visible
on "master" and "xs5.7", since only those have ovs-vsctl.  It is only
actually visible on "xs5.7", since that is the only branch where the
system uses ovs-vsctl itself (from /etc/xensource/scripts/vif), but this
is being committed to master in case we start using ovs-vsctl there too.

Reported-by: Henrik Amren <henrik@nicira.com>
xenserver/vswitch-xen.spec

index bc9271d19af9f1ac5328c6d23016f5baccefb25f..d9a18bd9813dd0412fdecd6d231c4e7c56aa054d 100644 (file)
@@ -44,7 +44,7 @@ traffic.
 %setup -q -n openvswitch-%{vswitch_version}
 
 %build
-./configure --prefix=/usr --localstatedir=%{_localstatedir} --with-l26=/lib/modules/%{xen_version}/build --enable-ssl %{build_number}
+./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --with-l26=/lib/modules/%{xen_version}/build --enable-ssl %{build_number}
 make %{_smp_mflags}
 
 %install