• Bug#1104787: cdftools: add support for parallel builds

    From Emanuele Rocca@21:1/5 to All on Tue May 6 15:30:02 2025
    Source: cdftools
    Version: 4.0.0-3
    Tags: patch

    Hi,

    cdftools 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: https://www.debian.org/doc/debian-policy/ch-source.html#debian-rules-and-deb-build-options

    Thanks!
    Emanuele



    From f48d9086372b33b0ec2df93d48a054356699a54e Mon Sep 17 00:00:00 2001
    From: Emanuele Rocca <ema@linux.it>
    Date: Tue, 6 May 2025 14:55:59 +0200
    Subject: [PATCH 2/2] Support parallel builds

    ---
    debian/rules | 9 +++++++--
    1 file changed, 7 insertions(+), 2 deletions(-)

    diff --git a/debian/rules b/debian/rules
    index 906792f..d692da8 100755
    --- a/debian/rules
    +++ b/debian/rules
    @@ -8,11 +8,16 @@ export DH_VERBOSE=1

    DESTDIR:=debian/cdftools

    +# Support parallel builds
    +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    +NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +endif
    +
    override_dh_auto_build:
    ln -sf ../debian/macro.f95_debian src/make.macro
    mkdir -p bin
    - $(MAKE) -C src
    - $(MAKE) -C DOC pdf
    + $(MAKE) -C src $(NJOBS)
    + $(MAKE) -C DOC pdf $(NJOBS)

    override_dh_auto_clean:
    ln -sf ../debian/macro.f95_debian src/make.macro
    --
    2.39.5

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)