Running emerge from a cron script often fails with this error: Traceback (most recent call last): File "/usr/bin/java-config-2-2.7", line 395, in <module> (options, args) = parser.parse_args(args=args) File "/usr/lib/python2.7/optparse.py", line 1399, in parse_args stop = self._process_args(largs, rargs, values) File "/usr/lib/python2.7/optparse.py", line 1439, in _process_args self._process_long_opt(rargs, values) File "/usr/lib/python2.7/optparse.py", line 1514, in _process_long_opt option.process(opt, value, values, self) File "/usr/lib/python2.7/optparse.py", line 788, in process self.action, self.dest, opt, value, values, parser) File "/usr/lib/python2.7/optparse.py", line 810, in take_action parser.print_help() File "/usr/lib/python2.7/optparse.py", line 1669, in print_help file.write(self.format_help().encode(encoding, "replace")) File "/usr/lib/python2.7/optparse.py", line 1649, in format_help result.append(self.format_option_help(formatter)) File "/usr/lib/python2.7/optparse.py", line 1629, in format_option_help result.append(OptionContainer.format_option_help(self, formatter)) File "/usr/lib/python2.7/optparse.py", line 1073, in format_option_help result.append(formatter.format_option(option)) File "/usr/lib/python2.7/optparse.py", line 316, in format_option help_lines = textwrap.wrap(help_text, self.help_width) File "/usr/lib/python2.7/textwrap.py", line 346, in wrap return w.wrap(text) File "/usr/lib/python2.7/textwrap.py", line 321, in wrap return self._wrap_chunks(chunks) File "/usr/lib/python2.7/textwrap.py", line 250, in _wrap_chunks raise ValueError("invalid width %r (must be > 0)" % self.width) ValueError: invalid width -26 (must be > 0) The error comes from java-config testing the env. variable COLUMNS and the value of COLUMNS is 0 I don't have a the full log hande ATM, sorry. I hope the above will do anyway.
Have seen that before, though only Portage from somewhere around 2.10.35 till 2.10.45 should be affected, so the fix is in stable for quite some time. Make sure you are running an up to date Portage, also need your emerge --info to do anything here.
Looked at one box that did show this behavour and it had portage 2.1.10.11 on it so I guess that was was the problem, portage has not been updated for quite a while on that box. Go ahead and close this bug, I will get back if I see this again with current portage