Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28674 - errors in ebuild nvidia-kernel-1.0.4363-r3 & 1.0.4496-r3
Summary: errors in ebuild nvidia-kernel-1.0.4363-r3 & 1.0.4496-r3
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-14 01:12 UTC by Bill Cavalieri
Modified: 2003-09-14 08:04 UTC (History)
0 users

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 Bill Cavalieri 2003-09-14 01:12:39 UTC
I try to emerge nvidia-kernel (latest marked stable version
nvidia-kernel-1.0.4363-r3) and get syntax error near unexpected token `x'


Reproducible: Always
Steps to Reproduce:
1. emerge nvidia-glx

Actual Results:  
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.4363-r3 to /
/usr/sbin/ebuild.sh:
/usr/portage/media-video/nvidia-kernel/nvidia-kernel-1.0.4363-r3.ebuild: line 1:
syntax error near unexpected token `x'
/usr/sbin/ebuild.sh:
/usr/portage/media-video/nvidia-kernel/nvidia-kernel-1.0.4363-r3.ebuild: line 1:
`_FLAGS(x)           restore_flags(x)'



Here is the first few lines of nvidia-kernel-1.0.4363-r3.ebuild (looks nothing
like earlier ebuilds):

_FLAGS(x)           restore_flags(x)
+#  define NV_MAY_SLEEP()                (!in_interrupt())
+#  define NV_SMP_NUM_CPUS               smp_num_cpus
+#  define NV_MODULE_PARAMETER(x)        MODULE_PARM(x, "i")
 #endif

 #if defined(REMAP_PAGE_RANGE_5)
 #define NV_REMAP_PAGE_RANGE(a, b...)    remap_page_range(vma, a, ## b)
-#else
+#elif defined(REMAP_PAGE_RANGE_4)
 #define NV_REMAP_PAGE_RANGE(a, b...)    remap_page_range(a, ## b)
+#else
+#error "Unable to determine number of arguments expected by remap_page_range!"
 #endif


Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-ck1)
=================================================================
System uname: 2.4.22-ck1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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/afs/C /etc/afs/afsws /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs buildpkg"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.seren.com/gentoo
http://gentoo.noved.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 gnome libg++ libwww mikmod mmx ncurses gdbm berkdb slang readline tcpd
pam gtk motif aalib acpi afs alsa apm arts avi cdr crypt cups curl dga directfb
dvd dvdr encode esd evo fbcon flash foomaticdb gd gif gphoto2 gpm imlib java
jikes joystick jpeg kde kerberos lcms mad mozilla mpeg nas nls oggvorbis opengl
oss pda ppds pdflib perl png pnp prelude python qt quicktime samba sasl scanner
sdl slp spell ssl svga tcltk tiff truetype usb wmf X Xaw3d xinerama xml xml2
xmms xv zlib"
Comment 1 Bill Cavalieri 2003-09-14 03:01:40 UTC
I just deleted the two mentioned ebuilds from my portage dir, and then emerge sync'd. 

Problem went away.  Any Ideas why I would have received only a partial file?

Syncing without deleting the ebuilds, had left me with the problem.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-14 08:04:12 UTC
Mirror not properly synced ?  Reopen, and add the mirror you used to
sync with if it happens again.