Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61203 - Ebuilds that look for modpost in 2.6.8.1 fail to note new location (nforce-net-1.0.0261-r2 affected)
Summary: Ebuilds that look for modpost in 2.6.8.1 fail to note new location (nforce-ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
: 60858 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-21 16:07 UTC by Mike Martino
Modified: 2004-08-29 09:55 UTC (History)
2 users (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 Mike Martino 2004-08-21 16:07:12 UTC
Kernel 2.6.7 has modpost script in scripts/. Kernel 2.6.8.1 (and perhaps 2.6.8) move modpost to scripts/mod/. Ebuilds that need to use modpost (e.g., nforce-net-1.0.0261-r2) will fail as follows:

bladerunner scripts # emerge /usr/portage/net-misc/nforce-net/nforce-net-1.0.0261-r2.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/nforce-net-1.0.0261-r2 to /
>>> md5 src_uri ;-) NVIDIA_nforce-1.0-0261.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_nforce-1.0-0261.tar.gz to /var/tmp/portage/nforce-net-1.0.0261-r2/work
>>> Source unpacked.
 * /usr/src/linux is a symbolic link
 * Determining the real directory of the Linux kernel source code
 * Building for Linux 2.6.8.1 found in /usr/src/linux
 * /usr/src/linux is a symbolic link
 * Determining the real directory of the Linux kernel source code
 * Building for Linux 2.6.8.1 found in /usr/src/linux
 * Applying 2.5/6 patch ...                                                                         [ ok ]
gcc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM  -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DKBUILD_BASENAME=nvnet -DKBUILD_MODNAME=nvnet -fno-common -DMODULE -I/usr/src/linux/include -I/usr/src/linux/include/asm/mach-default   nvnet.c
/usr/src/linux/scripts/modpost nvnet.o
make: /usr/src/linux/scripts/modpost: Command not found
make: *** [nvnet.mod.c] Error 127

!!! ERROR: net-misc/nforce-net-1.0.0261-r2 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. Make sure 2.6.8.1 kernel source tree is installed in /usr/src.
2. Make sure symlink is set. (i.e., /usr/src/linux -> /usr/src/linux-2.6.8.1)
3. Run 'emerge /usr/portage/net-misc/nforce-net/nforce-net-1.0.0261-r2.ebuild'
Actual Results:  
Received this error message:

/usr/src/linux/scripts/modpost nvnet.o
make: /usr/src/linux/scripts/modpost: Command not found
make: *** [nvnet.mod.c] Error 127

!!! ERROR: net-misc/nforce-net-1.0.0261-r2 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)


Expected Results:  
Should have emerged the nforce-net driver (1.0.0261-r2) and installed it in
/lib/modules/2.6.8.1 as usual.

Workaround: Make symlink to modpost script. (i.e., inside
/usr/src/linux/scripts, do ln -s mod/modpost modpost)

Emerge info:

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.7)
=================================================================
System uname: 2.6.7 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -mmmx -msse -m3dnow -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -mmmx -msse -m3dnow -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://mirrors.tds.net/gentoo
http://adelie.polymtl.ca/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm arts avi berkdb bluetooth bonobo cdr crypt cups doc
dvd dvdr encode esd foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2
gtkhtml ieee1394 imlib java javascript jpeg kde libg++ libwww lirc mad mikmod
mmx motif mpeg mysql ncurses nls nptl odbc oggvorbis opengl oss pam pda pdflib
perl png python qt quicktime readline samba scanner sdl slang spell sse ssl svga
tcpd tiff truetype usb x86 xml xml2 xmms xv zlib"
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-26 02:44:49 UTC
fixed.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-29 09:55:11 UTC
*** Bug 60858 has been marked as a duplicate of this bug. ***