]> git.donarmstrong.com Git - debhelper.git/commitdiff
remove implicit --parallel setting by dh
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 28 Oct 2009 22:30:24 +0000 (18:30 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 28 Oct 2009 22:30:24 +0000 (18:30 -0400)
debhelper.pod
debian/changelog
dh

index 238675ab6f084378057dbf7c5396e535365cf7e2..20ca9d7dde01f05c8d4f793e91e0b54283de3c2e 100644 (file)
@@ -214,9 +214,6 @@ variable (as per Debian Policy section 4.9.1).
 
 The number of parallel processes will be the smaller value specified by
 I<--parallel>, DEB_BUILD_OPTIONS, or a build system specific limit.
-So, I<--parallel=1> can be used to disable parallel building, or a larger
-number can be specified if a package is known to only successfully build
-with a limited number of parallel processes.
 
 =item B<--list>, B<-l>
 
index d164f73b442202b3d4580e4330668045d3d6240a..9d1f81fedaccbd5b3730a36fd51627e7caf5c9ce 100644 (file)
@@ -5,8 +5,8 @@ debhelper (7.4.4) UNRELEASED; urgency=low
     and the build system supports it, parallel building is done.
   * The makefile buildsystem (and derived buildsystems) now supports
     parallel building.
-  * dh: If --parallel is not explicitly specified, enable it anyway.
-    Closes: #532805.
+  * Typically, to enable parallel building, the --parallel option will
+    be passed to dh. Closes: #532805
   * Thanks, Modestas Vainius for most of the work on parallel build support.
 
  -- Joey Hess <joeyh@debian.org>  Wed, 28 Oct 2009 18:10:45 -0400
diff --git a/dh b/dh
index 775e94921d90b64a39d89f391fcaf2a6f18b7aeb..0ecfe442d5a9f5cbb4f0950c5ed30494fa677b78 100755 (executable)
--- a/dh
+++ b/dh
@@ -41,13 +41,6 @@ override target can then run the command with additional options, or run
 entirely different commands instead. (Note that to use this feature,
 you should Build-Depend on debhelper 7.0.50 or above.)
 
-dh passes --parallel to dh_auto_* commands if it detects being run by the
-C<dpkg-buildpackage -jX> command, but a job server of the parent I<make>
-(presumably debian/rules) is not reachable. Nonetheless, it is highly
-recommended to pass --parallel/-j option to dh explicitly to indicate that a
-source package supports parallel building. See L<debhelper(7)/"BUILD SYSTEM
-OPTIONS"> for more information.
-
 =head1 OPTIONS
 
 =over 4
@@ -229,8 +222,6 @@ init(options => {
        },
        "l" => \$dh{LIST},
        "list" => \$dh{LIST},
-       "j:i" => \$dh{PARALLEL},
-       "parallel:i" => \$dh{PARALLEL},
 });
 inhibit_log();
 
@@ -239,9 +230,6 @@ inhibit_log();
 # server. 
 if (is_make_jobserver_unavailable()) {
        clean_jobserver_makeflags();
-       # Implicitly enable parallel (no maximum) if a value was not previously
-       # specified.
-       $dh{PARALLEL} = 0 unless defined $dh{PARALLEL};
 }
 
 # Definitions of sequences.
@@ -450,12 +438,7 @@ while (@ARGV_orig) {
                shift @ARGV_orig;
                next;
        }
-       elsif ($opt =~ /^--?(no-act|remaining|(after|until|before|with|without|parallel)=)/) {
-               next;
-       }
-       elsif ($opt =~ /^(-j|--parallel)$/) {
-               # Argument to -j/--parallel is optional.
-               shift @ARGV_orig if @ARGV_orig > 0 && $ARGV_orig[0] =~ /^\d+$/;
+       elsif ($opt =~ /^--?(no-act|remaining|(after|until|before|with|without)=)/) {
                next;
        }
        push @options, $opt;
@@ -536,12 +519,6 @@ sub run {
        # to prevent them from being acted on.
        push @options, map { "-N$_" } @exclude;
 
-       # Pass --parallel to dh_auto_* commands.
-       if (defined $dh{PARALLEL} && $dh{PARALLEL} != 1
-           && $command =~ /^dh_auto_/) {
-               push @options, "--parallel" . ($dh{PARALLEL} > 1 ? "=$dh{PARALLEL}" : "");
-       }
-
        # Check for override targets in debian/rules and
        # run them instead of running the command directly.
        my $override_command;