New Upstream Snapshot - libparallel-runner-perl

Ready changes

Summary

Merged new upstream version: 0.013+git20130922.1.5293746 (was: 0.013).

Resulting package

Built on 2022-11-19T18:55 (took 15m55s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots libparallel-runner-perl

Lintian Result

Diff

diff --git a/CHANGES b/CHANGES
deleted file mode 100644
index a9bd5b5..0000000
--- a/CHANGES
+++ /dev/null
@@ -1,2 +0,0 @@
-v0.013
- * Fixed force_fork on max == 1
diff --git a/MANIFEST b/MANIFEST
index f4374e9..294bd45 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,5 +1,4 @@
 Build.PL
-CHANGES
 lib/Parallel/Runner.pm
 MANIFEST			This list of files
 META.json
diff --git a/META.json b/META.json
index 52ff64b..9425047 100644
--- a/META.json
+++ b/META.json
@@ -4,13 +4,13 @@
       "Chad Granum <exodist7@gmail.com>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "Module::Build version 0.4003, CPAN::Meta::Converter version 2.120630",
+   "generated_by" : "Module::Build version 0.4231",
    "license" : [
       "perl_5"
    ],
    "meta-spec" : {
       "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
-      "version" : "2"
+      "version" : 2
    },
    "name" : "Parallel-Runner",
    "prereqs" : {
@@ -22,7 +22,7 @@
       },
       "configure" : {
          "requires" : {
-            "Module::Build" : "0.40"
+            "Module::Build" : "0.42"
          }
       },
       "runtime" : {
@@ -52,5 +52,6 @@
          "url" : "http://github.com/exodist/Parallel-Runner"
       }
    },
-   "version" : "0.013"
+   "version" : "0.013",
+   "x_serialization_backend" : "JSON::PP version 4.07"
 }
diff --git a/META.yml b/META.yml
index da00705..1c53b80 100644
--- a/META.yml
+++ b/META.yml
@@ -3,28 +3,29 @@ abstract: 'An object to manage running things in parallel processes.'
 author:
   - 'Chad Granum <exodist7@gmail.com>'
 build_requires:
-  Test::Exception::LessClever: 0
-  Test::More: 0
+  Test::Exception::LessClever: '0'
+  Test::More: '0'
 configure_requires:
-  Module::Build: 0.40
+  Module::Build: '0.42'
 dynamic_config: 1
-generated_by: 'Module::Build version 0.4003, CPAN::Meta::Converter version 2.120630'
+generated_by: 'Module::Build version 0.4231, CPAN::Meta::Converter version 2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
+  version: '1.4'
 name: Parallel-Runner
 provides:
   Parallel::Runner:
     file: lib/Parallel/Runner.pm
-    version: 0.013
+    version: '0.013'
 requires:
-  Child: 0.009
-  POSIX: 0
-  Time::HiRes: 0
+  Child: '0.009'
+  POSIX: '0'
+  Time::HiRes: '0'
 resources:
   bugtracker: http://github.com/exodist/Parallel-Runner/issues
   homepage: http://open-exodus.net/projects/parrallel-runner
   license: http://dev.perl.org/licenses/
   repository: http://github.com/exodist/Parallel-Runner
-version: 0.013
+version: '0.013'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff --git a/README b/README
index b8b71cc..e35830c 100644
--- a/README
+++ b/README
@@ -1,191 +1,217 @@
 NAME
+
     Parallel::Runner - An object to manage running things in parallel
     processes.
 
 DESCRIPTION
+
     There are several other modules to do this, you probably want one of
     them. This module exists as a super specialised parallel task manager.
-    You create the object with a proces limit and callbacks for what to do
+    You create the object with a process limit and callbacks for what to do
     while waiting for a free process slot, as well as a callback for what a
-    process shoudl do just before exiting.
+    process should do just before exiting.
 
-    You must explicetly call $runner->finish() when you are done. If the
+    You must explicitly call $runner->finish() when you are done. If the
     runner is destroyed before it's children are finished a warning will be
     generated and your child processes will be killed, by force if
     necessary.
 
-    If you specify a maximum of 1 then no forking will occur, and run() will
-    block until the coderef returns. You can force a fork by providing a
-    boolean true value as the second argument to run(), this will force the
-    runner to fork before running the coderef, however run() will still
+    If you specify a maximum of 1 then no forking will occur, and run()
+    will block until the coderef returns. You can force a fork by providing
+    a boolean true value as the second argument to run(), this will force
+    the runner to fork before running the coderef, however run() will still
     block until it the child exits.
 
 SYNOPSYS
