summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2009-05-12 12:57:33 +0200
committerJuergen Daubert <jue@jue.li>2009-05-12 12:57:33 +0200
commit782e0bf8f077083209f35e61f9f776d471b86b9e (patch)
treec08636ec321b02c3a4e3862196309882071f358c /binutils
parentbcc8fca66d369a5c1f7c636d9ce7bd06f142d752 (diff)
downloadcore-782e0bf8f077083209f35e61f9f776d471b86b9e.tar.gz
core-782e0bf8f077083209f35e61f9f776d471b86b9e.tar.xz
binutils: patch to fix failure on make check
Diffstat (limited to 'binutils')
-rw-r--r--binutils/.md5sum1
-rw-r--r--binutils/Pkgfile6
-rw-r--r--binutils/test-demangle.c.diff40
3 files changed, 45 insertions, 2 deletions
diff --git a/binutils/.md5sum b/binutils/.md5sum
index 452d8f2e..ed817a36 100644
--- a/binutils/.md5sum
+++ b/binutils/.md5sum
@@ -1 +1,2 @@
09a8c5821a2dfdbb20665bc0bd680791 binutils-2.19.1.tar.bz2
+547895a1bfb0224835995a3bd9690ae4 test-demangle.c.diff
diff --git a/binutils/Pkgfile b/binutils/Pkgfile
index 638d9b1a..5f2e0558 100644
--- a/binutils/Pkgfile
+++ b/binutils/Pkgfile
@@ -4,10 +4,12 @@
name=binutils
version=2.19.1
-release=1
-source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
+release=2
+source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2
+ test-demangle.c.diff)
build() {
+ patch -d $name-$version -p0 -i $SRC/test-demangle.c.diff
sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
mkdir build
cd build
diff --git a/binutils/test-demangle.c.diff b/binutils/test-demangle.c.diff
new file mode 100644
index 00000000..bda8b7d7
--- /dev/null
+++ b/binutils/test-demangle.c.diff
@@ -0,0 +1,40 @@
+# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39752
+
+Index: libiberty/testsuite/test-demangle.c
+===================================================================
+--- libiberty/testsuite/test-demangle.c (revision 145957)
++++ libiberty/testsuite/test-demangle.c (working copy)
+@@ -46,7 +46,7 @@
+ #define LINELEN 80
+
+ static void
+-getline(buf)
++get_line(buf)
+ struct line *buf;
+ {
+ char *data = buf->data;
+@@ -196,12 +196,12 @@
+ {
+ const char *inp;
+
+- getline (&format);
++ get_line (&format);
+ if (feof (stdin))
+ break;
+
+- getline (&input);
+- getline (&expect);
++ get_line (&input);
++ get_line (&expect);
+
+ inp = protect_end (input.data);
+
+@@ -322,7 +322,7 @@
+
+ if (no_params)
+ {
+- getline (&expect);
++ get_line (&expect);
+ result = cplus_demangle (inp, DMGL_ANSI|DMGL_TYPES);
+
+ if (result

Generated by cgit