Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677092 - dev-java/openjdk-11.0.2_p7: 2x tee at the build log
Summary: dev-java/openjdk-11.0.2_p7: 2x tee at the build log
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-02 10:34 UTC by Toralf Förster
Modified: 2019-02-02 11:02 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 Toralf Förster gentoo-dev 2019-02-02 10:34:19 UTC
At the tinderox image 17.0-desktop-gnome-systemd_20190130-111900 I realized this:

$> ps -elfa | grep tee | grep openjdk

0 S portage  18683 18681  0  90  10 -  3705 -      10:57 pts/4    00:00:00 /usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-11.0.2_p7/work/jdk11u-jdk-11.0.2+7/build/linux-x86_64-normal-server-release/build.log
0 S portage  18684 18682  0  90  10 -  3705 -      10:57 pts/4    00:00:00 /usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-11.0.2_p7/work/jdk11u-jdk-11.0.2+7/build/linux-x86_64-normal-server-release/build.log



here's the whole pstree for that image:


  ├─sudo /opt/tb/bin/chr.sh /home/tinderbox/run/17.0-desktop-gnome-systemd_20190130-111900 /bin/bash /tmp/job.sh
  │   └─chr.sh /opt/tb/bin/chr.sh /home/tinderbox/run/17.0-desktop-gnome-systemd_20190130-111900 /bin/bash /tmp/job.sh
  │       └─su - root -c /bin/bash /tmp/job.sh
  │           └─bash /tmp/job.sh
  │               └─emerge -b /usr/lib/python-exec/python3.6/emerge --update dev-java/openjdk
  │                   └─python3.6m /usr/lib/portage/python3.6/pid-ns-init 17031
  │                       └─python3.6m /usr/lib/portage/python3.6/pid-ns-init 250 250 250 18 0,1,2 /usr/bin/sandbox [dev-java/openjdk-11.0.2_p7] sandbox...
  │                           ├─java -Xms512M -Xmx2048M --limit-modules java.base,jdk.zipfs,java.compiler.interim,jdk.compiler.interim,jdk.javadoc.interim...
  │                           │   └─51*[{java}]
  │                           └─sandbox /usr/lib/portage/python3.6/ebuild.sh compile
  │                               └─ebuild.sh /usr/lib/portage/python3.6/ebuild.sh compile
  │                                   └─ebuild.sh /usr/lib/portage/python3.6/ebuild.sh compile
  │                                       └─emake /usr/lib/portage/python3.6/ebuild-helpers/emake -j1 bootcycle-images JOBS=1 LOG=debug ...
  │                                           └─make -j1 -j1 bootcycle-images JOBS=1 LOG=debug CFLAGS_WARNINGS_ARE_ERRORS=
  │                                               └─sh -c...
  │                                                   └─sh -c...
  │                                                       └─make -j1 -r -R -j 1 -f ...
  │                                                           └─bash -o pipefail -e -c...
  │                                                               └─bash -o pipefail -e -c...
  │                                                                   └─gmake -r -R -I ...
  │                                                                       ├─bash -o pipefail -e -c...
  │                                                                       │   └─bash -o pipefail -e -c...
  │                                                                       │       └─gmake -r -R -I ...
  │                                                                       │           └─bash -o pipefail -e -c...
  │                                                                       │               └─bash -o pipefail -e -c...
  │                                                                       │                   └─java -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1 ...
  │                                                                       │                       ├─bash -o pipefail -e -c...
  │                                                                       │                       │   └─tee -a...
  │                                                                       │                       ├─bash -o pipefail -e -c...
  │                                                                       │                       │   └─tee -a...
  │                                                                       │                       └─13*[{java}]
  │                                                                       ├─bash -o pipefail -e -c...
  │                                                                       │   └─tee -a ...
  │                                                                       └─bash -o pipefail -e -c...
  │                                                                           └─tee -a ...
Comment 1 Georgy Yakovlev archtester gentoo-dev 2019-02-02 11:01:23 UTC
can you explain what you think is wrong? that 2 tee process output to the log?

it builds itself 2 times (due to jbootstrap), once with system java, second time again with just freshly built java, probably that's why.

also the pstree output is mangled and incomplete.


also it does not like -j>1 so we pass -j1 unconditionally, probably I should just unset MAKEOPTS completely.
Comment 2 Toralf Förster gentoo-dev 2019-02-02 11:02:37 UTC
(In reply to Georgy Yakovlev from comment #1)
> it builds itself 2 times (due to jbootstrap), once with system java, second
> time again with just freshly built java, probably that's why.

Oh, so it is not an issue - sry