summaryrefslogtreecommitdiff
path: root/cross/avr-gdb/patches/patch-opcodes_configure
blob: d92a5529876f03b219a46737d0ca746857c26843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-opcodes_configure,v 1.2 2014/08/29 06:43:32 mef Exp $

Revert to gdb-7.5.1 to avoid following error
(But why this is necessary is unkown yet).

Configuring in ./opcodes
....
checking for gcc option to accept ISO C89... none needed
checking for library containing strerror... none required
./configure.lineno: 3236: Syntax error: Bad substitution
gmake[1]: *** [configure-opcodes] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/wip/gdb76/work/gdb-7.6'

--- opcodes/configure.orig	2013-07-03 10:59:20.000000000 +0900
+++ opcodes/configure	2013-07-03 12:02:37.000000000 +0900
@@ -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 -e 's/^.._INIT_AUTOMAKE.*,[        ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
 
 am__api_version='1.11'