Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416231 - portage-2.2.0_alpha105: permission denied trying to --pretend as non-root-user (which is in portage-group)
Summary: portage-2.2.0_alpha105: permission denied trying to --pretend as non-root-use...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 409383
  Show dependency tree
 
Reported: 2012-05-16 09:12 UTC by jannis
Modified: 2012-05-16 23:43 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 jannis 2012-05-16 09:12:42 UTC
I have a user that is in group "portage" ans so should be able to use emerge --pretend.  But I get this message:
kripton@miramis ~ $ emerge --pretend --verbose eix

These are the packages that would be merged, in order:

Calculating dependencies ... done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 43, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 2041, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 298, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 6939, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 6971, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 1972, in select_files
    self._load_vdb()
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 550, in _load_vdb
    vardb.aux_get(pkg.cpv, [])
  File "/usr/lib64/portage/pym/_emerge/FakeVartree.py", line 109, in _aux_get_wrapper
    self._portdb.aux_get(pkg, self._portdb_keys, myrepo=repo)))
  File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 453, in aux_get
    proc.wait()
  File "/usr/lib64/portage/pym/_emerge/AsynchronousTask.py", line 54, in wait
    self._wait()
  File "/usr/lib64/portage/pym/_emerge/SubProcess.py", line 90, in _wait
    self._waitpid_loop()
  File "/usr/lib64/portage/pym/_emerge/SubProcess.py", line 96, in _waitpid_loop
    self.pid, self._waitpid_cb)
  File "/usr/lib64/portage/pym/portage/util/_eventloop/EventLoop.py", line 227, in child_watch_add
    self._poll_child_processes()
  File "/usr/lib64/portage/pym/portage/util/_eventloop/EventLoop.py", line 271, in _poll_child_processes
    x.callback(x.pid, wait_retval[1], x.data)
  File "/usr/lib64/portage/pym/_emerge/SubProcess.py", line 106, in _waitpid_cb
    self._set_returncode((pid, condition))
  File "/usr/lib64/portage/pym/_emerge/EbuildMetadataPhase.py", line 165, in _set_returncode
    self._eapi_invalid(metadata)
  File "/usr/lib64/portage/pym/_emerge/EbuildMetadataPhase.py", line 199, in _eapi_invalid
    eapi_var, self._eapi, self._eapi_lineno)
  File "/usr/lib64/portage/pym/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/usr/lib64/portage/pym/portage/package/ebuild/_eapi_invalid.py", line 46, in eapi_invalid
    phasefilter=("other",))
  File "/usr/lib64/portage/pym/portage/elog/__init__.py", line 175, in elog_process
    m.process(mysettings, str(key), mod_logentries, mod_fulllog)
  File "/usr/lib64/portage/pym/portage/elog/mod_save_summary.py", line 42, in process
    mode='a', encoding=_encodings['content'], errors='backslashreplace')
IOError: [Errno 13] Permission denied: '/var/log/portage/elog/summary.log'

Reproducible: Always
Comment 2 Zac Medico gentoo-dev 2012-05-16 23:43:02 UTC
This is fixed in 2.1.10.61 and 2.2.0_alpha106.