[Git][haskell-team/haskell-devscripts][master] Add parallel support to build recipe
Scott Talbert (@swt2c)
gitlab at salsa.debian.org
Wed Dec 17 03:19:42 GMT 2025
Scott Talbert pushed to branch master at Debian Haskell Group / haskell-devscripts
Commits:
c48032ec by Scott Talbert at 2025-12-16T22:18:17-05:00
Add parallel support to build recipe
- - - - -
2 changed files:
- debian/changelog
- lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-devscripts (0.16.44) unstable; urgency=medium
+
+ * Add parallel support to build recipe
+
+ -- Scott Talbert <swt at techie.net> Tue, 16 Dec 2025 22:17:51 -0500
+
haskell-devscripts (0.16.43) unstable; urgency=medium
* dh_haskell_provides_ghc: skip parsing .cabal files
=====================================
lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm
=====================================
@@ -735,7 +735,10 @@ sub configure_recipe {
=cut
sub build_recipe {
- my () = @_;
+ my %params = (
+ parallel => 0,
+ @_
+ );
croak encode_utf8('No Setup.hs executable named.')
unless length $ENV{DEB_SETUP_BIN_NAME};
@@ -744,7 +747,11 @@ sub build_recipe {
die encode_utf8('No Haskell compiler.')
unless length $compiler;
- doit($ENV{DEB_SETUP_BIN_NAME}, 'build', "--builddir=dist-$compiler");
+ my @args = ($ENV{DEB_SETUP_BIN_NAME}, 'build', "--builddir=dist-$compiler");
+ if ($params{parallel}) {
+ push(@args, "--jobs=$params{parallel}");
+ }
+ doit(@args);
return;
}
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/c48032ec4bc67ed1db601494b89b3e88bdc02d64
--
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/c48032ec4bc67ed1db601494b89b3e88bdc02d64
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20251217/0195aea5/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list