]> git.donarmstrong.com Git - debhelper.git/commitdiff
autoconf: If configure fails, cat config.log. Intended to make it easier to debug...
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 17 Nov 2009 02:10:45 +0000 (21:10 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 17 Nov 2009 02:10:45 +0000 (21:10 -0500)
Debian/Debhelper/Buildsystem/autoconf.pm
debian/changelog

index 7229fc718e866a61a992f5f6b6509dc68917da40..59b6c6b26d087526351fa5b199fe5d46ebdf0d3a 100644 (file)
@@ -49,7 +49,15 @@ sub configure {
        }
 
        $this->mkdir_builddir();
-       $this->doit_in_builddir($this->get_source_rel2builddir("configure"), @opts, @_);
+       eval {
+               $this->doit_in_builddir($this->get_source_rel2builddir("configure"), @opts, @_);
+       };
+       if ($@) {
+               if (-e $this->get_buildpath("config.log")) {
+                       $this->doit_in_builddir("cat config.log");
+               }
+               die $@;
+       }
 }
 
 1
index 05b5b80bef6d4fc40daf9b86f0b719f03d46ce20..6b8ea9197389f1e98c61585148f9f8354e9b03eb 100644 (file)
@@ -23,6 +23,9 @@ debhelper (7.4.4) UNRELEASED; urgency=low
   * Typo. Closes: #555659
   * cmake: Set CTEST_OUTPUT_ON_FAILURE when running test suite.
     Closes: #555807
+  * autoconf: If configure fails, cat config.log. Intended to make
+    it easier to debug configure script failures on autobuilders.
+    Closes: #556384
 
  -- Joey Hess <joeyh@debian.org>  Wed, 28 Oct 2009 18:10:45 -0400