diff options
author | Aron Griffis <agriffis@gentoo.org> | 2004-04-05 04:03:23 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2004-04-05 04:03:23 +0000 |
commit | 0679d141fc37de93e67c256179e37f3dab5d7663 (patch) | |
tree | d8de54bc6081f643310d47e8fe5b02706eeee88a /dev-util/yacc | |
parent | Add patch from Jaime Alvaro Moreno in bug 46233 to make byacc work correctly ... (diff) | |
download | historical-0679d141fc37de93e67c256179e37f3dab5d7663.tar.gz historical-0679d141fc37de93e67c256179e37f3dab5d7663.tar.bz2 historical-0679d141fc37de93e67c256179e37f3dab5d7663.zip |
Propogate CFLAGS to Makefile in a sed-safe way. Use 64-bit patch from bug 46233 (also applied to byacc)
Diffstat (limited to 'dev-util/yacc')
-rw-r--r-- | dev-util/yacc/ChangeLog | 7 | ||||
-rw-r--r-- | dev-util/yacc/Manifest | 6 | ||||
-rw-r--r-- | dev-util/yacc/files/mkstemp.patch | 15 | ||||
-rw-r--r-- | dev-util/yacc/files/yacc-1.9.1-ia64.patch | 24 | ||||
-rw-r--r-- | dev-util/yacc/yacc-1.9.1-r1.ebuild | 21 |
5 files changed, 65 insertions, 8 deletions
diff --git a/dev-util/yacc/ChangeLog b/dev-util/yacc/ChangeLog index d06066742f60..ca43f824e027 100644 --- a/dev-util/yacc/ChangeLog +++ b/dev-util/yacc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-util/yacc # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.10 2004/03/05 14:18:14 tgall Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.11 2004/04/05 04:03:23 agriffis Exp $ + + 05 Apr 2004; Aron Griffis <agriffis@gentoo.org> yacc-1.9.1-r1.ebuild, + files/mkstemp.patch, files/yacc-1.9.1-ia64.patch: + Propogate CFLAGS to Makefile in a sed-safe way. Use 64-bit patch from bug + 46233 (also applied to byacc) 05 Mar 2004; Tom Gall <tgall@gentoo.org> yacc-1.9.1-r1.ebuild: Stable on ppc64 diff --git a/dev-util/yacc/Manifest b/dev-util/yacc/Manifest index 6be2d4789fe4..d3fc55ef8ec6 100644 --- a/dev-util/yacc/Manifest +++ b/dev-util/yacc/Manifest @@ -1,3 +1,5 @@ +MD5 7751ed920f8a33e1805f84fcee4be183 ChangeLog 1577 +MD5 85c9b31b808057d03362e15c2daf7935 yacc-1.9.1-r1.ebuild 1074 MD5 afeab71394d9c421389458f63b2cb173 files/digest-yacc-1.9.1-r1 60 -MD5 25c6079a4f563ae521eecd107853e881 ChangeLog 1341 -MD5 2ccfd053c6b416ca2f635f793da37c86 yacc-1.9.1-r1.ebuild 779 +MD5 c5a221a78a10f6156ea9ddb2ade30598 files/yacc-1.9.1-ia64.patch 504 +MD5 df645d0e6382050201af35e3002dfc5b files/mkstemp.patch 413 diff --git a/dev-util/yacc/files/mkstemp.patch b/dev-util/yacc/files/mkstemp.patch new file mode 100644 index 000000000000..f037e331fb5b --- /dev/null +++ b/dev-util/yacc/files/mkstemp.patch @@ -0,0 +1,15 @@ +--- main.c.orig 2002-12-17 14:28:54.000000000 -0500 ++++ main.c 2002-12-17 14:29:31.000000000 -0500 +@@ -264,9 +264,9 @@ + text_file_name[len + 5] = 't'; + union_file_name[len + 5] = 'u'; + +- mktemp(action_file_name); +- mktemp(text_file_name); +- mktemp(union_file_name); ++ mkstemp(action_file_name); ++ mkstemp(text_file_name); ++ mkstemp(union_file_name); + + len = strlen(file_prefix); + diff --git a/dev-util/yacc/files/yacc-1.9.1-ia64.patch b/dev-util/yacc/files/yacc-1.9.1-ia64.patch new file mode 100644 index 000000000000..c10e88541287 --- /dev/null +++ b/dev-util/yacc/files/yacc-1.9.1-ia64.patch @@ -0,0 +1,24 @@ +--- byacc-1.9/defs.h.busted Sat May 6 21:10:56 2000 ++++ byacc-1.9/defs.h Sat May 6 21:11:22 2000 +@@ -1,7 +1,8 @@ + #include <assert.h> + #include <ctype.h> + #include <stdio.h> +- ++#include <string.h> ++#include <stdlib.h> + + /* machine-dependent definitions */ + /* the following definitions are for the Tahoe */ +@@ -280,10 +281,3 @@ + extern int errno; + + +-/* system functions */ +- +-extern void free(); +-extern char *calloc(); +-extern char *malloc(); +-extern char *realloc(); +-extern char *strcpy(); + diff --git a/dev-util/yacc/yacc-1.9.1-r1.ebuild b/dev-util/yacc/yacc-1.9.1-r1.ebuild index d45e0df82fc6..b888ad88fa7d 100644 --- a/dev-util/yacc/yacc-1.9.1-r1.ebuild +++ b/dev-util/yacc/yacc-1.9.1-r1.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/yacc-1.9.1-r1.ebuild,v 1.24 2004/03/13 01:44:56 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/yacc-1.9.1-r1.ebuild,v 1.25 2004/04/05 04:03:23 agriffis Exp $ + +inherit eutils DESCRIPTION="Yacc" HOMEPAGE="http://dinosaur.compilertools.net/#yacc" @@ -10,18 +12,27 @@ LICENSE="as-is" SLOT="0" KEYWORDS="x86 ppc ppc64 sparc alpha mips hppa amd64 ia64 s390" -DEPEND="virtual/glibc" +RDEPEND="virtual/glibc" +DEPEND="${RDEPEND} >=sys-apps/sed-4" src_unpack () { unpack ${A} cd ${S} - cp Makefile Makefile.orig - sed -e "s:-O:${CFLAGS}:" Makefile.orig > Makefile + + # Use our CFLAGS + sed -i -e 's: -O : $(CFLAGS) :' Makefile || die 'sed failed' + + # mkstemp patch from byacc ebuild + epatch ${FILESDIR}/mkstemp.patch + + # The following patch fixes yacc to run correctly on ia64 (and + # other 64-bit arches). See bug 46233 + epatch ${FILESDIR}/yacc-1.9.1-ia64.patch } src_compile() { make clean || die - make || die + make CFLAGS="${CFLAGS}" || die } src_install() { |