diff --git a/src/isc-dhcp/patch/0014-enable-parallel-build.patch b/src/isc-dhcp/patch/0014-enable-parallel-build.patch new file mode 100644 index 0000000000..4b451b910c --- /dev/null +++ b/src/isc-dhcp/patch/0014-enable-parallel-build.patch @@ -0,0 +1,42 @@ +diff --git a/debian/rules b/debian/rules +index 3c8318f..28f4657 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -37,6 +37,13 @@ export DO_LPF=1 + CONFFLAGS+=--enable-use-sockets + endif + ++ifeq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) ++ PARALLEL := ++else ++ PARALLEL := \ ++ -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) ++endif ++ + %: + dh $@ --parallel --with autoreconf + +@@ -46,17 +53,17 @@ override_dh_auto_build: + # ldap-enabled build + test -f Makefile && $(MAKE) distclean || true + ./configure --with-ldap --with-ldapcrypto CFLAGS="$(CFLAGS) -DNSUPDATE" LIBS="-lirs-export $(LIBS)" $(CONFFLAGS) +- $(MAKE) ++ $(MAKE) $(PARALLEL) + mv server/dhcpd dhcpd + # ddns-disabled build + test -f Makefile && $(MAKE) distclean || true + ./configure CFLAGS="$(CFLAGS)" $(CONFFLAGS) +- $(MAKE) ++ $(MAKE) $(PARALLEL) + mv client/dhclient dhclient + # ldap-disabled build + test -f Makefile && $(MAKE) distclean || true + ./configure CFLAGS="$(CFLAGS) -DNSUPDATE" LIBS="-lirs-export $(LIBS)" $(CONFFLAGS) +- $(MAKE) ++ $(MAKE) $(PARALLEL) + + override_dh_install: + # rename some upstream files +-- +2.34.1 + diff --git a/src/isc-dhcp/patch/series b/src/isc-dhcp/patch/series index b9efee0192..3550c1345a 100644 --- a/src/isc-dhcp/patch/series +++ b/src/isc-dhcp/patch/series @@ -12,3 +12,4 @@ 0011-dhcp-relay-Prevent-Buffer-Overrun.patch 0012-add-option-si-to-support-using-src-intf-ip-in-relay.patch 0013-Fix-dhcrelay-agent-option-buffer-pointer-logic.patch +0014-enable-parallel-build.patch