Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110 - bochs-1.3_pre1-r2.ebuild
Summary: bochs-1.3_pre1-r2.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Dan Armak (RETIRED)
URL: http://bochs.sourceforge.net
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2002-01-09 19:34 UTC by Chris Arndt
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Arndt 2002-01-09 19:34:40 UTC
Bochs is a pc emulator.

This ebuild is set up to emulate a Pentium, with a NE2000 network card, and a
CDROM drive.

It also comes with a disk image using dlxlinux.

app-emulation/bochs
Comment 1 Chris Arndt 2002-01-09 22:21:01 UTC
Forgot to attache the ebuild, and now bugzilla won't let me attach it.

Maybe I need to file a bug against gentoo bugzilla. :)
Comment 2 Mikael Hallendal (hallski) (RETIRED) gentoo-dev 2002-01-10 01:26:35 UTC
hmm .. we have noticed this problems, we are currently running on a cvs
bugzilla, might have to do with it.

for now please copy the ebuild as a comment.
Comment 3 Chris Arndt 2002-01-12 16:03:00 UTC
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Chris Arndt <arndtc@mailandnews.com>

PN=${P/_/.}
S=${WORKDIR}/${PN}
DESCRIPTION="Bochs is a pc emulator.
  This ebuild is set up to emulate a Pentium, with a NE2000 network card, and a
CDROM drive.
  It also comes with a disk image using dlxlinux."
SRC_URI="http://prdownloads.sourceforge.net/bochs/${PN}.tar.gz"
HOMEPAGE="http://bochs.sourceforge.net"

#build-time dependencies
DEPEND=">=sys-libs/glibc-2.1.3
	>=x11-base/xfree-4.0.1"

#run-time dependencies, same as DEPEND if RDEPEND isn't defined:
#RDEPEND="$DEPEND"


src_compile() {

	./configure --enable-cpu-level=5 --enable-fpu --enable-cdrom --enable-split-hd
--enable-ne2000 --infodir=/usr/share/info --mandir=/usr/share/man
--host=${CHOST} || die

	cp Makefile Makefile.orig
	sed -e 's:$(BOCHSDIR)/dlxlinux:$(DESTDIR)$(BOCHSDIR)/dlxlinux:; s:$(GUNZIP) -c
$(DLXLINUX_TAR) | (cd $(BOCHSDIR); tar -xvf -):$(GUNZIP) -c $(DLXLINUX_TAR) |
(cd $(DESTDIR)$(BOCHSDIR); tar -xvf -):' Makefile.orig > Makefile

	emake || die
}


src_install () {

	make DESTDIR=${D} install || die
	dodoc CHANGES COPYING CVS README TESTFORM.txt
}
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-02-02 11:29:17 UTC
Hm, bochs looks like a nice app. I'll enjoy working on the ebuild :-)

About the builtin support though: shouldn't we enable support for 
everything, not just pentium/cdrom/etc.? e.g. support for smp, and a few 
other things I remember seeing in the features list when I looked at it a few 
week ago.

If a virtual machine doesn't use some specific support, can enabling that 
support cause any kind of problems?
Comment 5 Chris Arndt 2002-02-02 14:05:15 UTC
boch is pretty cool, it runs kinda slow, but i have had gentoo up and running on it.

as for the support, the only one you might want to add is sound.
the config enables are a little different in that they compile those features in
to the virtual machine.  smp support isn't recommended as it adds smp emulation
to boch, which actually slows it down.  it's really only for testing purposes.

just my 2 cents
Comment 6 Dan Armak (RETIRED) gentoo-dev 2002-02-12 16:02:55 UTC
Committed as app-emulation/bochs. Please take a look, I've done some 
changes.
Comment 7 Chris Arndt 2002-02-15 19:18:03 UTC
looks pretty good to me, and i was able to compile without any problems.