From ff68d6e1500f37eb846787f00dd136bc6ed5f8a4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Feb 2006 20:07:01 +0000 Subject: Fix by Diego Pettenò to make sure we use GNU m4 #123471. (Portage version: 2.1_pre4-r1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sys-devel/flex/ChangeLog | 6 +++- sys-devel/flex/files/flex-2.5.31-gnu-m4.patch | 42 +++++++++++++++++++++++++++ sys-devel/flex/flex-2.5.31-r2.ebuild | 3 +- 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 sys-devel/flex/files/flex-2.5.31-gnu-m4.patch (limited to 'sys-devel') diff --git a/sys-devel/flex/ChangeLog b/sys-devel/flex/ChangeLog index 5a6de762d429..3e636bdd931c 100644 --- a/sys-devel/flex/ChangeLog +++ b/sys-devel/flex/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-devel/flex # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.39 2006/02/09 05:35:18 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.40 2006/02/20 20:07:01 vapier Exp $ + + 20 Feb 2006; Mike Frysinger + +files/flex-2.5.31-gnu-m4.patch, flex-2.5.31-r2.ebuild: + Fix by Diego Pettenò to make sure we use GNU m4 #123471. *flex-2.5.31-r2 (09 Feb 2006) diff --git a/sys-devel/flex/files/flex-2.5.31-gnu-m4.patch b/sys-devel/flex/files/flex-2.5.31-gnu-m4.patch new file mode 100644 index 000000000000..8b27dcec41df --- /dev/null +++ b/sys-devel/flex/files/flex-2.5.31-gnu-m4.patch @@ -0,0 +1,42 @@ +This is a simple hack to get flex to use GNU m4 on non-GNU systems. +The issue has been fixed properly upstream already, we use this +because it's much smaller. + +Patch by Diego Pettenò + +http://bugs.gentoo.org/123471 + + +--- flex-2.5.31/main.c ++++ flex-2.5.31/main.c +@@ -344,7 +344,7 @@ void check_options () + + /* Setup the filter chain. */ + output_chain = filter_create_int(NULL, filter_tee_header, headerfilename); +- filter_create_ext(output_chain,"m4","-P",0); ++ filter_create_ext(output_chain,GM4_PROGRAM,"-P",0); + filter_create_int(output_chain, filter_fix_linedirs, NULL); + + /* For debugging, only run the requested number of filters. */ +--- flex-2.5.31/Makefile.am ++++ flex-2.5.31/Makefile.am +@@ -141,7 +141,7 @@ SUBDIRS = \ + tests + + localedir = $(datadir)/locale +-AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I@includedir@ -I$(top_srcdir)/intl ++AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I@includedir@ -I$(top_srcdir)/intl -DGM4_PROGRAM=\"@M4@\" + LIBS = @LIBINTL@ @LIBS@ + + skel.c: flex.skl mkskel.sh flexint.h tables_shared.h +--- flex-2.5.31/Makefile.in ++++ flex-2.5.31/Makefile.in +@@ -290,7 +290,7 @@ SUBDIRS = \ + + + localedir = $(datadir)/locale +-AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I@includedir@ -I$(top_srcdir)/intl ++AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I@includedir@ -I$(top_srcdir)/intl -DGM4_PROGRAM=\"@M4@\" + + # Run GNU indent on sources. Don't run this unless all the sources compile cleanly. + # diff --git a/sys-devel/flex/flex-2.5.31-r2.ebuild b/sys-devel/flex/flex-2.5.31-r2.ebuild index cade5d7d876e..fc121d2672a6 100644 --- a/sys-devel/flex/flex-2.5.31-r2.ebuild +++ b/sys-devel/flex/flex-2.5.31-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.31-r2.ebuild,v 1.1 2006/02/09 05:35:18 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.31-r2.ebuild,v 1.2 2006/02/20 20:07:01 vapier Exp $ inherit eutils flag-o-matic @@ -25,6 +25,7 @@ src_unpack() { epatch "${FILESDIR}"/${P}-include.patch epatch "${FILESDIR}"/${P}-isatty.patch #119598 epatch "${FILESDIR}"/${P}-check-for-locale-header.patch #121920 + epatch "${FILESDIR}"/${P}-gnu-m4.patch #123471 } src_compile() { -- cgit v1.2.3-65-gdbad