[ovs-discuss] Building RPMs on Ubuntu

Ansis Atteka aatteka at nicira.com
Fri Nov 18 22:39:35 UTC 2011

I noticed that RPM build fails if ./configure decides that ovsdbmonitor
should be built:

1. ./configure
checking whether to build ovsdbmonitor... yes

2. rpmbuild -bb rhel/openvswitch.spec
error: Installed (but unpackaged) file(s) found:

3. While the build-deps in debian/control file pretty much suggests to
install all of the dependencies that lead ./configure to

 debhelper (>= 5), autoconf (>= 2.64), automake (>= 1.10) | automake1.10,
 libssl-dev, pkg-config (>= 0.21), po-debconf, bzip2, openssl,
 python (>= 2.6.6-3), procps, python-qt4,
 python-zopeinterface, python-twisted-conch

   if (test $ovs_cv_py_PySide_QtCore = yes \
       || test $ovs_cv_py_PyQt4_QtCore = yes) \
      && test $ovs_cv_py_twisted_conch_ssh = yes \
      && test $ovs_cv_py_twisted_internet = yes \
      && test $ovs_cv_py_twisted_application = yes \
      && test $ovs_cv_py_json = yes \
      && test $ovs_cv_py_zope_interface = yes; then

This might get annoying if one wants to build both RPM and DEB packages on
the same Machine. What would be the preferred way to fix this?

   1. Modify RPM spec file so that ovsdbmonitor related files are removed
   right before RPM packaging?
   2. Modify RPM spec file so that those ovsdbmonitor files are included in
   RPM packaging (will there be any added value to distribute this tool also
   with RPMs)?
   3. Add flag to ./configure that allows to build ovsdbmonitor
   conditionally (this changes default build behavior)?

I would prefer to go with #1.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20111118/a0bdbea5/attachment.html>

More information about the discuss mailing list