Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100511 - sys-kernel/gentoo-sources 2.6.12-r6 Exception: ParseError: Invalid token (not '='): /usr/src/linux/.config
Summary: sys-kernel/gentoo-sources 2.6.12-r6 Exception: ParseError: Invalid token (not...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-27 12:59 UTC by Hans-Christian Armingeon
Modified: 2005-08-16 15:22 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 Hans-Christian Armingeon 2005-07-27 12:59:03 UTC
Hi, 
 
Ok devs, don't kill me. I know, this is a local problem. 
 
I don't have a /usr/src/linux link. 
 
Well, if I set the link to an old kernel sourcetree with .config, everything 
works fine. 
12-r4 works witout a linux link. 
 
Johnny 
 
Calculating dependencies ...done!  
>>> emerge (1 of 1) sys-kernel/gentoo-sources-2.6.12-r6 to /  
!!! Invalid token (not "=")  
Traceback (most recent call last):  
  File "/usr/bin/emerge", line 3200, in ?  
    mydepgraph.merge(mydepgraph.altlist())  
  File "/usr/bin/emerge", line 1904, in merge  
    retval=portage.doebuild(y,"clean",myroot,self.pkgsettings,edebug,cleanup=1)  
  File "/usr/lib/portage/pym/portage.py", line 2424, in doebuild  
    mykv,err1=ExtractKernelVersion(root+"usr/src/linux")  
  File "/usr/lib/portage/pym/portage.py", line 794, in ExtractKernelVersion  
    kernelconfig = getconfig(base_dir+"/.config")  
  File "/usr/lib/portage/pym/portage_util.py", line 273, in getconfig  
    raise e.__class__, str(e)+" in "+mycfg  
Exception: ParseError: Invalid token (not '='): /usr/src/linux/.config: line 1  
in /usr/src/linux/.config  
  
 Portage 2.0.51.22-r2 (default-linux/amd64/2004.3, gcc-3.3.4, glibc-2.3.5-r0, 
2.6.12-gentoo-r4 x86_64) 
================================================================= 
System uname: 2.6.12-gentoo-r4 x86_64 AMD Opteron(tm) Processor 242 
Gentoo Base System version 1.6.13 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [disabled] 
dev-lang/python:     2.2.3-r5, 2.3.5 
sys-apps/sandbox:    1.2.11 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-O2" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control /var/spool/fax/etc /var/www" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ 
ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo 
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
http://ftp6.uni-erlangen.de/pub/mirrors/gentoo" 
MAKEOPTS="-j5" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X X509 acl acpi alsa amd64 apache2 arts avi berkdb bitmap-fonts bzip2 caps 
cdr chroot crypt cscope cups curl dvd dvdr ecc encode erandom esd extensions 
f77 fam flac flexresp foomaticdb fortran gd gdbm gif gimpprint gnome gphoto2 
gpm gtk gtk2 idea imagemagick imap imlib inline ipv6 java jpeg jpeg2k junit kde 
kerberos ldap libclamav libwww lm_sensors logrotate lzw lzw-tiff mad maildir 
mailwrapper mbox memlimit mikmod motif mp3 mpeg multilib mysql ncurses nls nptl 
oav obdc objc odbc ogg opengl pam pdflib perl png pnp postgres povray ppds 
prelude pwdb python qt quicktime quotas readline samba sasl scanner sdl 
sftplogging sguil skey slang smartcard snmp snortsam socks5 spell sqlite ssl 
tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales 
vorbis winbind wmf xine xinerama xml2 xmms xpm xv zlib userland_GNU 
kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-07-27 14:00:12 UTC
Looks like a portage bug
Comment 2 SpanKY gentoo-dev 2005-07-27 14:53:36 UTC
post your .config as an attachment
Comment 3 Hans-Christian Armingeon 2005-07-28 07:14:28 UTC
well, I have an empty /usr/src. So there is no .config 
 
If I have a configured source tree in /usr/src/linux, everything works find. 
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-15 18:40:03 UTC
You are saying you had a completely empty /usr/src when installing these 
sources?

There appear to be numerous places where this call would fail without that 
directory...

def ExtractKernelVersion(base_dir):
	lines = []
	pathname = os.path.join(base_dir, 'Makefile')
	try:
		f = open(pathname, 'r')
	except OSError, details:
		return (None, str(details))
	except IOError, details:
		return (None, str(details))

If you have no ${ROOT}/usr/src/linux/Makefile the call returns false, so you 
needed to have one of those, or Python is returning the wrong exception ( 
doubtful, but who knows ).
Comment 5 Hans-Christian Armingeon 2005-08-16 00:24:23 UTC
do: 
rm /usr/src/linux 
emerge =sys-kernel/gentoo-sources-2.6.12-r6 
 
I'm sure, this will trigger this bug. 
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-16 05:31:42 UTC
I cannot reproduce this, the merge finishes fine.  There must be something odd 
on your machine, have you checked the filesystem that '/usr' is mounted on?
Comment 7 Hans-Christian Armingeon 2005-08-16 07:50:25 UTC
I had a max mount count 2 Days before. 
 
But my system crashed, and I switched to suse. I had inconsistences in /var/db 
a several times. 
Comment 8 Brian Harring (RETIRED) gentoo-dev 2005-08-16 10:16:29 UTC
the inconsistancies in /var/db/pkg I'd wonder about also...
Comment 9 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-16 15:22:58 UTC
Obviously your system was having issues at the time, I can't really begin to
blame portage for this when these issues are present.  You said there were
/var/db/pkg issues, and too many mount issues, and the code looks solid at first
and second glance.  If you can reproduce the issue please re-open.