Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via or IRC
Bug 673786 - sys-apps/portage: given an empty value, --jobs produces a user-unfriendly exception
Summary: sys-apps/portage: given an empty value, --jobs produces a user-unfriendly exc...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2018-12-27 04:28 UTC by Kerin Millar
Modified: 2018-12-27 04:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Kerin Millar 2018-12-27 04:28:14 UTC
As tested in 2.3.51-r1, following a comment by another user. By contrast, Python 2.7 obscures the type mismatch, which is surely not a good thing.

# emerge --jobs= virtual/editor

 * IMPORTANT: 6 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies... done!
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/emerge", line 53, in <module>
    retval = emerge_main()
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 1289, in in response to emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 3325, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 340, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 9749, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 9786, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 3937, in select_files
    return self._select_files(args)
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 3946, in _select_files
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 670, in _load_vdb
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 30, in start
  File "/usr/lib64/python3.6/site-packages/portage/util/_async/", line 90, in _start
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 154, in _schedule
  File "/usr/lib64/python3.6/site-packages/portage/util/_async/", line 57, in _schedule_tasks
    while self._keep_scheduling() and self._can_add_job():
  File "/usr/lib64/python3.6/site-packages/_emerge/", line 173, in _can_add_job
    self._running_job_count() >= self._max_jobs:
TypeError: '>=' not supported between instances of 'int' and 'str'