Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17388 - plex86 ne2000 fix
Summary: plex86 ne2000 fix
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Reported: 2003-03-12 13:27 UTC by Tanguy Bouzéloc
Modified: 2005-09-17 15:08 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Tanguy Bouzéloc 2003-03-12 13:27:11 UTC
current plex86 ebuild remove ne2000 eth driver support due to several
compilation errors.

I submit necessary files to pass these problems.

have fun @+

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header:
/home/cvsroot/gentoo-x86/app-emulation/plex86/plex86-20021117.ebuild,v 1.4
2003/03/11 20:50:08 seemant Exp $

DESCRIPTION="Plex86 is THE opensource free-software alternative for VMWare,
VirtualPC, and other IA-32 on IA-32 \"Virtual PC products.\""
IUSE="X sdl"
         X? ( >=x11-base/xfree-4.2.0 ) 
         sdl? ( >=media-libs/libsdl-1.2.4 )"

src_compile() {
    MY_CONF="--with-Linux --enable-cdrom --enable-split-hd --enable-pci
--enable-vbe --enable-sb16=linux --enable-instrumentation --enable-ne2000" 

    use X && MY_GUI="x"
    use sdl && MY_GUI="sdl"
    use sdl && export SDL_CFLAGS="`sdl-config --cflags`"
    use X && MY_CONF="${MY_CONF} --with-x --with-linux-source=/usr/src/linux"
    MY_CONF="${MY_CONF} --with-gui=${MY_GUI}"

    # fix typo (bug submitted)
    mv user/plugins/bochs/iodev/
    sed s/'inclide'/'include'/ user/plugins/bochs/iodev/eth_fbsd.cc_orig >
        patch -p1 -i ${FILESDIR}/${P}-ne2000-fix.patch

    ./configure \
        --host=${CHOST} \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man ${MY_CONF} || die "./configure failed"
    make || die

src_install() {
    #make DESTDIR=${D} install || die
    # for now just this:
    dodir /opt/${P}
    cp -r * ${D}/opt/${P}

pkg_postinst() {
    einfo ",-----------------------------------------------------------------."
    einfo "| IMPORTANT NOTICE                                                |"
    einfo "|-----------------------------------------------------------------|"
    einfo "| This code is EXTREMELY EXPERIMENTAL, and may well result in a   |"
    einfo "| SYSTEM CRASH, and who knows what other ill effects.  RUN THIS   |"
    einfo "| SOFTWARE AT YOUR OWN RISK.  As a precaution, do not attempt to  |"
    einfo "| run this software on a system with important data on it, and    |"
    einfo "| make liberal use of the sync command!  Expect to have to use    |"
    einfo "| the power button.                                               |"
    einfo "\`-----------------------------------------------------------------'"
    einfo "Contact me ( if you encounter any problems."


--- plex86-20021117/user/plugins/bochs/iodev/ne2k.h.orig        2002-07-22
01:14:55.000000000 +0200
+++ plex86-20021117/user/plugins/bochs/iodev/ne2k.h     2003-03-12
19:02:57.000000000 +0100
@@ -34,6 +34,7 @@
 // a National Semiconductor DS-8390 ethernet MAC chip, with some h/w
 // to provide a windowed memory region for the chip and a MAC address.
+#include "system.h"
--- plex86-20021117/user/plugins/bochs/iodev/system.h.orig      2002-07-22
01:14:55.000000000 +0200
+++ plex86-20021117/user/plugins/bochs/iodev/system.h   2003-03-12
19:03:48.000000000 +0100
@@ -23,7 +23,8 @@
 //  You should have received a copy of the GNU Lesser General Public
 //  License along with this library; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#ifndef __SYSTEM_H__
+#define __SYSTEM_H__
@@ -48,3 +49,5 @@
   BX_DEV_SMF Bit32u port92_read(Bit32u address, unsigned io_len);
   BX_DEV_SMF void   port92_write(Bit32u address, Bit32u value, unsigned io_len);
+#endif /* __SYSTEM_H__ */
--- plex86-20021117/user/plugins/bochs/iodev/   2003-03-12
19:19:40.000000000 +0100
+++ plex86-20021117/user/plugins/bochs/iodev/        2003-03-12
19:20:31.000000000 +0100
@@ -51,8 +51,8 @@
 #include "bochs.h"
-#include "ne2k.h"
 #include "eth.h"
+#include "ne2k.h"
 #ifdef ETH_FBSD
 #define LOG_THIS this->

Reproducible: Always
Steps to Reproduce:
Comment 1 Thomas Raschbacher gentoo-dev 2003-03-12 14:48:53 UTC
nice .. have u sent it to the plex authors? :)
Comment 2 Tanguy Bouzéloc 2003-03-12 17:24:14 UTC
I've not send it to authors since this plex86 release is the last before thier new plex86 package.

This version will not be updated anymore, you can take a look at the new package is completely different thats why I make this quick and dirty patch :P
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-13 08:52:16 UTC
what's the status of this?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-08-11 04:32:04 UTC
Re-assigning stale bugs. Someone pick this up or remove the ebuild from portage.
Comment 5 Marcelo Goes (RETIRED) gentoo-dev 2005-09-17 15:08:55 UTC
plex86 has many issues and no simple solution to all of them. Considering the
amount of very old kernel code it has, including the way it deals with devfs,
for example, it does not look like it will be easy to fix.

plex86 has three outstanding bugs at the time of this writing: bug 54526, bug
29159 and bug 17388. I have the feeling that if anybody was going to get them
fixed, they would have done so by now.

qemu should fill plex86's role in the future.

I'll probably remove plex86 from the tree very shortly. If anybody feels
different, you're welcome to reopen plex86 bugs and fix them :-)