The most recent ebuild of nvidia-kernel, marked as stable for x86, does not build. The script overwrites the Makefile in the nvidia-kernel tarball. http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/media-video/nvidia-kernel/nvidia-kernel-1.0.4363-r2.ebuild?rev=1.2&content-type=text/vnd.viewcvs-markup The offending lines are 94 and 96, when the ebuild attempts to link Makefile to Makefile.nvidia. The distfile NVIDIA_kernel-1.0-4363.tar.gz does not contain a Makefile.nvidia, but does contain a Makefile. When the link is made, Makefile is overwritten with a dead reference. The ebuild finished successfully when I removed the ln -snf lines. Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge -u media-video/nvidia-kernel Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) media-video/nvidia-kernel-1.0.4363-r2 to / >>> md5 src_uri ;-) NVIDIA_kernel-1.0-4363.tar.gz >>> Unpacking source... >>> Unpacking NVIDIA_kernel-1.0-4363.tar.gz to /var/tmp/portage/nvidia-kernel-1.0.4363-r2/work * Linux kernel 2.4.21 >>> Source unpacked. make: Makefile: No such file or directory make: *** No rule to make target `Makefile'. Stop. !!! ERROR: media-video/nvidia-kernel-1.0.4363-r2 failed. !!! Function src_compile, Line 109, Exitcode 2 !!! (no error message) Expected Results: The ebuild should have installed the latest nvidia-kernel drivers. Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.21 i686 AMD Athlon(tm) XP 2000+ GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo rsync://gentoo.seren.com/gentoo http://gentoo.oregonstate.edu" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="oss apm crypt kde libg++ libwww mikmod nls quicktime spell xmms zlib gdbm berkdb slang svga java guile sdl gpm tcpd pam esd qt motif mozilla x86 3dnow mmx aalib cdr cups fbcon maildir ncurses pda readline ssl perl python postgresql xml xml2 X xv gtk gtkhtml gnome -arts truetype gif imlib jpeg pdflib png tiff avi dvd encode mpeg opengl oggvorbis" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j1" AUTOCLEAN="yes" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
removing the part inside else..fi in src_unpack fixes the problem...
fix works as stated. this is how one solution would look (removed else and lines after it leaving the final "fi" if is_2_5_kernel then EPATCH_SINGLE_MSG="Applying tasklet patch for kernel 2.5..." \ epatch ${FILESDIR}/${PV}/${NV_PACKAGE}-2.5-20030614.diff # Kbuild have issues currently (sandbox related). ln -snf Makefile.nvidia Makefile fi }
*** Bug 23285 has been marked as a duplicate of this bug. ***
Oops, should be fixed now.
*** Bug 23321 has been marked as a duplicate of this bug. ***
*** Bug 23424 has been marked as a duplicate of this bug. ***
Still not fixed. Calculating world dependencies ...done! >>> emerge (1 of 20) media-video/nvidia-kernel-1.0.4363-r2 to / >>> md5 src_uri ;-) NVIDIA_kernel-1.0-4363.tar.gz >>> Unpacking source... >>> Unpacking NVIDIA_kernel-1.0-4363.tar.gz to /var/tmp/portage/nvidia-kernel-1.0.4363-r2/work * Linux kernel 2.4.20 >>> Source unpacked. make: Makefile: No such file or directory make: *** No rule to make target `Makefile'. Stop. !!! ERROR: media-video/nvidia-kernel-1.0.4363-r2 failed. !!! Function src_compile, Line 109, Exitcode 2 !!! (no error message) Syncd as of tonight. Sorry, Mike
he lied it works now ;)
And then just as quickly, it went away. no more sync's or anything, it just...worked. Sorry about that Az
NP :D