]> git.donarmstrong.com Git - debhelper.git/commitdiff
move dh_auto_configure out of @bd_minimal
authorJoey Hess <joey@kitenet.net>
Mon, 13 Jun 2011 20:14:59 +0000 (16:14 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 13 Jun 2011 20:14:59 +0000 (16:14 -0400)
Callers overriding build targets will need to configure by hand or by
calling dh_auto_configure, which should be the status quo. And moving
dh_auto_configure to build (and build-arch and build-indep) will not
make it run twice AFAICS (except for the edge case when it already did:
debian/rules build-arch build-indep)

dh

diff --git a/dh b/dh
index fd137379e398ea407c9686ba7c746a76115cb29e..dcf3b9c6e748d74e9d3c8b6bcf956078f3959fa0 100755 (executable)
--- a/dh
+++ b/dh
@@ -340,12 +340,13 @@ if (is_make_jobserver_unavailable()) {
 my %sequences;
 my @bd_minimal = qw{
        dh_testdir
-       dh_auto_configure
 };
-my @bd = (@bd_minimal, qw{
+my @bd = qw{
+       dh_testdir
+       dh_auto_configure
        dh_auto_build
        dh_auto_test
-});
+       };
 # rules:build-arch and rules:build-indep are not called by build,
 # as an optimisation (code below will adjust this if explicit targets exist).
 $sequences{build} = [@bd];
@@ -359,7 +360,8 @@ $sequences{clean} = [qw{
 my @i_minimal = qw{
        dh_testroot
 };
-my @i = (@i_minimal, qw{
+my @i = qw{
+       dh_testroot
        dh_prep
        dh_installdirs
        dh_auto_install
@@ -399,7 +401,7 @@ my @i = (@i_minimal, qw{
        dh_link
        dh_compress
        dh_fixperms
-});
+};
 # The install sequences will call rules:build before running
 # the standard sequence. rules:install-arch and rules:install-indep
 # are not called by install, as an optimisation (code below will adjust