Ever had a situation where you need to rebuild a Debian or Ubuntu package on a regular basis, but it takes an incredibly long time because it's running automatic tests - tests that you don't need until your final build?
For many of these packages, there's a simple way to disable the tests, by setting the DEB_BUILD_OPTIONS to "nocheck", before you build the package:
apt-get source openldap
cd openldap-2.4.21
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -rfakeroot
Not all packages support this, however, and some packages might use 'notest' instead.
There are a number of other values that can be used with DEB_BUILD_OPTIONS, too, if the package supports them:
- noopt - turn off optimisation
- nodocs - don't build documentation
- nostrip - do not strip debugging symbols from binaries
- parallel=n - use n parallel processes to build the package
If you found this article helpful, consider making a donation to offset the costs of running this server, to one of these addresses: