<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>17388</bug_id>
          
          <creation_ts>2003-03-12 13:27 0000</creation_ts>
          <short_desc>plex86 ne2000 fix</short_desc>
          <delta_ts>2005-09-17 15:08:55 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>zauron@wanadoo.fr</reporter>
          <assigned_to>maintainer-needed@gentoo.org</assigned_to>
          <cc>jakub@gentoo.org</cc>
    
    <cc>lordvan@gentoo.org</cc>
    
    <cc>vanquirius@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>zauron@wanadoo.fr</who>
            <bug_when>2003-03-12 13:27:11 0000</bug_when>
            <thetext>current plex86 ebuild remove ne2000 eth driver support due to several
compilation errors.

I submit necessary files to pass these problems.

have fun @+

plex86-20021117-r1.ebuild:
# 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=&quot;Plex86 is THE opensource free-software alternative for VMWare,
VirtualPC, and other IA-32 on IA-32 \&quot;Virtual PC products.\&quot;&quot;
HOMEPAGE=&quot;http://savannah.gnu.org/projects/plex86/&quot;
LICENSE=&quot;LGPL-2.1&quot;
SRC_URI=&quot;http://savannah.nongnu.org/download/plex86/${P}.tar.bz2&quot;
SLOT=&quot;0&quot;
KEYWORDS=&quot;~x86&quot;
IUSE=&quot;X sdl&quot;
RDEPEND=&quot;&gt;=sys-libs/ncurses-5.2-r7
         X? ( &gt;=x11-base/xfree-4.2.0 ) 
         sdl? ( &gt;=media-libs/libsdl-1.2.4 )&quot;
DEPEND=&quot;${RDEPEND}&quot;
DEPEND=&quot;&quot;
S=&quot;${WORKDIR}/${P}&quot;

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

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

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

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

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

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

}

files/plex86-20021117-ne2000-fix.patch:
--- 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 &quot;system.h&quot;
 
 
 #if BX_USE_NE2K_SMF
--- 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__
 
 
 #if BX_USE_DEV_SMF
@@ -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/eth_fbsd.cc.orig   2003-03-12
19:19:40.000000000 +0100
+++ plex86-20021117/user/plugins/bochs/iodev/eth_fbsd.cc        2003-03-12
19:20:31.000000000 +0100
@@ -51,8 +51,8 @@
 //
 
 #include &quot;bochs.h&quot;
-#include &quot;ne2k.h&quot;
 #include &quot;eth.h&quot;
+#include &quot;ne2k.h&quot;
 
 #ifdef ETH_FBSD
 #define LOG_THIS this-&gt;


Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lordvan@gentoo.org</who>
            <bug_when>2003-03-12 14:48:53 0000</bug_when>
            <thetext>nice .. have u sent it to the plex authors? :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zauron@wanadoo.fr</who>
            <bug_when>2003-03-12 17:24:14 0000</bug_when>
            <thetext>I&apos;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 plex86.sf.net the new package is completely different thats why I make this quick and dirty patch :P</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2004-03-13 08:52:16 0000</bug_when>
            <thetext>what&apos;s the status of this?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-08-11 04:32:04 0000</bug_when>
            <thetext>Re-assigning stale bugs. Someone pick this up or remove the ebuild from portage.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2005-09-17 15:08:55 0000</bug_when>
            <thetext>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&apos;s role in the future.

I&apos;ll probably remove plex86 from the tree very shortly. If anybody feels
different, you&apos;re welcome to reopen plex86 bugs and fix them :-)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>