Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50860 - net-misc/bcm570x-7.1.22.ebuild does not install in vanilla kernel 2.6.6
Summary: net-misc/bcm570x-7.1.22.ebuild does not install in vanilla kernel 2.6.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-12 09:46 UTC by Urs Joss
Modified: 2004-06-21 13:31 UTC (History)
1 user (show)

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


Attachments
Proposed patch to the ebuild (bcm570x-7.1.22.ebuild.patch,540 bytes, patch)
2004-06-19 03:29 UTC, Matteo Settenvini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Urs Joss 2004-05-12 09:46:33 UTC
I tried to install the ebuild into a current vanilla 2.6.6. The ebuild tries to refer to /usr/src/linux-2.6.6/arch/x86/Makefile whereas my kernel tree only supplies /usr/src/linux-2.6.6/arch/i386/Makefile.

Reproducible: Always
Steps to Reproduce:
1. Install development-sources-2.6.6 and link /usr/src/linux to the respective directory
2. emerge /usr/portage/net-misc/bcm570x-7.1.22.ebuild

Actual Results:  
>>> emerge (1 of 1) net-misc/bcm570x-7.1.22 to /
>>> md5 src_uri ;-) bcm5700-7.1.22.tar.gz
>>> Unpacking source...
>>> Unpacking bcm5700-7.1.22.tar.gz to /var/tmp/portage/bcm570x-7.1.22/work
>>> Source unpacked.
make -C /usr/src/linux-2.6.6 SUBDIRS=/var/tmp/portage/bcm570x-7.1.
22/work/bcm5700-7.1.22/src modules
make[1]: Entering directory `/usr/src/linux-2.6.6'
Makefile:450: /usr/src/linux-2.6.6/arch/x86/Makefile: Datei oder Verzeichnis 
nicht gefunden
make[1]: *** Keine Regel, um 
Comment 1 Urs Joss 2004-05-12 09:46:33 UTC
I tried to install the ebuild into a current vanilla 2.6.6. The ebuild tries to refer to /usr/src/linux-2.6.6/arch/x86/Makefile whereas my kernel tree only supplies /usr/src/linux-2.6.6/arch/i386/Makefile.

Reproducible: Always
Steps to Reproduce:
1. Install development-sources-2.6.6 and link /usr/src/linux to the respective directory
2. emerge /usr/portage/net-misc/bcm570x-7.1.22.ebuild

Actual Results:  
>>> emerge (1 of 1) net-misc/bcm570x-7.1.22 to /
>>> md5 src_uri ;-) bcm5700-7.1.22.tar.gz
>>> Unpacking source...
>>> Unpacking bcm5700-7.1.22.tar.gz to /var/tmp/portage/bcm570x-7.1.22/work
>>> Source unpacked.
make -C /usr/src/linux-2.6.6 SUBDIRS=/var/tmp/portage/bcm570x-7.1.
22/work/bcm5700-7.1.22/src modules
make[1]: Entering directory `/usr/src/linux-2.6.6'
Makefile:450: /usr/src/linux-2.6.6/arch/x86/Makefile: Datei oder Verzeichnis 
nicht gefunden
make[1]: *** Keine Regel, um »/usr/src/linux-2.6.6/arch/x86/Makefile« zu 
erstellen.  Schluss.
make[1]: Leaving directory `/usr/src/linux-2.6.6'
make: *** [default] Fehler 2

!!! ERROR: net-misc/bcm570x-7.1.22 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! compile failed



When I created a symlink from /usr/src/linux-2.6.6/arch/i386 to 
/usr/src/linux-2.6.6/arch/x86, the ebuild was able to complete successfully.

Probably irreleveant in this case, but nevertheless: emerge info:

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6)
=================================================================
System uname: 2.6.6 i686 Intel(R) Xeon(TM) CPU 3.06GHz
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /opt/tomcat/webapps/ROOT 
/usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config 
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://sunsite.
informatik.rwth-aachen.de/pub/Linux/gentoo http://212.219.247.16/sites/www.
ibiblio.org/gentoo/ http://212.219.247.18/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm avi berkdb crypt cups doc emacs encode foomaticdb gdbm gif gpm 
gtk2 imlib java jpeg kerberos ldap libg++ libwww linguas_de_CH mad mikmod mmx 
motif mpeg mysql ncurses nls oav odbc oggvorbis opengl oss pam pdflib perl png 
postgres python quicktime readline samba sasl sdl slang spell sse ssl svga tcpd 
tetex tiff truetype usb x86 xml xml2 xmms xv zlib"
Comment 2 Matteo Settenvini 2004-06-19 03:29:18 UTC
Created attachment 33551 [details, diff]
Proposed patch to the ebuild

It does not install into new gentoo-dev kernels too. It is because the variable
${ARCH} in the ebuild for x86 users points to "x86" (indeed). But now kernel
folders' hierarchy hasn't the "x86" folder anymore under /usr/src/linux/arch,
because it is split into "i386" and "x86_64". The right one here was "i386", so
I modified the ebuild with an horrible hack (I'm really a newbie, suggestions
welcomed).

Try to test this and report if successful (for me it worked).

Btw, I noticed that from 2.6.7-gentoo (before I used 2.6.5-gentoo-r1), support
for bcm5700 disappeared from the kernel. I hope that someone will remember to
apply the kernel patch to the future 2004.2 release, or it will be hard to
install Gentoo for Broadcom NIC owners (without internet connection you can
only go for GRP).

Please tell me if a bug has to be opened for that, or if everything is
allright.
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-19 09:23:44 UTC
No, the patch will not be added to the 2.6.7 genkernel-dev-sources package.

Please use the tg3 driver instead, it should work for all devices.

If you wish to discuss this, please open a new bug for it.
Comment 4 Matteo Settenvini 2004-06-20 02:18:58 UTC
No, it's OK the tg3 module. I didn't know the new module worked also for other bcm NICs (the old one didn't for my ThinkPad G40). 
Thank you.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-06-21 13:31:43 UTC
Closing as FIXED since comment #3 confirms that the tg3 driver works successfully. If you have any issues, please reopen this bug.