aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
AgeCommit message (Collapse)Author
2012-03-19debian: Use a different way to avoid failing install without kernel module.Ben Pfaff
The dh_installinit --error-handler option makes a lot of sense, but after playing with it for a while I could not figure out a nice way to use it only for openvswitch-switch without either duplicating the dh_installinit fragments in postinst and prerm (the actual bug that was reported) or omitting them for some package. Also, we forgot to write the error handler function for the prerm. This commit switches to a different way to avoid failing the install when the kernel module is not available, without using --error-handler. CC: 663051@bugs.debian.org Reported-by: Thomas Goirand <zigo@debian.org> Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-03-19debian: Avoid unit test failure when doing "unofficial" builds.Ben Pfaff
The configure option --with-build-number=0 is interpreted differently in different places. The configure script itself accepts 0 as an actual build number and puts '#define BUILDNR "+build0"' into config.h. The code in python/automake.mk treats 0 as "no build number" and puts 'BUILDNR = ""' into version.py. This commit avoids the problem by not passing 0 as a build number. Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-03-19debian: Remove some useless files from the dkms pacakge.Thomas Goirand
This commit removes useless files from the dkms package that caused lintian warnings. (Many of the other files in the dkms package are also useless but do not cause lintian warnings so they are less important.) Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Thomas Goirand <zigo@debian.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-03-19debian: Clean .pyc files in "clean" target.Thomas Goirand
Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Thomas Goirand <zigo@debian.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-11-10debian: Strip epoch from version number used in directory names.Ben Pfaff
This doesn't fix a visible bug, since there's no epoch in the Open vSwitch version used in Debian, but some Nicira internal build scripts were inserting an epoch so it was visible in our builds. Reported-by: Edwin Chiu <echiu@nicira.com>
2011-11-04debian: Install ovs-vswitchd.conf.db(5) manpage.Ben Pfaff
This manpage wasn't getting installed. This fixes it. The --language=C option to dh_installman is necessary to keep that script from thinking that the ".db" suffix indicates a translation into the "db" language (which doesn't actually exist) and therefore installing it into the wrong directory with the .db suffix stripped. Bug #8138. Reported-by: Ethan Jackson <ethan@nicira.com>
2011-09-12Debian: fail gracefully if modules can't be loaded on installSimon Horman
By registering an error-handler for the init script used in openvswitch-switch.postinst and detecting if module insertion fails, it is possible to avoid failure to install in the case where the openvswitch_mod module is not available. This is done without altering the behaviour that the start target of the openvswitch-switch init script will fail if module insertion fails. This patch also adds a friendly hint as as to why starting openvswitch-switch has failed if it is due to failure to insert the openvswtich_mod. This message is displayed as necessary both on package install and other calls to the start target of the init script. [Ben Pfaff fixed up == to = in postinst]
2011-08-26debian: Transition to dh_python2Simon Horman
dh_pysupport that the packaging used until now is deprecated, with dh_python2 as its successor. This commit removes the PYTHONPATH setting from debian/openvswitch-ipsec.init because it is not needed, as the Python packaging is public. In fact, the Python packaging was public, unintentionally, before, so the PYTHONPATH could have been removed earlier.
2011-08-25debian: Apply Ubuntu patch to add DKMS support.Chuck Short
I tested that installing openvswitch-datapath-dkms worked OK on my own Debian machine. The bulk of this patch is taken from downstream Ubuntu DKMS support written by Chuck Short <zulcss@ubuntu.com>, version 1.2.0-1ubuntu1. I made the following changes: * Update debian/.gitignore. * Update debian/automake.mk. * Correct description in debian/control (it was a cut-and-paste from the openvswitch-datapath-source description without editing). * Fix up for --with-l26 to --with-linux and datapath/linux-2.6 to datapath/linux transitions. CC: Chuck Short <zulcss@ubuntu.com> CC: Dave Walker <DaveWalker@ubuntu.com> Acked-by: Simon Horman <horms@verge.net.au>
2011-07-26debian: Fix bug from commit 211b05b5 "debian: Modernize use of dh_install."Ben Pfaff
Commit 211b05b5 "debian: Modernize use of dh_install" caused build failures in clean environments because debian/ovsdbmonitor.install now installed files that were never created in such an environment. It didn't cause a build failure in my own testing because I still had old files around. This fixes the problem. It seems to be necessary to run "make install" once for each of binary-arch and binary-indep, because dh_prep always deletes debian/tmp. It is logically not necessary but I don't see a clean and robust way to avoid it.
2011-07-26debian: Modernize use of dh_install.Ben Pfaff
Originally I intended this as just a cleanup, but as a side effect it also installs some files from the install tree in debian/tmp instead of from _debian. This should avoid a reported problem in which ovs-bugtool was being created in the source directory instead of the build directory (I still don't see why this happened). Reported-by: Sébastien RICCIO <sr@swisscenter.com> Tested-by: Sébastien RICCIO <sr@swisscenter.com> Acked-by: Simon Horman <horms@verge.net.au> CC: Simon Horman <horms@verge.net.au>
2011-07-06debian: Remove obsolete reference to var/log/core.Ben Pfaff
Commit 14c3b136 "debian: Remove corekeeper package" removed the var/log/core directory from the Debian packaging, but I missed this part.
2011-06-17Refactor initscripts into distro-independent and distro-specific pieces.Ben Pfaff
This should make it easier to add OVS support to new distributions.
2011-03-14debian: Restart daemons only after upgrade is complete.Ben Pfaff
This yields less downtime during an upgrade and allows an SSH session or other network access to dpkg to continue during the upgrade to, e.g., answer questions about conffiles from dpkg. (Open vSwitch doesn't have any conffiles but other packages being upgraded in the same dpkg run might.) Bug #542.
2011-03-14debian: Run tests in parallel too.Ben Pfaff
Passing e.g. -j4 in TESTSUITEFLAGS runs 4 tests in parallel, which speeds up the testsuite.
2011-01-04debian: Remove openvswitch-pki-server package.Ben Pfaff
The functionality provided by this package was used only by openvswitch-switch-config, which was removed some time ago. If I had been more careful at the time, I would have removed this package at the same time.
2010-11-16debian: Fix parallel builds.Ben Pfaff
Some of the Debian automatic builds are failing apparently because the build-arch and build-indep targets are being called in parallel and they are both attempting to rebuild tests/testsuite at the same time, which doesn't work. We could make the OVS makefiles handle this particular case, but in general it's not a good idea to independently invoke a single makefile multiples times in parallel, so this commit avoids that problem. This also dumps the DEB_BUILD_OPTIONS variable to the log, because there doesn't appear to be any way to infer it from the automatic builders' log files.
2010-11-16debian: On "make check" failure dump the testsuite log.Ben Pfaff
The Debian automatic build machines don't save any files from the build, but they do preserve the build log, so dumping it to stdout is the only reasonable way to get test failure information.
2010-11-10debian: Remove corekeeper package.Ben Pfaff
The corekeeper package has little or nothing to do with Open vSwitch itself, so remove it.
2010-09-20debian: Add openvswitch-python packageSajjad Lateef
This installs the Python runtime bindings for Open vSwitch database into /usr/share/python-support/openvswitch-python/ovs and /usr/share/python-support/openvswitch-python/ovs/db Updated FSF address in copyright file Minor Whitespace re-formatting Removed prerm, preinst, postinst files for openvswitch-python
2010-08-30Remove openvswitch-switch-config package.Ben Pfaff
This package was never used by many users, has not worked properly for a while, and causes lintian warnings, so remove it. CC: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2010-08-23Remove ezio-term and ovs-switchui utilities.Ben Pfaff
These utilities were useful when Nicira was building switches with 16x2 LCD front panel displays, but they aren't useful for other environments and even Nicira does not use that kind of switch any longer. So remove them and all the build infrastructure on which they depended.
2010-01-26Cleanly separate IDL annotations from OVSDB schema information.Ben Pfaff
Until now, the OVSDB IDL annotations have been glommed together with the schema information in a single file, and then we've used ovsdb-idlc to extract the schema from that file. This commit reverses the process: the schema and the annotations are stored separately and then glommed together as necessary at build time. This new arrangement has a few advantages: - We can now easily have multiple different sets of IDL annotations for a single OVSDB schema. For example, some users may not need access to columns that other users do. - Bugs in ovsdb-idlc cannot screw up the underlying schema (as shown by a recent commit).
2009-12-17debian: Tolerate varying locations of vswitch-idl.ovsschema.Ben Pfaff
The Debian packaging as well as the testsuite was picky about where the ovsschema file appeared. This should fix the problem.
2009-12-15debian: Break rules for datapath module out of debian/rules.Ben Pfaff
debian/rules included makefiles from /usr/share/modass/include. Unfortunately these makefiles set some environment variables to values that we do not want in the general Debian build, e.g. on this machine they set CC to gcc-4.1. It appears that it is generally good practice to break out the kernel module rules from the general-purpose rules anyhow, so this commit does so.
2009-06-09debian: Honor "noopt", "parallel=<n>" build options.Ben Pfaff
2009-06-09debian: Run build tests during build (unless "nocheck" is specified).Ben Pfaff
2009-07-08Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.v0.90.0Ben Pfaff