diff options
author | P. J. McDermott <pjm@nac.net> | 2014-01-17 08:48:20 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-01-17 08:52:13 (EST) |
commit | 58bbcf3bbe3186486d89b294988ab34dc2c6718a (patch) | |
tree | e3e1bdaee4f8700a9e563d2a97ef5f9f505e5bc6 | |
parent | 4a4b65f272364afc48f9a4f86b3b57acb4824c3a (diff) |
Add patch to fix opcodes/configure on BusyBox ash.
-rw-r--r-- | patches/02_fix-opcodes-configure-bfd-version-on-busybox-ash.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/patches/02_fix-opcodes-configure-bfd-version-on-busybox-ash.patch b/patches/02_fix-opcodes-configure-bfd-version-on-busybox-ash.patch new file mode 100644 index 0000000..a2672cc --- /dev/null +++ b/patches/02_fix-opcodes-configure-bfd-version-on-busybox-ash.patch @@ -0,0 +1,41 @@ +Author: "P. J. McDermott" <pjm@nac.net> +Subject: Fix opcodes/configure (BFD_VERSION) on BusyBox ash + +Commit c4dd807 in binutils-gdb.git somehow broke opcodes/configure on ash: + + mkdir ./opcodes + Configuring in ./opcodes + configure: creating cache ./config.cache + [...] + /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' + +I'm not sure why this happens, but I suspect _AS_LINENO_PREPARE is involved +here. + +For now, we'll avoid this issue by reverting to pre-c4dd807 behavior, updated to +use AC_INIT. + +diff -Naur src.orig/opcodes/configure src/opcodes/configure +--- src.orig/opcodes/configure 2013-02-06 18:22:25.000000000 -0500 ++++ src/opcodes/configure 2014-01-17 08:25:48.281453599 -0500 +@@ -3216,7 +3216,7 @@ + # We currently only use the version number for the name of any shared + # library. For user convenience, we always use the same version + # number that BFD is using. +-BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'` ++BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p' <${srcdir}/../bfd/configure.in` + + am__api_version='1.11' + +diff -Naur src.orig/opcodes/configure.in src/opcodes/configure.in +--- src.orig/opcodes/configure.in 2013-02-06 18:22:26.000000000 -0500 ++++ src/opcodes/configure.in 2014-01-17 08:25:42.873294676 -0500 +@@ -28,7 +28,7 @@ + # library. For user convenience, we always use the same version + # number that BFD is using. + changequote(,)dnl +-BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'` ++BFD_VERSION=`sed -n 's/AC_INIT(\[bfd\], *\[\([0-9.]*\)\])/\1/p' <${srcdir}/../bfd/configure.in` + changequote([,])dnl + + AM_INIT_AUTOMAKE(opcodes, ${BFD_VERSION}) |