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"
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.
Mirror not properly synced ? Reopen, and add the mirror you used to sync with if it happens again.