Source: ace
Version: 8.0.2+dfsg-2
Tags: patch

Hi,

ace currently uses only one CPU core when building.

Please consider applying the attached patch to support parallel builds.
See Debian Policy 4.9.1 for details about this:
https://www.debian.org/doc/debian-policy/ch-source.html#debian-rules-and-deb-build-options

Thanks!
  Emanuele
commit a748bbfa58911ed3bd90d2318a459140b5aebf46
Author: Emanuele Rocca <e...@debian.org>
Date:   Thu Feb 27 10:28:47 2025 +0000

    Support parallel builds

diff --git a/debian/rules b/debian/rules
index 5e37786..91053f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,11 @@ include /usr/share/dpkg/buildflags.mk
 export CCFLAGS = $(CXXFLAGS)
 export DEB_CPPFLAGS_MAINT_APPEND = -g
 
+# Support parallel builds
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+
 MWCFLAGS := -type gnuace -noreldefs
 DSO_MAKE_FLAG := versioned_so=2
 INSTALL_FLAGS := DESTDIR=$(CURDIR)/debian/tmp INSTALL_PREFIX=/usr install_rpath=0 $(DSO_MAKE_FLAG)
@@ -65,10 +70,10 @@ configure-stamp:
 	touch $@
 
 override_dh_auto_build-arch: configure-stamp
-	$(MAKE) -C $(ACE_ROOT) $(DSO_MAKE_FLAG)
+	$(MAKE) -C $(ACE_ROOT) $(DSO_MAKE_FLAG) $(NJOBS)
 
 override_dh_auto_build-indep: configure-stamp
-	$(MAKE) -C $(ACE_ROOT) $(DSO_MAKE_FLAG)
+	$(MAKE) -C $(ACE_ROOT) $(DSO_MAKE_FLAG) $(NJOBS)
 	cd $(ACE_ROOT) && bin/generate_doxygen.pl -is_release -exclude_tao
 	find $(ACE_ROOT)/html $(DOXYGEN_FILES_TO_REMOVE) | xargs -r rm -f
 

Reply via email to