Summary: | emerge gentoo-sources fails with /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25-r7/temp/environment: line 1: syntax error near unexpected token `)' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Cody Carey <cmfvulcanius> |
Component: | [OLD] Core system | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED NEEDINFO | ||
Severity: | major | CC: | agaffney, dev-portage |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
build.log last 50 lines of the environment file first 10 lines of environment |
Description
Cody Carey
2008-09-04 02:25:02 UTC
Created attachment 164529 [details]
emerge --info
emerge --info
Created attachment 164531 [details]
build.log
build.log
Created attachment 164533 [details]
last 50 lines of the environment file
last 50 lines of the environment file
emerge --info Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r7 x86_64) ================================================================= System uname: 2.6.24-gentoo-r7 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz Timestamp of tree: Thu, 04 Sep 2008 01:34:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r13 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ " LDFLAGS="-Wl,-O1" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="a52 aac acl acpi aim alsa amd64 bash-completion berkdb bzip2 cdparanoia cdr cli cracklib crypt css cups cxx dbus dri dvd dvdr dvdread emacs encode fbcon ffmpeg firefox flac fortran ftp gdbm gif gpm hal iconv ieee1394 ipod ipv6 isdnlog java6 javascript jpeg jpeg2k midi mmx mp3 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp oscar oss pam pcre pda pdf perl png pppd python quicktime readline reflection session sockets socks5 spl sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd threads tiff truetype unicode usb vcd vorbis wmf xine xinerama xml xorg xscreensaver xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY 'unset vga' in the short term and upgrade grub in the long term. *** This bug has been marked as a duplicate of bug 222091 *** Unsetting vga immediately after booting the install CD makes no difference. What makes you think this bug is related to bug 222091? Created attachment 164591 [details]
first 10 lines of environment
Actually I'm guessing I probably would have run into the VGA problem found in the other bug. However the current problems is with parsing the first line of the environment file. I'm attaching the head output for environment. I should have done that before.
Can you try the patch from comment 72 of bug 222091 Patched filter-bash-environment.py but the result is still the exact same. Is there any more information I can provide you? I have the same error here. Anything I try to emerge results in this error. My "uses" is empty, but I can not paste any information here because I'm using Windows XP64 right now. (Can you see the severity of this bug??) May anyone tell me what file or program generates the file "environment"? May be I could help to find what is wrong if it is a shell script... Well, if you are having this issue? In change of trying to solve this issue, I just booted the 2007.0 minimal CD, did the exact same procedures (downloading latest versions of stage3 - 2008.0 - and portage) and got Gentoo installed. Hope this helps. Maybe the portage developers can help here. Do you have any idea where this environment file comes from and why it might be including the junk at the top of your copy? This looks an awful lot like the vga=<lots of junk> bug that stemmed from the 2008.0 release. Cody, what version of grub do you have installed (in the MBR)? I believe it was 0.97-r5 that had a bug where it wouldn't terminate the string passed to the kernel for the kernel commandline, causing a bunch of junk to get appended to the final var. In this case, it looks like there happened to be a '=' in the junk, so the var name was junk as well. I'm not sure where that corrupt environment variable is coming from, but I think newer versions of portage will filter it out. Can you install sys-apps/portage-2.1.6_rc1 to see if it helps? echo =sys-apps/portage-2.1.6_rc1 >> /etc/portage/package.keywords emerge portage (In reply to comment #14) Well, you also need eselect-news which doesn't have stable keywords either, so all together: mkdir -p /etc/portage echo =sys-apps/portage-2.1.6_rc1 >> /etc/portage/package.keywords echo =app-admin/eselect-news-20080320 >> /etc/portage/package.keywords emerge portage Zac, thanks for your input. Cody, please reopen this bug when you have had a chance to test the portage upgrade suggested above. yes, this is issue from stage3-i686-2008.0.tar.bz2 the problem is in 'vga' environment variable. to resolve this issue: do: su - root then you can start using portage |