Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23276 - nvidia-kernel-1.0.4363-r2 ebuild fails
Summary: nvidia-kernel-1.0.4363-r2 ebuild fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 23285 23321 23424 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-22 09:55 UTC by Daniel Westermann-Clark
Modified: 2003-06-30 15:23 UTC (History)
4 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 Daniel Westermann-Clark 2003-06-22 09:55:41 UTC
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"
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2003-06-22 10:13:48 UTC
removing the part inside else..fi in src_unpack fixes the problem... 
Comment 2 Jason Johnson 2003-06-22 10:32:03 UTC
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
}
Comment 3 SpanKY gentoo-dev 2003-06-22 15:48:31 UTC
*** Bug 23285 has been marked as a duplicate of this bug. ***
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-06-22 21:17:18 UTC
Oops, should be fixed now.
Comment 5 SpanKY gentoo-dev 2003-06-23 06:43:57 UTC
*** Bug 23321 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2003-06-24 18:31:52 UTC
*** Bug 23424 has been marked as a duplicate of this bug. ***
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2003-06-24 18:46:34 UTC
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
Comment 8 SpanKY gentoo-dev 2003-06-24 19:04:14 UTC
he lied it works now ;) 
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2003-06-25 01:22:21 UTC
And then just as quickly, it went away. no more sync's or anything, it just...worked. Sorry about that Az
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-06-30 15:23:04 UTC
NP :D