1 Author: "P. J. McDermott" <pjm@nac.net>
2 Subject: Fix opcodes/configure (BFD_VERSION) on BusyBox ash
4 Commit c4dd807 in binutils-gdb.git somehow broke opcodes/configure on ash:
7 Configuring in ./opcodes
8 configure: creating cache ./config.cache
10 /usr/src/gdb_7.6.1+sip1-1/tmp/src/opcodes/configure: .: line 12678: can't open '/usr/src/gdb_7.6.1+sip1-1/tmp/src/opcodes/configure.host'
12 I'm not sure why this happens, but I suspect _AS_LINENO_PREPARE is involved
15 For now, we'll avoid this issue by reverting to pre-c4dd807 behavior, updated to
18 diff -Naur src.orig/opcodes/configure src/opcodes/configure
19 --- src.orig/opcodes/configure 2013-02-06 18:22:25.000000000 -0500
20 +++ src/opcodes/configure 2014-01-17 08:25:48.281453599 -0500
22 # We currently only use the version number for the name of any shared
23 # library. For user convenience, we always use the same version
24 # number that BFD is using.
25 -BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
26 +BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p' <${srcdir}/../bfd/configure.in`
28 am__api_version='1.11'
30 diff -Naur src.orig/opcodes/configure.in src/opcodes/configure.in
31 --- src.orig/opcodes/configure.in 2013-02-06 18:22:26.000000000 -0500
32 +++ src/opcodes/configure.in 2014-01-17 08:25:42.873294676 -0500
34 # library. For user convenience, we always use the same version
35 # number that BFD is using.
37 -BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
38 +BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p' <${srcdir}/../bfd/configure.in`
41 AM_INIT_AUTOMAKE(opcodes, ${BFD_VERSION})
42 --- binutils-2.24.org//gas/configure
43 +++ binutils-2.24/gas/configure
48 -BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
49 +BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p' <${srcdir}/../bfd/configure.in`
50 am__api_version='1.11'
52 # Find a good install program. We prefer a C program (faster),
53 --- binutils-2.24.org/gprof/configure
54 +++ binutils-2.24/gprof/configure
59 -BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
60 +BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p' <${srcdir}/../bfd/configure.in`
61 am__api_version='1.11'
63 # Find a good install program. We prefer a C program (faster),
64 --- binutils-2.24.org/binutils/configure
65 +++ binutils-2.24/binutils/configure
70 -BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
71 +BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p' <${srcdir}/../bfd/configure.in`
72 am__api_version='1.11'
74 # Find a good install program. We prefer a C program (faster),
75 --- binutils-2.24.org/ld/configure
76 +++ binutils-2.24/ld/configure
81 -BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
82 +BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p' <${srcdir}/../bfd/configure.in`
83 am__api_version='1.11'
85 # Find a good install program. We prefer a C program (faster),