Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448828 - emerge (java-config) fails from cron jobs
Summary: emerge (java-config) fails from cron jobs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-27 13:28 UTC by Joakim Tjernlund
Modified: 2012-12-28 13:06 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 Joakim Tjernlund 2012-12-27 13:28:39 UTC
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.
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2012-12-27 19:37:49 UTC
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.
Comment 2 Joakim Tjernlund 2012-12-28 09:45:12 UTC
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