+
         #!/usr/bin/perl
         use strict;
         use warnings;
         use Parallel::Runner;
-
+    
         my $runner = Parallel::Runner->new(4);
         $runner->run( sub { ... } );
         $runner->run( sub { ... } );
         $runner->run( sub { ... } );
         $runner->run( sub { ... } );
-
+    
         # This will block until one of the previous 4 finishes
         $runner->run( sub { ... } );
-
+    
         # Do not forget this.
         $runner->finish;
 
 CONSTRUCTOR
+
     $runner = $class->new( $max, $accessor => $value, ... );
-        Create a new instance of Parallel::Runner. $accessor can be anything
-        listed under the ACCESSORS section. $max should be the maximum
-        number of processes allowed, defaults to 1.
+
+      Create a new instance of Parallel::Runner. $accessor can be anything
+      listed under the ACCESSORS section. $max should be the maximum number
+      of processes allowed, defaults to 1.
 
 ACCESSORS
-    These are simple accessors, provididng an argument sets the accessor to
+
+    These are simple accessors, providing an argument sets the accessor to
     that argument, no argument it simply returns the current value.
 
     $val = $runner->data_callback( \&callback )
-        If this is specified than IPC will be automatically enabled, and the
-        final return from each process will be passed into this handler in
-        the main process. Due to the way IPC works only strings/numerical
-        data is passed, if you need to pass a ref you will need to serialize
-        it yourself before returning it, followed by deserializing it in
-        your callback.
-
-        Example:
-
-            # Place to put the accumulated data
-            my @accum_data;
-
-            # Create the runner with a callback that pushes the data onto our array.
-            $runner = $CLASS->new( 2,
-                data_callback => sub {
-                    my ($data) = @_;
-                    push @accum_data => $data;
-                },
-            );
-
-            # 4 processes that return data
-            $runner->run( sub { return "foo" });
-            $runner->run( sub { return "bar" });
-            $runner->run( sub { return "baz" });
-            $runner->run( sub { return "bat" });
-            $runner->finish;
-
-            # Verify the data (order is not predictable)
-            is_deeply(
-                [ sort @accum_data ],
-                [ sort qw/foo bar baz bat/ ],
-                "Got all data returned by subprocesses"
-            );
+
+      If this is specified than IPC will be automatically enabled, and the
+      final return from each process will be passed into this handler in
+      the main process. Due to the way IPC works only strings/numerical
+      data is passed, if you need to pass a ref you will need to serialize
+      it yourself before returning it, followed by deserializing it in your
+      callback.
+
+      Example:
+
+          # Place to put the accumulated data
+          my @accum_data;
+      
+          # Create the runner with a callback that pushes the data onto our array.
+          $runner = $CLASS->new( 2,
+              data_callback => sub {
+                  my ($data) = @_;
+                  push @accum_data => $data;
+              },
+          );
+      
+          # 4 processes that return data
+          $runner->run( sub { return "foo" });
+          $runner->run( sub { return "bar" });
+          $runner->run( sub { return "baz" });
+          $runner->run( sub { return "bat" });
+          $runner->finish;
+      
+          # Verify the data (order is not predictable)
+          is_deeply(
+              [ sort @accum_data ],
+              [ sort qw/foo bar baz bat/ ],
+              "Got all data returned by subprocesses"
+          );
 
     $val = $runner->exit_callback( \&callback )
-        Codref to call just before a child exits (called within child)
+
+      Codref to call just before a child exits (called within child)
 
     $val = $runner->iteration_delay( $float );
-        How long to wait per iterate if nothing has changed.
+
+      How long to wait per iterate if nothing has changed.
 
     $val = $runner->iteration_callback( $newval )
-        Coderef to call multiple times in a loop while run() is blocking
-        waiting for a process slot.
+
+      Coderef to call multiple times in a loop while run() is blocking
+      waiting for a process slot.
 
     $val = $runner->reap_callback( $newval )
