Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520066 - bad PORTAGE_ELOG_MAILURI - File "/usr/lib/portage/pym/portage/mail.py", line 116, in send_mail
Summary: bad PORTAGE_ELOG_MAILURI - File "/usr/lib/portage/pym/portage/mail.py", line ...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-16 17:55 UTC by Toralf Förster
Modified: 2020-02-28 23:07 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 Toralf Förster gentoo-dev 2014-08-16 17:55:44 UTC
Within a x86 KVM machine (hostname n22kvm) I do have these settings :


PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_SYSTEM="save mail"
PORTAGE_ELOG_MAILURI="tfoerste@n22"
PORTAGE_ELOG_MAILURI="portage n22kvm <portage@localhost>"

The hosthas hostname n22, network, dhcp, DNS and mailx at the command line works fine.


but emerge gave this :

n22kvm ~ # emerge -a dev-vcs/git trinity

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

...


>>> Emerging (16 of 21) app-crypt/gnupg-2.0.25
>>> Installing (16 of 21) app-crypt/gnupg-2.0.25
>>> Jobs: 15 of 21 complete                         Load avg: 1.47, 0.95, 0.50
Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib/portage/pym/_emerge/main.py", line 1031, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/portage/pym/_emerge/actions.py", line 4062, in run_action
    emerge_config.args, spinner)
  File "/usr/lib/portage/pym/_emerge/actions.py", line 453, in action_build
    retval = mergetask.merge()
  File "/usr/lib/portage/pym/_emerge/Scheduler.py", line 1019, in merge
    rval = self._merge()
  File "/usr/lib/portage/pym/_emerge/Scheduler.py", line 1408, in _merge
    self._main_loop()
  File "/usr/lib/portage/pym/_emerge/Scheduler.py", line 1379, in _main_loop
    self._event_loop.iteration()
  File "/usr/lib/portage/pym/portage/util/_eventloop/EventLoop.py", line 268, in iteration
    if not x.callback(f, event, *x.args):
  File "/usr/lib/portage/pym/portage/util/_async/PipeLogger.py", line 133, in _output_handler
    self._unregister_if_appropriate(event)
  File "/usr/lib/portage/pym/_emerge/AbstractPollTask.py", line 129, in _unregister_if_appropriate
    self.wait()
  File "/usr/lib/portage/pym/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib/portage/pym/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib/portage/pym/_emerge/SpawnProcess.py", line 168, in _pipe_logger_exit
    self.wait()
  File "/usr/lib/portage/pym/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib/portage/pym/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib/portage/pym/_emerge/EbuildMerge.py", line 57, in _merge_exit
    self.exit_hook(self)
  File "/usr/lib/portage/pym/_emerge/EbuildBuild.py", line 403, in _install_exit
    self._unlock_builddir()
  File "/usr/lib/portage/pym/_emerge/EbuildBuild.py", line 289, in _unlock_builddir
    portage.elog.elog_process(self.pkg.cpv, self.settings)
  File "/usr/lib/portage/pym/portage/elog/__init__.py", line 175, in elog_process
    m.process(mysettings, str(key), mod_logentries, mod_fulllog)
  File "/usr/lib/portage/pym/portage/elog/mod_mail.py", line 39, in process
    portage.mail.send_mail(mysettings, mymessage)
  File "/usr/lib/portage/pym/portage/mail.py", line 116, in send_mail
    myrecipient, mymailuri = mysettings["PORTAGE_ELOG_MAILURI"].split()
ValueError: too many values to unpack
Comment 1 Zac Medico gentoo-dev 2020-02-28 23:07:12 UTC
This is a problem if PORTAGE_ELOG_MAILURI doesn't contain exactly 2 tokens, and we really should handle it better.