[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1088671: lintian: New check requested: 'nproc' used in debian/rules instead of DEB_BUILD_OPTION_PARALLEL



Package: lintian
Version: 2.120.0
Severity: wishlist
X-Debbugs-Cc: crusoe@debian.org


Hello Lintian people,

It would be great if there was a check for calling `nproc` from debian/rules.

As per Debian Policy 4.9.1 [0], packages should respect `parallel` in `DEB_BUILD_OPTIONS`. Using `nproc` without checking `DEB_BUILD_OPTIONS` is not good.

An easy way to accomplish this is to `include /usr/share/dpkg/default.mk` and reference `$(DEB_BUILD_OPTION_PARALLEL)`. If a prefix is needed, then the form `$(DEB_BUILD_OPTION_PARALLEL:%=-j %)` can be used. See /usr/share/dpkg/buildopts.mk for more details.

Thanks,

[0] https://www.debian.org/doc/debian-policy/ch-source.html#debian-rules-and-deb-build-options

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Reply to: