Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 783735 - dev-lang/rust - ignores MAKEOPTS -j1
Summary: dev-lang/rust - ignores MAKEOPTS -j1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-18 10:41 UTC by Toralf Förster
Modified: 2021-04-18 10:59 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 Toralf Förster gentoo-dev 2021-04-18 10:41:29 UTC
init,1
  └─sudo,29913 /opt/tb/bin/bwrap.sh -m /home/tinderbox/img1/17.1_desktop_systemd-20210414-031624 -s /opt/tb/bin/job.sh
      └─bwrap.sh,29916 /opt/tb/bin/bwrap.sh -m /home/tinderbox/img1/17.1_desktop_systemd-20210414-031624 -s /opt/tb/bin/job.sh
          └─bwrap,29951 --bind /home/tinderbox/img1/17.1_desktop_systemd-20210414-031624 / --bind /home/tinderbox/tb/data /mnt/tb/data --bind /home/tinderbox/distfiles /var/cache/distfiles --ro-bind /home/tinderbox/tb/sdata /mnt/tb/sdata --ro-bind /var/db/repos /mnt/rep
os --tmpfs /var/tmp/portage --tmpfs /dev/shm --dev /dev --proc /proc --mqueue /dev/mqueue --unshare-cgroup --unshare-ipc --unshare-pid --unshare-uts --hostname 17_1_desktop_systemd-20210414-031624 --chdir /var/tmp/tb --die-with-parent --setenv MAILTO tinderbox /bin/bash
 -l -c /entrypoint
              └─bwrap,29953 --bind /home/tinderbox/img1/17.1_desktop_systemd-20210414-031624 / --bind /home/tinderbox/tb/data /mnt/tb/data --bind /home/tinderbox/distfiles /var/cache/distfiles --ro-bind /home/tinderbox/tb/sdata /mnt/tb/sdata --ro-bind /var/db/repos /mnt
/repos --tmpfs /var/tmp/portage --tmpfs /dev/shm --dev /dev --proc /proc --mqueue /dev/mqueue --unshare-cgroup --unshare-ipc --unshare-pid --unshare-uts --hostname 17_1_desktop_systemd-20210414-031624 --chdir /var/tmp/tb --die-with-parent --setenv MAILTO tinderbox /bin/
I do have 

tinderbox@mr-fox ~ $ cat /home/tinderbox/img1/17.1_desktop_systemd-20210414-031624/etc/portage/env/jobs 
EGO_BUILD_FLAGS="-p 1"
GO19CONCURRENTCOMPILATION=0
GOMAXPROCS="1"
MAKEOPTS="-j 1"
OMP_DYNAMIC=FALSE
OMP_NESTED=FALSE
OMP_NUM_THREADS=1
RUSTFLAGS="-C codegen-units=1"
RUST_TEST_THREADS=1
RUST_TEST_TASKS=1

and

tinderbox@mr-fox ~ $ cat /home/tinderbox/img1/17.1_desktop_systemd-20210414-031624/etc/portage/package.env/00jobs 
*/*  jobs


but do see "-j 12" :


bash -l -c /entrypoint
                  └─entrypoint,29955 /entrypoint
                      └─entrypoint,24674 /entrypoint
                          └─emerge,24675 -b /usr/lib/python-exec/python3.8/emerge --update dev-perl/Math-BigInt-Lite
                              ├─python3.8,31556 /usr/lib/portage/python3.8/pid-ns-init 19489
                              │   └─python3.8,31558 /usr/lib/portage/python3.8/pid-ns-init     0,1,2 /usr/bin/sandbox [dev-lang/rust-1.51.0-r1] sandbox /usr/lib/portage/python3.8/ebuild.sh install
                              │       └─sandbox,31563 /usr/lib/portage/python3.8/ebuild.sh install
                              │           └─ebuild.sh,31564 /usr/lib/portage/python3.8/ebuild.sh install
                              │               └─ebuild.sh,31583 /usr/lib/portage/python3.8/ebuild.sh install
                              │                   └─ebuild.sh,31609 /usr/lib/portage/python3.8/ebuild.sh install
                              │                       └─python3.8,31614 ./x.py install -vv --config=/var/tmp/portage/dev-lang/rust-1.51.0-r1/work/rustc-1.51.0-src/config.toml
                              │                           └─bootstrap,31967 install -vv --config=/var/tmp/portage/dev-lang/rust-1.51.0-r1/work/rustc-1.51.0-src/config.toml
                              │                               └─cargo,12941 build --target x86_64-unknown-linux-gnu -Zbinary-dep-depinfo -j 12 -v -
Comment 1 Toralf Förster gentoo-dev 2021-04-18 10:46:10 UTC
FWIW it seems only ignoring -j1 for a fraction of its build tree.
Comment 2 Georgy Yakovlev archtester gentoo-dev 2021-04-18 10:55:31 UTC
looks like in src_install we also need to pass -j$(makeopts_jobs)
Comment 3 Larry the Git Cow gentoo-dev 2021-04-18 10:58:11 UTC
The bug has been closed via the following commit(s):

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

commit cd39f5e857e3c187ff1c3cadf27ebce124c7e05d
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-04-18 10:57:43 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-04-18 10:57:43 +0000

    dev-lang/rust: pass -jNUM in src_install as well
    
    Closes: https://bugs.gentoo.org/783735
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-lang/rust/rust-1.51.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Georgy Yakovlev archtester gentoo-dev 2021-04-18 10:59:04 UTC
fix for 1.51.0-r2 only for now, other versions going away soon.