Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788967 - sys-apps/portage: emerge --jobs= triggers TypeError: '<' not supported between instances of 'str' and 'int'
Summary: sys-apps/portage: emerge --jobs= triggers TypeError: '<' not supported betwee...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 785484
  Show dependency tree
 
Reported: 2021-05-08 17:53 UTC by Zac Medico
Modified: 2021-07-05 01:40 UTC (History)
1 user (show)

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 Zac Medico gentoo-dev 2021-05-08 17:53:28 UTC
> # emerge --jobs= portage
> Calculating dependencies... done!
> Traceback (most recent call last):
>   File "/usr/lib/python-exec/python3.8/emerge", line 51, in <module>
>     retval = emerge_main()
>   File "/usr/lib/python3.8/site-packages/_emerge/main.py", line 1319, in emerge_main
>     return run_action(emerge_config)
>   File "/usr/lib/python3.8/site-packages/_emerge/actions.py", line 3376, in run_action
>     retval = action_build(emerge_config, spinner=spinner)
>   File "/usr/lib/python3.8/site-packages/_emerge/actions.py", line 553, in action_build
>     mergetask = Scheduler(settings, trees, mtimedb, myopts,
>   File "/usr/lib/python3.8/site-packages/_emerge/Scheduler.py", line 246, in __init__
>     self._init_graph(graph_config)
>   File "/usr/lib/python3.8/site-packages/_emerge/Scheduler.py", line 351, in _init_graph
>     self._set_graph_config(graph_config)
>   File "/usr/lib/python3.8/site-packages/_emerge/Scheduler.py", line 471, in _set_graph_config
>     (self._max_jobs is not True and self._max_jobs < 2):
> TypeError: '<' not supported between instances of 'str' and 'int'
Comment 1 Larry the Git Cow gentoo-dev 2021-05-08 17:54:20 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=4e3c8ffebe0f377b2c39c5213983d641396aec34

commit 4e3c8ffebe0f377b2c39c5213983d641396aec34
Author:     Marco Sirabella <marco@sirabella.org>
AuthorDate: 2021-05-08 15:44:07 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-05-08 17:53:50 +0000

    emerge: Fail with helpful message when --jobs=""
    
    Bug: https://bugs.gentoo.org/788967
    Closes: https://github.com/gentoo/portage/pull/706
    Reported-by: Christophe Lermytte <gentoo@lermytte.be>
    Signed-off-by: Marco Sirabella <marco@sirabella.org>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/_emerge/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Larry the Git Cow gentoo-dev 2021-05-24 09:05:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cba21902d9a8d1ac07d2ff5b0d932e71fc1fac67

commit cba21902d9a8d1ac07d2ff5b0d932e71fc1fac67
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2021-05-24 07:47:11 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-05-24 09:05:08 +0000

    sys-apps/portage: Bump to version 3.0.19
    
     #520378: allow emerge --fetchonly to log to emerge-fetch.log
     #698244: portage(5) document user patch / eapply_user
     #781854: Suggest PORTAGE_LOG_FILTER_FILE_CMD cat fallback
     #782724: sort emerge --unmerge order for determinism
     #783957: lazily evaluate cnf_* variables in tests
     #784566: make emerge insensitive to relative order of optional
                      and positional arguments
     #787545: emerge CTRL C may be ignored when running pkg_pretend
     #787563: ebuild-ipc could handle KeyboardInterrupt
     #788967: emerge --jobs= triggers TypeError
    
    Bug: https://bugs.gentoo.org/785484
    Bug: https://bugs.gentoo.org/788967
    Bug: https://bugs.gentoo.org/787563
    Bug: https://bugs.gentoo.org/787545
    Bug: https://bugs.gentoo.org/784566
    Bug: https://bugs.gentoo.org/783957
    Bug: https://bugs.gentoo.org/782724
    Bug: https://bugs.gentoo.org/781854
    Bug: https://bugs.gentoo.org/698244
    Bug: https://bugs.gentoo.org/520378
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.19.ebuild | 266 +++++++++++++++++++++++++++++++++
 2 files changed, 267 insertions(+)