| Summary: | sys-kernel/gentoo-sources 2.6.12-r6 Exception: ParseError: Invalid token (not '='): /usr/src/linux/.config | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Hans-Christian Armingeon <mog.johnny> |
| Component: | [OLD] Core system | Assignee: | Portage team <dev-portage> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Hans-Christian Armingeon
2005-07-27 12:59:03 UTC
Looks like a portage bug post your .config as an attachment 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. 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 ).
do: rm /usr/src/linux emerge =sys-kernel/gentoo-sources-2.6.12-r6 I'm sure, this will trigger this bug. 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? 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. the inconsistancies in /var/db/pkg I'd wonder about also... 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. |