-        Codref to call whenever a pid is reaped using waitpid. The callback
-        sub will be passed 3 values The first is the exit status of the
-        child process. The second is the pid of the child process. The third
-        used to be the return of waitpid, but this is depricated as Child is
-        now used and throws an exception when waitpid is not what it should
-        be. The third is simply the pid of the child process again. The
-        final argument is the child process object itself.
-
-            $runner->reap_callback( sub {
-                my ( $status, $pid, $pid_again, $proc ) = @_;
-
-                # Status as returned from system, so 0 is good, 1+ is bad.
-                die "Child $pid did not exit 0"
-                    if $status;
-            });
+
+      Codref to call whenever a pid is reaped using waitpid. The callback
+      sub will be passed 3 values The first is the exit status of the child
+      process. The second is the pid of the child process. The third used
+      to be the return of waitpid, but this is deprecated as Child is now
+      used and throws an exception when waitpid is not what it should be.
+      The third is simply the pid of the child process again. The final
+      argument is the child process object itself.
+
+          $runner->reap_callback( sub {
+              my ( $status, $pid, $pid_again, $proc ) = @_;
+      
+              # Status as returned from system, so 0 is good, 1+ is bad.
+              die "Child $pid did not exit 0"
+                  if $status;
+          });
 
     @children = $runner->children( @append )
-        Returns a list of Child::Link::Proc objects.
+
+      Returns a list of Child::Link::Proc objects.
 
     $val = $runner->pid()
-        pid of the parent process
+
+      pid of the parent process
 
     $val = $runner->max( $newval )
-        Maximum number of children
+
+      Maximum number of children
 
 OBJECT METHODS
+
     run( $code )
+
     run( $code, $force_fork )
-        Run the specified code in a child process. Blocks if no free slots
-        are available. Force fork can be used to force a fork when max is 1,
-        however it will still block until the child exits.
+
+      Run the specified code in a child process. Blocks if no free slots
+      are available. Force fork can be used to force a fork when max is 1,
+      however it will still block until the child exits.
 
     finish()
+
     finish( $timeout )
+
     finish( $timeout, $timeoutcallback )
-        Wait for all children to finish, then clean up after them. If a
-        timeout is specified it will return after the timeout regardless of
-        wether or not children have all exited. If there is a timeout call
-        back then that code will be run upon timeout just before the method
-        returns.
 
-        NOTE: DO NOT LET YOUR RUNNER BE DESTROYED BEFORE FINISH COMPLETES
-        WITHOUT A TIMEOUT.
+      Wait for all children to finish, then clean up after them. If a
+      timeout is specified it will return after the timeout regardless of
+      wether or not children have all exited. If there is a timeout call
+      back then that code will be run upon timeout just before the method
+      returns.
 
-        the runner will kill all children, possibly with force if your
-        runner is destroyed with children still running, or not waited on.
+      NOTE: DO NOT LET YOUR RUNNER BE DESTROYED BEFORE FINISH COMPLETES
+      WITHOUT A TIMEOUT.
+
+      the runner will kill all children, possibly with force if your runner
+      is destroyed with children still running, or not waited on.
 
     killall( $sig )
-        Send all children the specified kill signal.
+
+      Send all children the specified kill signal.
 
     DESTROY()
-        Automagically called when the object is destroyed. If called while
-        children are running it will forcefully clean up after you as
-        follows:
 
-        1) Sends an ugly warning.
+      Automagically called when the object is destroyed. If called while
+      children are running it will forcefully clean up after you as
+      follows:
 
-        2) Will first give all your children 1 second to complete.
+      1) Sends an ugly warning.
 
-        Windows) Strawberry fails with processes, so on windows DESTROY will
-        wait as long as needed, possibly forever.
+      2) Will first give all your children 1 second to complete.
 
-        3) Sends kill signal 15 to all children then waits up to 4 seconds.
+      Windows) Strawberry fails with processes, so on windows DESTROY will
+      wait as long as needed, possibly forever.
 
-        4) Sends kill signal 9 to any remaining children then waits up to 10
-        seconds
+      3) Sends kill signal 15 to all children then waits up to 4 seconds.
 
-        5) Gives up and returns
+      4) Sends kill signal 9 to any remaining children then waits up to 10
+      seconds
+
+      5) Gives up and returns
 
 FENNEC PROJECT
+
     This module is part of the Fennec project. See Fennec for more details.
     Fennec is a project to develop an extendable and powerful testing
     framework. Together the tools that make up the Fennec framework provide
     a potent testing environment.
 
     The tools provided by Fennec are also useful on their own. Sometimes a
-    tool created for Fennec is useful outside the greator framework. Such
+    tool created for Fennec is useful outside the greater framework. Such
     tools are turned into their own projects. This is one such project.
 
     Fennec - The core framework
+
       The primary Fennec project that ties them all together.
 
 AUTHORS
+
     Chad Granum exodist7@gmail.com
 
 COPYRIGHT
