public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Hans-Peter Nilsson <hp@bitrange.com>
Cc: GDB <gdb-patches@sourceware.org>, Binutils <binutils@sourceware.org>
Subject: Re: src-release broke with the zlib import
Date: Sat, 28 Mar 2015 13:51:00 -0000	[thread overview]
Message-ID: <CAMe9rOrEfCuZ3XYn3k7+fYq_N=cqxjgk0j+g_AZC=m8oX-m1EQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.BSF.2.02.1503280540170.13659@arjuna.pair.com>

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

On Sat, Mar 28, 2015 at 2:43 AM, Hans-Peter Nilsson <hp@bitrange.com> wrote:
> On Mon, 23 Mar 2015, H.J. Lu wrote:
>> I will import zlib from GCC on March 26 if there is no objection.
>
> Looks like the import broke the src-release script, at least
> for "binutils" and "sim":
>
> $ ./src-release.sh -b binutils
> [...]
> checking for unistd.h... (cached) yes
> configure: updating cache ./config.cache
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: executing default-1 commands
> ./config.status: line 1190: ./../../config-ml.in: No such file or directory
> make: *** [configure-zlib] Error 1
>
> brgds, H-P

I checked in this patch.  Verified with ./src-release.sh -b binutils
and ./src-release.sh -b gdb.

-- 
H.J.

[-- Attachment #2: 0001-A-zlib-to-tarball.patch --]
[-- Type: text/x-patch, Size: 2836 bytes --]

From 92c695a14f6a5a24b177e89624c13d7dbcbf9e1f Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Sat, 28 Mar 2015 06:48:43 -0700
Subject: [PATCH] A zlib to tarball

	* src-release.sh (do_proto_toplev): Configure with --target
	--with-target-subdir and --disable-multilib.
	(BINUTILS_SUPPORT_DIRS): Add zlib.
	(GAS_SUPPORT_DIRS): Likewise.
	(GDB_SUPPORT_DIRS): Likewise.
	(SIM_SUPPORT_DIRS): Likewise.
---
 ChangeLog      |  9 +++++++++
 src-release.sh | 12 +++++++-----
 2 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9b1895b..ad04e40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-03-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* src-release.sh (do_proto_toplev): Configure with --target
+	--with-target-subdir and --disable-multilib.
+	(BINUTILS_SUPPORT_DIRS): Add zlib.
+	(GAS_SUPPORT_DIRS): Likewise.
+	(GDB_SUPPORT_DIRS): Likewise.
+	(SIM_SUPPORT_DIRS): Likewise.
+
 2015-03-17  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* configure.ac (target_configdirs): Exclude target-zlib if
diff --git a/src-release.sh b/src-release.sh
index dad1649..558b012 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -83,7 +83,9 @@ do_proto_toplev()
 	<Makefile.in >tmp
     mv -f tmp Makefile.in
     #
-    ./configure --target=i386-pc-linux-gnu
+    ./configure --target=i386-pc-linux-gnu \
+	--with-target-subdir=. \
+	--disable-multilib
     $MAKE configure-host configure-target \
 	ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
 	CC_FOR_TARGET="$CC" CXX_FOR_TARGET="$CXX"
@@ -267,7 +269,7 @@ gdb_tar_compress()
 }
 
 # The FSF "binutils" release includes gprof and ld.
-BINUTILS_SUPPORT_DIRS="bfd gas include libiberty opcodes ld elfcpp gold gprof intl setup.com makefile.vms cpu"
+BINUTILS_SUPPORT_DIRS="bfd gas include libiberty opcodes ld elfcpp gold gprof intl setup.com makefile.vms cpu zlib"
 binutils_release()
 {
     compressors=$1
@@ -276,7 +278,7 @@ binutils_release()
     tar_compress $package $tool "$BINUTILS_SUPPORT_DIRS" "$compressors"
 }
 
-GAS_SUPPORT_DIRS="bfd include libiberty opcodes intl setup.com makefile.vms"
+GAS_SUPPORT_DIRS="bfd include libiberty opcodes intl setup.com makefile.vms zlib"
 gas_release()
 {
     compressors=$1
@@ -285,7 +287,7 @@ gas_release()
     tar_compress $package $tool "$GAS_SUPPORT_DIRS" "$compressors"
 }
 
-GDB_SUPPORT_DIRS="bfd include libiberty opcodes readline sim intl libdecnumber cpu"
+GDB_SUPPORT_DIRS="bfd include libiberty opcodes readline sim intl libdecnumber cpu zlib"
 gdb_release()
 {
     compressors=$1
@@ -295,7 +297,7 @@ gdb_release()
 }
 
 # Corresponding to the CVS "sim" module.
-SIM_SUPPORT_DIRS="bfd opcodes libiberty include intl gdb/version.in makefile.vms"
+SIM_SUPPORT_DIRS="bfd opcodes libiberty include intl gdb/version.in makefile.vms zlib"
 sim_release()
 {
     compressors=$1
-- 
2.1.0


      reply	other threads:[~2015-03-28 13:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAMe9rOp+5L0na923z1_jJQJuci=npuCQM6ktx7XG=gSOc1nZ+g@mail.gmail.com>
2015-03-14 19:31 ` RFC: Import zlib from GCC tree Joel Brobecker
2015-03-15 15:01   ` H.J. Lu
2015-03-16 23:24     ` Joel Brobecker
2015-03-16 23:34       ` H.J. Lu
2015-03-19 11:23         ` Joel Brobecker
2015-03-23 12:33           ` H.J. Lu
2015-03-28  9:43             ` src-release broke with the zlib import Hans-Peter Nilsson
2015-03-28 13:51               ` H.J. Lu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMe9rOrEfCuZ3XYn3k7+fYq_N=cqxjgk0j+g_AZC=m8oX-m1EQ@mail.gmail.com' \
    --to=hjl.tools@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    --cc=hp@bitrange.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).