Gentoo Archives: gentoo-commits

From: "Robert Buchholz (rbu)" <rbu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/yacc: ChangeLog yacc-1.9.1-r4.ebuild
Date: Sat, 04 Oct 2008 18:57:22
Message-Id: E1KmCJa-0002RE-Mj@stork.gentoo.org
1 rbu 08/10/04 18:57:18
2
3 Modified: ChangeLog
4 Added: yacc-1.9.1-r4.ebuild
5 Log:
6 Fix stack access error (security bug #232005).
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r6 x86_64)
8
9 Revision Changes Path
10 1.19 dev-util/yacc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/yacc/ChangeLog?rev=1.19&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/yacc/ChangeLog?rev=1.19&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/yacc/ChangeLog?r1=1.18&r2=1.19
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v
19 retrieving revision 1.18
20 retrieving revision 1.19
21 diff -u -r1.18 -r1.19
22 --- ChangeLog 15 May 2007 09:10:31 -0000 1.18
23 +++ ChangeLog 4 Oct 2008 18:57:18 -0000 1.19
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-util/yacc
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.18 2007/05/15 09:10:31 bangert Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/ChangeLog,v 1.19 2008/10/04 18:57:18 rbu Exp $
30 +
31 +*yacc-1.9.1-r4 (04 Oct 2008)
32 +
33 + 04 Oct 2008; Robert Buchholz <rbu@g.o>
34 + +files/yacc-1.9.1-CVE-2008-3196.patch, +yacc-1.9.1-r4.ebuild:
35 + Fix stack access error (security bug #232005).
36
37 14 May 2007; Thilo Bangert <bangert@g.o> metadata.xml:
38 add <herd>no-herd</herd>
39
40
41
42 1.1 dev-util/yacc/yacc-1.9.1-r4.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/yacc/yacc-1.9.1-r4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/yacc/yacc-1.9.1-r4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: yacc-1.9.1-r4.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/yacc/yacc-1.9.1-r4.ebuild,v 1.1 2008/10/04 18:57:18 rbu Exp $
52
53 inherit eutils toolchain-funcs
54
55 DESCRIPTION="Yacc: Yet Another Compiler-Compiler"
56 HOMEPAGE="http://dinosaur.compilertools.net/#yacc"
57 SRC_URI="ftp://metalab.unc.edu/pub/Linux/devel/compiler-tools/${P}.tar.Z"
58
59 LICENSE="as-is"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
62 IUSE=""
63
64 DEPEND=""
65
66 src_unpack() {
67 unpack ${A}
68 cd "${S}"
69
70 # Use our CFLAGS
71 sed -i -e 's: -O : $(CFLAGS) :' Makefile || die 'sed failed'
72
73 # mkstemp patch from byacc ebuild
74 epatch "${FILESDIR}"/mkstemp.patch
75
76 # The following patch fixes yacc to run correctly on ia64 (and
77 # other 64-bit arches). See bug 46233
78 epatch "${FILESDIR}"/${P}-ia64.patch
79
80 # avoid stack access error, bug 232005
81 epatch "${FILESDIR}"/${P}-CVE-2008-3196.patch
82 }
83
84 src_compile() {
85 make clean || die
86 emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
87 }
88
89 src_install() {
90 dobin yacc || die
91 doman yacc.1
92 dodoc 00README* ACKNOWLEDGEMENTS NEW_FEATURES NO_WARRANTY NOTES README*
93 }
94
95 pkg_preinst() {
96 # bison installs a /usr/bin/yacc symlink ...
97 # we need to remove it to avoid triggering
98 # collision-protect errors #90089
99 if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
100 rm -f "${ROOT}"/usr/bin/yacc
101 fi
102 }
103
104 pkg_postrm() {
105 # and if we uninstall yacc but keep bison,
106 # lets restore the /usr/bin/yacc symlink
107 if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
108 ln -s yacc.bison "${ROOT}"/usr/bin/yacc
109 fi
110 }