summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/bison/ChangeLog8
-rw-r--r--sys-devel/bison/bison-2.0.ebuild3
-rw-r--r--sys-devel/bison/files/bison-2.0-token-name-translate.patch23
3 files changed, 31 insertions, 3 deletions
diff --git a/sys-devel/bison/ChangeLog b/sys-devel/bison/ChangeLog
index 4fd9fb340112..98dd1e7bb4f4 100644
--- a/sys-devel/bison/ChangeLog
+++ b/sys-devel/bison/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-devel/bison
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/ChangeLog,v 1.41 2005/03/04 21:47:59 kito Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/ChangeLog,v 1.42 2005/09/15 04:26:00 vapier Exp $
+
+ 15 Sep 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/bison-2.0-token-name-translate.patch, bison-2.0.ebuild:
+ Fix from upstream for segfault in error reporting #106014 by postmodern.
04 Mar 2005; Kito <kito@gentoo.org> bison-1.875d.ebuild:
~ppc-macos keyword. closes Bug 65957
diff --git a/sys-devel/bison/bison-2.0.ebuild b/sys-devel/bison/bison-2.0.ebuild
index e5fe34fe89cf..7a5cc3754b1b 100644
--- a/sys-devel/bison/bison-2.0.ebuild
+++ b/sys-devel/bison/bison-2.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/bison-2.0.ebuild,v 1.2 2005/03/09 02:12:08 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/bison-2.0.ebuild,v 1.3 2005/09/15 04:26:00 vapier Exp $
inherit toolchain-funcs flag-o-matic eutils gnuconfig
@@ -20,6 +20,7 @@ src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.32-extfix.patch
+ epatch "${FILESDIR}"/${P}-token-name-translate.patch #106014
}
src_compile() {
diff --git a/sys-devel/bison/files/bison-2.0-token-name-translate.patch b/sys-devel/bison/files/bison-2.0-token-name-translate.patch
new file mode 100644
index 000000000000..ec00e0dccdb2
--- /dev/null
+++ b/sys-devel/bison/files/bison-2.0-token-name-translate.patch
@@ -0,0 +1,23 @@
+revision 1.57
+date: 2005/07/25 03:38:41; author: eggert; state: Exp; lines: +1 -1
+Fix core dump reported by Pablo De Napoli in
+<http://lists.gnu.org/archive/html/bug-bison/2005-07/msg00053.html>.
+* tests/regression.at (Invalid inputs with {}): New test.
+* src/parse-gram.y (token_name): Translate type before using
+it as an index.
+
+Index: src/parse-gram.y
+===================================================================
+RCS file: /cvsroot/bison/bison/src/parse-gram.y,v
+retrieving revision 1.56
+retrieving revision 1.57
+diff -u -p -r1.56 -r1.57
+--- src/parse-gram.c 24 Jul 2005 07:24:22 -0000 1.56
++++ src/parse-gram.c 25 Jul 2005 03:38:41 -0000 1.57
+@@ -538,5 +538,5 @@ gram_error (location const *loc, char co
+ char const *
+ token_name (int type)
+ {
+- return yytname[type];
++ return yytname[YYTRANSLATE (type)];
+ }