Gentoo Archives: gentoo-commits

From: "lu_zero (lu_zero)" <lu_zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/bochs: ChangeLog bochs-2.3.ebuild
Date: Sun, 09 Sep 2007 11:53:35
Message-Id: E1IULFR-0006Rx-C9@stork.gentoo.org
1 lu_zero 07/09/09 11:46:41
2
3 Modified: ChangeLog
4 Added: bochs-2.3.ebuild
5 Log:
6 New version + sec fixes see bug #145446 and bug #188148
7 (Portage version: 2.1.3.7)
8
9 Revision Changes Path
10 1.67 app-emulation/bochs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/bochs/ChangeLog?rev=1.67&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/bochs/ChangeLog?rev=1.67&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/bochs/ChangeLog?r1=1.66&r2=1.67
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/bochs/ChangeLog,v
19 retrieving revision 1.66
20 retrieving revision 1.67
21 diff -u -r1.66 -r1.67
22 --- ChangeLog 27 Jul 2007 17:56:13 -0000 1.66
23 +++ ChangeLog 9 Sep 2007 11:46:40 -0000 1.67
24 @@ -1,6 +1,15 @@
25 # ChangeLog for app-emulation/bochs
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/bochs/ChangeLog,v 1.66 2007/07/27 17:56:13 lu_zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/bochs/ChangeLog,v 1.67 2007/09/09 11:46:40 lu_zero Exp $
29 +
30 +*bochs-2.3 (09 Sep 2007)
31 +
32 + 09 Sep 2007; Luca Barbato <lu_zero@g.o>
33 + +files/bochs-2.3-floppy.patch, +files/bochs-2.3-ne2k.patch,
34 + +files/bochs-2.3-redog.patch, +bochs-2.3.ebuild:
35 + New version, patches to make it build and avoid security issues pointed by
36 + Carlo Marcelo Arenas Belon <carenas@×××××××××××.pe>, fixes bug #188148 and
37 + bug #145446
38
39 27 Jul 2007; Luca Barbato <lu_zero@g.o> files/digest-bochs-2.2.6,
40 +files/digest-bochs-2.3, Manifest:
41
42
43
44 1.1 app-emulation/bochs/bochs-2.3.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/bochs/bochs-2.3.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/bochs/bochs-2.3.ebuild?rev=1.1&content-type=text/plain
48
49 Index: bochs-2.3.ebuild
50 ===================================================================
51 # Copyright 1999-2007 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-emulation/bochs/bochs-2.3.ebuild,v 1.1 2007/09/09 11:46:40 lu_zero Exp $
54
55 inherit eutils wxwidgets
56
57 DESCRIPTION="a LGPL-ed pc emulator"
58 HOMEPAGE="http://bochs.sourceforge.net/"
59 SRC_URI="mirror://sourceforge/bochs/${P}.tar.gz
60 http://bochs.sourceforge.net/guestos/dlxlinux4.tar.gz"
61
62 LICENSE="LGPL-2.1"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
65 IUSE="debugger readline sdl wxwindows X ncurses vnc"
66
67 RDEPEND="virtual/libc
68 X? ( x11-libs/libICE
69 x11-libs/libSM
70 x11-libs/libX11
71 x11-libs/libXpm )
72 sdl? ( media-libs/libsdl )
73 wxwindows? ( >=x11-libs/wxGTK-2.6 )
74 readline? ( sys-libs/readline )
75 ncurses? ( sys-libs/ncurses )"
76
77 DEPEND="${RDEPEND}
78 X? ( x11-proto/xproto )
79 >=sys-apps/sed-4
80 >=app-text/opensp-1.5"
81
82 src_unpack() {
83 unpack ${P}.tar.gz
84 cd ${S}
85 sed -i \
86 -e "s:\$(WGET) \$(DLXLINUX_TAR_URL):cp ${DISTDIR}/dlxlinux4.tar.gz .:" \
87 -e "s:BOCHSDIR=:BOCHSDIR=/usr/$(get_libdir)/bochs#:" \
88 -e 's: $(BOCHSDIR): $(DESTDIR)$(BOCHSDIR):g' Makefile.in || \
89 die "sed Makefile.in failed"
90
91 # Make it use the correct path to gtk-2
92 sed -i -e "s:/opt/gnome:/usr:" configure
93 # Fix some bad coding for gcc-4.1 compliance
94 sed -i -e "s:\#ifndef PARANOID:\#if 0:" iodev/hdimage.h
95 # Make sure wxwindows 2.6 is used in case both 2.6 and 2.4 are installed
96 sed -i -e "s:wx-config:wx-config-2.6:" configure
97 # wx unicode patches from fedora and bits the fedora missed
98 # epatch ${DISTDIR}/${P}-unicode.patch.gz
99 epatch ${FILESDIR}/${P}-redog.patch
100 epatch ${FILESDIR}/${P}-floppy.patch
101 epatch ${FILESDIR}/${P}-ne2k.patch
102 }
103
104 src_compile() {
105 export WX_GTK_VER=2.6
106
107 use wxwindows && \
108 need-wxwidgets gtk2
109
110 [[ "$ARCH" == "x86" ]] \
111 && myconf="--enable-idle-hack --enable-fast-function-calls"
112 myconf="${myconf} `use_with sdl`"
113 myconf="${myconf} `use_enable readline`"
114 use wxwindows && \
115 myconf="${myconf} --with-wx"
116 use wxwindows || \
117 myconf="${myconf} --without-wx"
118 use debugger && \
119 myconf="$myconf --enable-debugger --enable-disasm \
120 --enable-x86-debugger --enable-iodebug"
121 use debugger || \
122 myconf="$myconf --enable-gdb-stub"
123 use vnc && \
124 myconf="$myconf --with-rfb"
125
126 use X && \
127 myconf="$myconf --with-x11"
128
129 use ncurses && \
130 myconf="$myconf --with-term"
131
132 if ! use X && ! use ncurses && ! use vnc && ! use sdl
133 then
134 myconf="$myconf --with-nogui"
135 fi
136
137 # needed to use gtk2 includes and libs
138 autoconf
139 ./configure \
140 --enable-usb --enable-pci --enable-vbe \
141 --enable-sse=2 --enable-3dnow --enable-plugins \
142 --enable-cpu-level=6 --enable-all-optimizations \
143 --enable-ne2000 --enable-sb16=linux --enable-clgd54xx \
144 --enable-apic --enable-compressed-hd \
145 --enable-pni --enable-sep --host=${CHOST} \
146 --libdir=/usr/$(get_libdir) --prefix=/usr \
147 ${myconf} || die "configure failed"
148
149 emake || die "emake failed"
150 }
151
152 src_install() {
153 make DESTDIR=${D} install unpack_dlx || die "make install failed"
154 #workaround
155 make prefix=${D}/usr install_dlx
156
157 dodoc CHANGES README TESTFORM.txt || die "dodoc failed"
158 }
159
160
161
162 --
163 gentoo-commits@g.o mailing list