[pkg-dhcp-devel] Bug#651922: isc-dhcp: FTBFS parallel build

Philipp Matthias Hahn pmhahn at debian.org
Tue Dec 13 08:44:05 UTC 2011


Package: isc-dhcp
Version: 4.2.2-1
Severity: normal

A parallel build using for example "dpkg-buildpackage -j7" often fails,
because debian/rules contains the following rules.
    build: build-arch build-indep
    build-arch: build-stamp
    build-indep: build-stamp
1:  build-stamp: patch-stamp patched-ldap/build-stamp
2:  patched-ldap/build-stamp:
      ./configure

(1) leasds to the source tree being patched and configured in parallel,
because (2) doesn't declare, that it needs to work on the already
patched tree.

Solution: Change (2) to
    patched-ldap/build-stamp: patch-stamp
-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (90, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
Fix parallel build dependency

During parallel build, aclocal may be called on the still un-patched source
tree, parallel to the source tree being patched. This later results in an error
when configure invoked with the LDAP patch being applied.

Add a dependency on the patched source tree before building the LDAP enabled
server.
--- isc-dhcp-4.1.1-P1/debian/rules.orig	2011-12-12 09:42:51.665362929 +0100
+++ isc-dhcp-4.1.1-P1/debian/rules	2011-12-12 09:42:56.989332250 +0100
@@ -37,7 +37,7 @@
 CFLAGS += -D_PATH_DHCLIENT_CONF='"/etc/dhcp/dhclient.conf"'
 CFLAGS += -DNOMINUM
 
-patched-ldap/build-stamp:
+patched-ldap/build-stamp: patch-stamp
 	dh_testdir
 
 	aclocal


More information about the pkg-dhcp-devel mailing list