Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 921309

Summary: dev-db/mysql-connector-c++ : ignores makeopts -j4
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: eschwartz
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.mysql.com/bug.php?id=115734
Whiteboard: cmake without cmake.eclass
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 654178    
Attachments: ps-faux-20240102-233300-55.txt

Description Toralf Förster gentoo-dev 2024-01-03 19:41:11 UTC
resulting in a too high load.
Comment 1 Toralf Förster gentoo-dev 2024-01-03 19:41:45 UTC
Created attachment 881419 [details]
ps-faux-20240102-233300-55.txt

ps faux
Comment 2 Eli Schwartz gentoo-dev 2024-08-01 05:14:50 UTC
Free system crashes, yikes.
Comment 3 Larry the Git Cow gentoo-dev 2024-08-01 07:05:49 UTC
The bug has been closed via the following commit(s):

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

commit 943614ccefce87dd83cbaf99849726eb481311ab
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-08-01 05:05:39 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-08-01 06:50:25 +0000

    dev-db/mysql-connector-c++: fix tragic overcommit of make jobs
    
    Internally, this builds additional dependencies inside of cmake by
    having build rules that run another cmake. Inside src_compile, make
    forks out to make -j$(nproc) at least once, and perhaps even more times
    (this logic is part of their generic handling of included dependencies
    but we may only be building protobuf that way anyway).
    
    We end up with a minimum of two times the number of reasonably safe jobs
    to run, your system resources get clobbered, and everything freezes
    until the OOM killer gets involved.
    
    Golly gee, I *wish* it were merely ignoring MAKEFLAGS. Then we would
    eventually succeed, except slower...
    
    Closes: https://bugs.gentoo.org/921309
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 .../mysql-connector-c++/mysql-connector-c++-8.0.33-r1.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
Comment 4 Andreas Sturmlechner gentoo-dev 2025-06-10 21:23:07 UTC
Horrible.