Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292993 - portage should not allow --jobs with --nodeps
Summary: portage should not allow --jobs with --nodeps
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-13 08:44 UTC by Markus Duft (RETIRED)
Modified: 2022-07-28 04:44 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 Markus Duft (RETIRED) gentoo-dev 2009-11-13 08:44:56 UTC
Maybe not so common problem, but still: :)

while bootstrapping a gentoo prefix, i realised, that this is not a good idea:

emerge -q -j5 --nodeps patch ncurses bash

because i get:

>>> Emerging (1 of 3) sys-devel/patch-2.5.9-r1
>>> Emerging (2 of 3) sys-libs/ncurses-5.7
>>> Emerging (3 of 3) app-shells/bash-4.0_p33-r00.1
>>> Installing (1 of 3) sys-devel/patch-2.5.9-r1
>>> Installing (3 of 3) app-shells/bash-4.0_p33-r00.1
>>> Installing (2 of 3) sys-libs/ncurses-5.7

i can imagine how portage does not know of any build order when ignoring dependencies (but the command line order should be the "dependency-chain".

i think, that portage should only start one job, since the order of packages on the command line represents a strict order in which i want the packages to be merged.

am i missing somehing? is this known?
Comment 1 Zac Medico gentoo-dev 2009-11-13 11:20:27 UTC
It think the existing behavior is pretty natural. If you don't want parallel, use -j1.
Comment 2 Markus Duft (RETIRED) gentoo-dev 2009-11-13 12:46:06 UTC
mhm. thats what i'm doing now (actually, since this is done by a script, i'm doing "emerge -j5 --some-other-opts -j1 --nodeps ...").

i just thought that enforcing one job with nodeps in portage itself would save possible headaches, searching for build failures (and it is not that hard to imnplement i guess (2 liner...?)).
Comment 3 Zac Medico gentoo-dev 2009-11-13 20:25:54 UTC
I guess we can add a option to toggle the behavior.
Comment 4 Zac Medico gentoo-dev 2009-11-13 20:28:16 UTC
For example, we could add a --jobs-nodeps=JOBS option that defaults to 1 and allows the user to adjust it.
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2009-11-14 01:20:12 UTC
(In reply to comment #4)
> For example, we could add a --jobs-nodeps=JOBS option that defaults to 1 and
> allows the user to adjust it.
> 

Tell me you aren't serious? :)
Comment 6 Zac Medico gentoo-dev 2009-11-14 01:53:08 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > For example, we could add a --jobs-nodeps=JOBS option that defaults to 1 and
> > allows the user to adjust it.
> > 
> 
> Tell me you aren't serious? :)
> 

If we don't provide a way to use --jobs with --nodeps then prohibiting a potentially valid use case.
Comment 7 Markus Duft (RETIRED) gentoo-dev 2009-11-16 08:53:27 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
[snip]
> 
> If we don't provide a way to use --jobs with --nodeps then prohibiting a
> potentially valid use case.
> 

maybe, yes. but preventing portage from resolving dependencies is either during bootstrap operations, or because of a hack i guess (any other use cases?) :) a hack could well cause a performance penalty, and during bootstrap it's only a few merges that do this.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-28 04:44:26 UTC
I feel like one should just not do this. I've wanted to actually do --nodeps -jN before to quickly extract (and prepare) a tonne of sources.