[Git][haskell-team/haskell-devscripts][master] Use doit() in build & check recipes to show progress

Scott Talbert (@swt2c) gitlab at salsa.debian.org
Fri Jul 29 23:13:01 BST 2022



Scott Talbert pushed to branch master at Debian Haskell Group / haskell-devscripts


Commits:
4989075f by Scott Talbert at 2022-07-29T18:09:37-04:00
Use doit() in build & check recipes to show progress

Previously run() was capturing the output until the command completed.  For
very long builds, this could make it appear to the buildd that the build was
hung.

- - - - -


2 changed files:

- debian/changelog
- lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-devscripts (0.16.25) unstable; urgency=medium
+
+  * Use doit() in build & check recipes to show progress
+
+ -- Scott Talbert <swt at techie.net>  Fri, 29 Jul 2022 18:09:18 -0400
+
 haskell-devscripts (0.16.24) unstable; urgency=medium
 
   * Add missing dependency on the check-ghc-stamp target


=====================================
lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm
=====================================
@@ -56,6 +56,7 @@ BEGIN {
 use Carp qw(croak);
 use Const::Fast;
 use Date::Parse qw(str2time);
+use Debian::Debhelper::Dh_Lib qw(doit);
 use IPC::Run3;
 use List::SomeUtils qw(uniq any first_value);
 use Path::Tiny;
@@ -638,8 +639,7 @@ sub build_recipe {
     die encode_utf8('No Haskell compiler.')
       unless length $compiler;
 
-    my $output
-      = run($ENV{DEB_SETUP_BIN_NAME},'build', "--builddir=dist-$compiler");
+    doit($ENV{DEB_SETUP_BIN_NAME}, 'build', "--builddir=dist-$compiler");
 
     return;
 }
@@ -674,7 +674,7 @@ sub check_recipe {
     die encode_utf8('No Haskell compiler.')
       unless length $compiler;
 
-    my $output = run($ENV{DEB_SETUP_BIN_NAME},
+    doit($ENV{DEB_SETUP_BIN_NAME},
         'test', "--builddir=dist-$compiler", '--show-details=direct');
 
     return;



View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/4989075fbb47d9c4f2427c2629b39eda51094d21

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/4989075fbb47d9c4f2427c2629b39eda51094d21
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/20220729/cf5068aa/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list