Package: wget Version: 1.20.1-1.1 Severity: wishlist Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu eoan ubuntu-patch
Hi Noël, In Ubuntu, we have patched the wget package to support parallel builds. This seems like a useful enhancement for Debian to include as well. Please find attached the patch to debian/rules that's used to enable this. Thanks for considering, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru wget-1.20.1/debian/rules wget-1.20.1/debian/rules --- wget-1.20.1/debian/rules 2019-04-05 06:36:38.000000000 -0700 +++ wget-1.20.1/debian/rules 2019-04-11 09:21:20.000000000 -0700 @@ -3,6 +3,11 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +COMMA = , +ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS)))) + NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS)))) +endif + DEB_HOST_GNU_TYPE ?=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) @@ -59,7 +64,7 @@ dh_testdir # Add here commands to compile the package. - cd build && $(MAKE) + cd build && $(MAKE) $(NJOBS) #/usr/bin/docbook-to-man debian/wget.sgml > wget.1 cd po; make wget.pot @@ -67,7 +72,7 @@ touch build-stamp build-udeb-stamp: configure-udeb-stamp - cd build-udeb && $(MAKE) + cd build-udeb && $(MAKE) $(NJOBS) touch build-udeb-stamp clean: