summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/yacc/ChangeLog9
-rw-r--r--dev-util/yacc/Manifest11
-rw-r--r--dev-util/yacc/yacc-1.9.1-r5.ebuild63
3 files changed, 76 insertions, 7 deletions
diff --git a/dev-util/yacc/ChangeLog b/dev-util/yacc/ChangeLog
index 5dabdf155a93..a85a07cc26e0 100644
--- a/dev-util/yacc/ChangeLog
+++ b/dev-util/yacc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/yacc
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.25 2008/10/27 20:04:57 ranger Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.26 2010/08/28 12:32:36 truedfx Exp $
+
+*yacc-1.9.1-r5 (28 Aug 2010)
+
+ 28 Aug 2010; Harald van Dijk <truedfx@gentoo.org> +yacc-1.9.1-r5.ebuild:
+ Use LDFLAGS (#334983 by flameeyes), plus emake/RDEPEND cleanup
27 Oct 2008; Brent Baude <ranger@gentoo.org> yacc-1.9.1-r4.ebuild:
Marking yacc-1.9.1-r4 ppc64 for bug 232005
diff --git a/dev-util/yacc/Manifest b/dev-util/yacc/Manifest
index 45fa4621d338..6d1811524e24 100644
--- a/dev-util/yacc/Manifest
+++ b/dev-util/yacc/Manifest
@@ -7,12 +7,13 @@ AUX yacc-1.9.1-ia64.patch 504 RMD160 afad61c65df5450e397731ea014456c9edefaa13 SH
DIST yacc-1.9.1.tar.Z 64805 RMD160 f0efe89f6c6d7137f1191dd5aa2c91456ff20a3b SHA1 697ea853533e325f47b6b13401d05e7c97012729 SHA256 8a0f3faf78d0ada00eea5ffd1e141bb7a979d5d570a4c8a9a6ea57e5f3751477
EBUILD yacc-1.9.1-r3.ebuild 1555 RMD160 05d58409a201c291fa40d1e002fc9c3da4ba5949 SHA1 ed03ed29cade70f75c8ee98b68f270e9b7c56d83 SHA256 e1358a247af240b0e0e103ae58234af0163e6ac8def31cce0ec28a354807a513
EBUILD yacc-1.9.1-r4.ebuild 1635 RMD160 7c70a94776004e96cce37ef29bb64b9b61ed214e SHA1 ff71c84060167ede2ad353d2ec94a37b90b2d38d SHA256 3117338b84ddf42cd990e60695c4d8f7e7f9890ffd49305f2565d1471ffc303d
-MISC ChangeLog 3219 RMD160 a308e0693c5033344d2bfd7417fb627b47898b3c SHA1 d557f4c85f362724085e85bd3ea02418c8ddc728 SHA256 3f6b681c36a7626903b8f8c648662290c1fa458edc37bf507221ad180943e24f
+EBUILD yacc-1.9.1-r5.ebuild 1678 RMD160 3baf4f4c4b72bb34dbb5d9e42071851e361828e8 SHA1 8aeedaabaa409cc860644db03b5ee6b540a71f4c SHA256 01be0fedd1588d33aba73f21094cf737985da530d42264abcd2cfd2a21a7a91c
+MISC ChangeLog 3391 RMD160 8da769a4a8054f20ebc8fd1d96c7f6d6f931bcf0 SHA1 a5254ac56cfbb6f7c85db832c61c09b8eb0f422d SHA256 3bf0eca0a0e3cdbcb79b480d12bd7a587f5940449a310bb8b860a91de5804429
MISC metadata.xml 231 RMD160 c13056229989c3d4f448a7c7abcff3f4ee7ce13c SHA1 2d63dfb700b223f8f37c078692a81b2237896bce SHA256 4595c2615fd7c9095517949b1a920d4457f92801eb9d46307b18aafe58ec2a8a
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
+Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkkQF7AACgkQ67wieSYcaxeAnACff9JCT8tSKs6vVZUiexzlfBvN
-fnEAn2er16JsNhcXGexObacfKedy6JIa
-=pHHL
+iEYEARECAAYFAkx5Am0ACgkQwnQyISwouHwcUgCfdp5c9MtgRsNQwvVwyFz586c+
+wPUAoKxaS/Zh9jgrLmlPbDAXRzXgMU+4
+=ltGy
-----END PGP SIGNATURE-----
diff --git a/dev-util/yacc/yacc-1.9.1-r5.ebuild b/dev-util/yacc/yacc-1.9.1-r5.ebuild
new file mode 100644
index 000000000000..7039a5a7b4f0
--- /dev/null
+++ b/dev-util/yacc/yacc-1.9.1-r5.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/yacc-1.9.1-r5.ebuild,v 1.1 2010/08/28 12:32:37 truedfx Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Yacc: Yet Another Compiler-Compiler"
+HOMEPAGE="http://dinosaur.compilertools.net/#yacc"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/devel/compiler-tools/${P}.tar.Z"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Use our CFLAGS and LDFLAGS
+ sed -i -e 's: -O : $(CFLAGS) $(LDFLAGS) :' 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}"/${P}-ia64.patch
+
+ # avoid stack access error, bug 232005
+ epatch "${FILESDIR}"/${P}-CVE-2008-3196.patch
+}
+
+src_compile() {
+ emake clean || die
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ dobin yacc || die
+ doman yacc.1
+ dodoc 00README* ACKNOWLEDGEMENTS NEW_FEATURES NO_WARRANTY NOTES README*
+}
+
+pkg_preinst() {
+ # bison installs a /usr/bin/yacc symlink ...
+ # we need to remove it to avoid triggering
+ # collision-protect errors #90089
+ if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
+ rm -f "${ROOT}"/usr/bin/yacc
+ fi
+}
+
+pkg_postrm() {
+ # and if we uninstall yacc but keep bison,
+ # lets restore the /usr/bin/yacc symlink
+ if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
+ ln -s yacc.bison "${ROOT}"/usr/bin/yacc
+ fi
+}