This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/16370] building gdb fails when bash is not installed
- From: "ncopa at alpinelinux dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 06 May 2014 07:07:51 +0000
- Subject: [Bug build/16370] building gdb fails when bash is not installed
- Auto-submitted: auto-generated
- References: <bug-16370-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16370
--- Comment #7 from ncopa at alpinelinux dot org ---
I finally found a way to reproduce it on fedora-20 and binutils-2.24:
yum install busybox
mv /bin/sh /bin/sh.backup
ln -s /usr/sbin/busybox /bin/sh
CONFIG_SHELL=/bin/sh ./configure
make configure-host
Some things to note:
CONFIG_SHELL=/bin/ash ./configure does not trigger it.
This is from configure.lineno:
...
for as_base in sh bash ksh sh5; do
# Try only shells that exist, to save several forks.
as_shell=$as_dir/$as_base
...
note that it does not check for "ash".
configure will find and use /bin/bash if it exists - even if /bin/sh points to
something else. So rename /bin/bash might also trigger it (careful though.. its
the shell for root so you can easily brick your fedora box...)
I was not able to trigger it with dash. I think this is becuase recent versions
of dash has support for $LINENO, so it does not use sed to generate
configure.lineno (where i think the problem is). (see under LINENO on
http://www.gnu.org/software/autoconf/manual/autoconf.html#Special-Shell-Variables)
I think it might be possible to trigger it with dash on (older?) debian.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582952
My conclusion is that something is broke with the generation of
configure.lineno in the version of autoconf that created the tarball. (2.64).
--
You are receiving this mail because:
You are on the CC list for the bug.