Implement '--enable-src-release-build' option and make src-release.sh use it
authorSergio Durigan Junior <sergiodj@redhat.com>
Sat, 1 Feb 2020 20:33:31 +0000 (15:33 -0500)
committerSergio Durigan Junior <sergiodj@redhat.com>
Sat, 1 Feb 2020 20:33:31 +0000 (15:33 -0500)
The generation of snapshots has been broken since we've disable
in-tree builds for GDB.  Given that src-release.sh performs a build
before creating the release tarball, and that this build is performed
in-tree, the solution we found is to implement a new top-level
configure flag called '--enable-src-release-build' which disables the
in-tree build restriction, and then make src-release.sh use it.

ChangeLog:
2020-02-01  Sergio Durigan Junior  <sergiodj@redhat.com>
    Eli Zaretskii  <eliz@gnu.org>

* configure.ac: Don't abort the build if trying to build GDB in tree
_and_ invoking with '--enable-src-release-build'.
* configure: Regenerate.
* src-release.sh (do_proto_toplev): Invoke 'configure' using

Change-Id: Ic6dd55accd9a03e62fe498f7fd704fb67f44bfa9

ChangeLog
configure
configure.ac
src-release.sh

index 0bfe9898853694206c58144f78fb39d0c7208247..211451345e8190316d05a94c463707598b53bf86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-02-01  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * configure.ac: Don't abort the build if trying to build GDB in tree
+       _and_ invoking with '--enable-src-release-build'.
+       * configure: Regenerate.
+       * src-release.sh (do_proto_toplev): Invoke 'configure' using
+       '--enable-src-release-build'.
+
 2020-01-17  Joel Brobecker  <brobecker@adacore.com>
 
        * configure.ac: Abort the build with an error if trying to build
index 7168a4e90e0df2cb0d4d9e74f6d83195f277601d..276f33fee39208e71210c8fb70ff1b3d4e7401b6 100755 (executable)
--- a/configure
+++ b/configure
@@ -2279,7 +2279,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
-if test x"${enable_gdb}" != x"no"; then
+if test x"${enable_gdb}" != x"no" -a x"${enable_src_release_build}" != x"yes"; then
   # For this branch, we do not support building GDB in-tree.
   # Try to detect whether we are in this situation or not by
   # searching for a couple of known files in the source directory.
index e5ca1eaa57a30ab6f63e3c06b2503e8f19f050ff..cd0867dd76d7c1b21de783b744ef4eb2a99a13c4 100644 (file)
@@ -33,7 +33,7 @@ m4_include([config/isl.m4])
 AC_INIT(move-if-change)
 AC_DISABLE_OPTION_CHECKING
 
-if test x"${enable_gdb}" != x"no"; then
+if test x"${enable_gdb}" != x"no" -a x"${enable_src_release_build}" != x"yes"; then
   # For this branch, we do not support building GDB in-tree.
   # Try to detect whether we are in this situation or not by
   # searching for a couple of known files in the source directory.
index 275f0f24b5d3c1a3e764865684eb8495b55c2378..68e824c74921637887da0668e291776ed15eb80f 100755 (executable)
@@ -99,8 +99,8 @@ do_proto_toplev()
            *) disables="$disables --disable-$dir" ;;
        esac
     done
-    echo "==> configure --target=i386-pc-linux-gnu $disables $enables"
-    ./configure --target=i386-pc-linux-gnu $disables $enables
+    echo "==> configure --target=i386-pc-linux-gnu --enable-src-release-build=yes $disables $enables"
+    ./configure --target=i386-pc-linux-gnu --enable-src-release-build=yes $disables $enables
     $MAKE configure-host configure-target \
        ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
        CC_FOR_TARGET="$CC" CXX_FOR_TARGET="$CXX"
This page took 0.035166 seconds and 4 git commands to generate.