Gentoo Archives: gentoo-commits

From: "Harald van Dijk (truedfx)" <truedfx@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/dev86: ChangeLog dev86-0.16.17-r6.ebuild
Date: Mon, 02 Feb 2009 19:02:29
Message-Id: E1LU43v-0002eg-3d@stork.gentoo.org
1 truedfx 09/02/02 19:02:27
2
3 Modified: ChangeLog
4 Added: dev86-0.16.17-r6.ebuild
5 Log:
6 Fix possible buffer overflow (#256782)
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.13 sys-devel/dev86/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/dev86/ChangeLog?rev=1.13&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/dev86/ChangeLog?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/dev86/ChangeLog?r1=1.12&r2=1.13
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-devel/dev86/ChangeLog,v
19 retrieving revision 1.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- ChangeLog 6 Mar 2008 16:20:46 -0000 1.12
23 +++ ChangeLog 2 Feb 2009 19:02:27 -0000 1.13
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-devel/dev86
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/dev86/ChangeLog,v 1.12 2008/03/06 16:20:46 angelos Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/dev86/ChangeLog,v 1.13 2009/02/02 19:02:27 truedfx Exp $
30 +
31 +*dev86-0.16.17-r6 (02 Feb 2009)
32 +
33 + 02 Feb 2009; Harald van Dijk <truedfx@g.o>
34 + +files/dev86-0.16.17-fortify.patch, +dev86-0.16.17-r6.ebuild:
35 + Fix possible buffer overflow (#256782)
36
37 06 Mar 2008; Christoph Mende <angelos@g.o> dev86-0.16.17-r5.ebuild:
38 Stable on amd64, bug #208905
39
40
41
42 1.1 sys-devel/dev86/dev86-0.16.17-r6.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/dev86/dev86-0.16.17-r6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/dev86/dev86-0.16.17-r6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: dev86-0.16.17-r6.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-devel/dev86/dev86-0.16.17-r6.ebuild,v 1.1 2009/02/02 19:02:27 truedfx Exp $
52
53 inherit eutils
54
55 DESCRIPTION="Bruce's C compiler - Simple C compiler to generate 8086 code"
56 HOMEPAGE="http://www.cix.co.uk/~mayday"
57 SRC_URI="http://www.cix.co.uk/~mayday/dev86/Dev86src-${PV}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE=""
63
64 RDEPEND="sys-devel/bin86"
65 DEPEND="${RDEPEND}
66 dev-util/gperf"
67
68 src_unpack() {
69 unpack ${A}
70 # elksemu doesn't compile under amd64
71 if use amd64; then
72 einfo "Not compiling elksemu on amd64"
73 sed -i.orig \
74 -e 's,alt-libs elksemu,alt-libs,' \
75 -e 's,install-lib install-emu,install-lib,' \
76 "${S}"/makefile.in
77 fi
78 cd "${S}"
79 epatch "${FILESDIR}/dev86-pic.patch"
80 epatch "${FILESDIR}"/${P}-fortify.patch
81 sed -i -e "s/-O2 -g/${CFLAGS}/" \
82 -e "s/INEXE=-m 755 -s/INEXE=-m 755/g" makefile.in
83 sed -i -e "s/INSTALL_OPTS=-m 755 -s/INSTALL_OPTS=-m 755/g" bin86/Makefile
84 sed -i -e "s/install -m 755 -s/install -m 755/g" dis88/Makefile
85 }
86
87 src_compile() {
88 emake -j1 DIST="${D}" || die
89
90 export PATH=${S}/bin:${PATH}
91 cd bin
92 ln -s ncc bcc
93 cd ..
94 cd bootblocks
95 ln -s ../bcc/version.h .
96 emake DIST="${D}" || die
97 }
98
99 src_install() {
100 make install-all DIST="${D}" || die
101 dobin bootblocks/makeboot
102 # remove all the stuff supplied by bin86
103 cd "${D}"
104 rm usr/bin/{as,ld,nm,objdump,size}86
105 rm usr/man/man1/{as,ld}86.1
106 mkdir -p usr/share/man
107 mv usr/man usr/share/
108 }