Summary: | dev-lang/python-3.8.5: does not respect MAKEOPTS | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | m1027 <m1027> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, jstein, mgorny, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log for amd64
patch to remove -j0 |
Description
m1027
2020-08-17 13:03:20 UTC
Created attachment 655098 [details]
build.log for amd64
Some info with a workaround patch is available in bug #720050. The problem is that compileall.py is called with -j0 option, so it uses all available threads. Created attachment 655178 [details, diff] patch to remove -j0 Slightly modified patch as linked to in this comment: https://bugs.gentoo.org/720050#c16 Thanks for pointing to bug #720050. My patch (v2) is a slightly modified version since the original hat hunk errors. This helped partly: The final compile phase seemed indeed to run on one CPU core only, however, there is some intermediate phase where again all cores are used. These tests were run on amd64 and not arm yet so I believe my Raspberry Pi will not entirely be satisfied by this patch... (In reply to m1027 from comment #3) > Created attachment 655178 [details, diff] [details, diff] > patch to remove -j0 > > Slightly modified patch as linked to in this comment: > > https://bugs.gentoo.org/720050#c16 Doesn't this effectively force -j1 for everyone? I suppose it would be better to sed it into correct job count. I'll look at it in a minute. From a quick peek, the following parts do not respect MAKEOPTS: 1. setup.py build of extensions, 2. tests, 3. compileall. I'll try to patch all of them. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2cb4f6a8da80865a65bbebd5cf749e4cab8ae62 commit a2cb4f6a8da80865a65bbebd5cf749e4cab8ae62 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2020-08-18 07:54:48 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2020-08-18 08:03:54 +0000 dev-lang/python: Respect MAKEOPTS throughout the build Closes: https://bugs.gentoo.org/737660 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-lang/python/python-3.6.11-r2.ebuild | 14 +++++++++++--- dev-lang/python/python-3.7.8-r2.ebuild | 14 +++++++++++--- dev-lang/python/python-3.8.5.ebuild | 15 ++++++++++++--- dev-lang/python/python-3.9.0_rc1.ebuild | 16 ++++++++++++---- 4 files changed, 46 insertions(+), 13 deletions(-) Fix confirmed at least for the -j1 case, on amd64 and arm (Raspberry Pi 3). @Michał: No patch but sed'ing in the ebuilds... quite a cool one. :-) |