+
     Copyright (C) 2010 Chad Granum
 
     Parallel-Runner is free software; Standard perl licence.
 
     Parallel-Runner is distributed in the hope that it will be useful, but
     WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for
-    more details.
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license
+    for more details.
 
diff --git a/debian/changelog b/debian/changelog
index 2c52f8a..4e0bd4a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libparallel-runner-perl (0.013+git20130922.1.5293746-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+  * Drop patch spelling-errors.patch, present upstream.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 19 Nov 2022 18:44:50 -0000
+
 libparallel-runner-perl (0.013-4) unstable; urgency=medium
 
   [ Debian Janitor ]
diff --git a/debian/patches/series b/debian/patches/series
index 38edaa7..e69de29 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +0,0 @@
-spelling-errors.patch
diff --git a/debian/patches/spelling-errors.patch b/debian/patches/spelling-errors.patch
deleted file mode 100644
index 1739521..0000000
--- a/debian/patches/spelling-errors.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Description: spelling errors
-Author: Xavier Guimard <x.guimard@free.fr>
-Bug: https://github.com/exodist/Parallel-Runner/issues/2
-Forwarded: https://github.com/exodist/Parallel-Runner/issues/2
-Last-Update: 2013-04-13
-
---- a/lib/Parallel/Runner.pm
-+++ b/lib/Parallel/Runner.pm
-@@ -189,11 +189,11 @@
- 
- There are several other modules to do this, you probably want one of them. This
- module exists as a super specialised parallel task manager. You create the
--object with a proces limit and callbacks for what to do while waiting for a
--free process slot, as well as a callback for what a process shoudl do just
-+object with a process limit and callbacks for what to do while waiting for a
-+free process slot, as well as a callback for what a process should do just
- before exiting.
- 
--You must explicetly call $runner->finish() when you are done. If the runner is
-+You must explicitly call $runner->finish() when you are done. If the runner is
- destroyed before it's children are finished a warning will be generated and
- your child processes will be killed, by force if necessary.
- 
diff --git a/lib/Parallel/Runner.pm b/lib/Parallel/Runner.pm
index 162ae29..2661337 100644
--- a/lib/Parallel/Runner.pm
+++ b/lib/Parallel/Runner.pm
@@ -105,7 +105,8 @@ sub _fork {
     $self->_iterate( sub { !defined $proc->exit_status } )
         if $self->max == 1;
 
-    $self->children($proc);
+    $self->children($proc)
+        unless defined $proc->exit_status;
 
     return $proc;
 }
@@ -189,11 +190,11 @@ Parallel::Runner - An object to manage running things in parallel processes.
 
 There are several other modules to do this, you probably want one of them. This
 module exists as a super specialised parallel task manager. You create the
-object with a proces limit and callbacks for what to do while waiting for a
-free process slot, as well as a callback for what a process shoudl do just
+object with a process limit and callbacks for what to do while waiting for a
+free process slot, as well as a callback for what a process should do just
 before exiting.
 
-You must explicetly call $runner->finish() when you are done. If the runner is
+You must explicitly call $runner->finish() when you are done. If the runner is
 destroyed before it's children are finished a warning will be generated and
 your child processes will be killed, by force if necessary.
 
@@ -236,7 +237,7 @@ allowed, defaults to 1.
 
 =head1 ACCESSORS
 
-These are simple accessors, provididng an argument sets the accessor to that
+These are simple accessors, providing an argument sets the accessor to that
 argument, no argument it simply returns the current value.
 
 =over 4
@@ -294,7 +295,7 @@ process slot.
 Codref to call whenever a pid is reaped using waitpid. The callback sub will be
 passed 3 values The first is the exit status of the child process. The second
 is the pid of the child process. The third used to be the return of waitpid,
-but this is depricated as L<Child> is now used and throws an exception when
+but this is deprecated as L<Child> is now used and throws an exception when
 waitpid is not what it should be. The third is simply the pid of the child
 process again. The final argument is the child process object itself.
 
@@ -381,7 +382,7 @@ Together the tools that make up the Fennec framework provide a potent testing
 environment.
 
 The tools provided by Fennec are also useful on their own. Sometimes a tool
-created for Fennec is useful outside the greator framework. Such tools are
+created for Fennec is useful outside the greater framework. Such tools are
 turned into their own projects. This is one such project.
 
 =over 2

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/share/doc/libparallel-runner-perl/changelog.gz

No differences were encountered in the control files

More details

Full run details