Summary: | Permission denied / Incorrect multiline literals | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Wernfried Haas (RETIRED) <amne> |
Component: | Unclassified | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED CANTFIX | ||
Severity: | minor | ||
Priority: | High | ||
Version: | 2.1 | ||
Hardware: | All | ||
OS: | Other | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Wernfried Haas (RETIRED)
2006-03-26 06:51:45 UTC
No error (neither nls nor the permission denied/multiline) occurs with a) FEATURES="-userpriv" emerge xmms b) chmodding /etc/make.conf.elog to 644 c) commenting out "source /etc/make.conf.elog" In any case (a-c) the output is: # FEATURES="-userpriv" emerge xmms Calculating dependencies... done! >>> Emerging (1 of 7) media-sound/xmms-1.2.10-r15 to / >>> checksums files ;-) xmms-1.2.10-r14.ebuild [..] >>> checksums src_uri ;-) gnomexmms.xpm >>> Unpacking source... >>> Unpacking xmms-1.2.10.tar.bz2 to /var/tmp/portage/xmms-1.2.10-r15/work ... OUCH, this is a nasty problem: the observed behavior is caused by the has_version call, which in turn calls portageq. As the call is in src_unpack, which runs as portage user (if userpriv is enabled) portageq also runs in that context. portageq in turn calls 'import portage' which triggers the sourcing of make.conf, which fails due the portage user not being able to source make.conf.elog, and that causes the has_version check to fail. Not sure how to fix that (ignoring the issue that the ebuild-check in the example in this bug is broken in a few ways) other than requiring all config files to be reabale by the portage user (or backporting the portageq pipe system from ebd), anyone has suggestions? l /etc/make.conf.elog -rw-r----- 1 root portage 151 Feb 24 14:02 /etc/make.conf.elog Maybe not a perfect solution as it gives anyone within the portage group read access to the sekrit password in this file, but otoh you shouldn't add everyone and their mother to that group - I can live with it. No real solution available for this one. |