Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345771 - Incorrect number of completed jobs when using parallel jobs and jobs do not contain installation phase
Summary: Incorrect number of completed jobs when using parallel jobs and jobs do not c...
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-16 16:45 UTC by mail
Modified: 2010-11-16 16:55 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 mail 2010-11-16 16:45:22 UTC
When using parallel jobs (i.e. a "--jobs=2" argument to emerge, for example) and verbose output, the status line at the bottom of the output displays a wrong number of completed jobs in some cases. As far as I can tell, this happens when some of the ebuilds being emerged contain no "installation phase" -- see the following sample output:

<snip>
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 56) virtual/perl-MIME-Base64-3.08
>>> Emerging (2 of 56) virtual/perl-digest-base-1.16
>>> Emerging (3 of 56) virtual/perl-IO-Compress-2.024
>>> Emerging (4 of 56) dev-perl/HTML-Tagset-3.20
>>> Emerging (5 of 56) virtual/perl-Digest-MD5-2.39
>>> Emerging (6 of 56) virtual/perl-libnet-1.22
>>> Emerging (7 of 56) dev-perl/TermReadKey-2.30
>>> Emerging (8 of 56) perl-core/Scalar-List-Utils-1.23
>>> Emerging (9 of 56) dev-perl/XML-Parser-2.36-r1
>>> Emerging (10 of 56) dev-perl/XML-NamespaceSupport-1.11
>>> Installing (9 of 56) dev-perl/XML-Parser-2.36-r1
>>> Installing (10 of 56) dev-perl/XML-NamespaceSupport-1.11
>>> Emerging (11 of 56) dev-perl/YAML-Tiny-1.41
>>> Emerging (12 of 56) dev-perl/Net-Daemon-0.43
>>> Installing (11 of 56) dev-perl/YAML-Tiny-1.41
>>> Installing (12 of 56) dev-perl/Net-Daemon-0.43
>>> Emerging (13 of 56) perl-core/ExtUtils-CBuilder-0.27.03
>>> Emerging (14 of 56) virtual/perl-IO-Zlib-1.10
>>> Installing (14 of 56) virtual/perl-IO-Zlib-1.10
>>> Emerging (15 of 56) virtual/perl-Archive-Tar-1.54
>>> Installing (13 of 56) perl-core/ExtUtils-CBuilder-0.27.03
>>> Emerging (16 of 56) virtual/perl-Compress-Raw-Bzip2-2.024
>>> Installing (15 of 56) virtual/perl-Archive-Tar-1.54
>>> Installing (16 of 56) virtual/perl-Compress-Raw-Bzip2-2.024
>>> Emerging (17 of 56) virtual/perl-Package-Constants-0.02
>>> Emerging (18 of 56) virtual/perl-Compress-Raw-Zlib-2.024
>>> Installing (17 of 56) virtual/perl-Package-Constants-0.02
>>> Installing (18 of 56) virtual/perl-Compress-Raw-Zlib-2.024
>>> Emerging (19 of 56) perl-core/Storable-2.20
>>> Emerging (20 of 56) virtual/perl-Test-Harness-3.17
>>> Installing (20 of 56) virtual/perl-Test-Harness-3.17
>>> Emerging (21 of 56) perl-core/MIME-Base64-3.08
>>> Installing (19 of 56) perl-core/Storable-2.20
>>> Installing (21 of 56) perl-core/MIME-Base64-3.08
>>> Emerging (22 of 56) perl-core/Sys-Syslog-0.27
>>> Emerging (23 of 56) virtual/perl-Sys-Syslog-0.27
>>> Installing (23 of 56) virtual/perl-Sys-Syslog-0.27
>>> Jobs: 13 of 56 complete, 2 running              Load avg: 1.89, 1.58, 1.03
<snap>

As you can see, it seems that only those jobs are taken into account for which the "Installing ..." line is printed.

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2010-11-16 16:55:22 UTC
This is covered in the faq:

http://www.gentoo.org/proj/en/portage/doc/faq.xml

"When packages are built in parallel with the --jobs option, why aren't some packages installed immediately after they have finished building?"