|Summary:||dev-util/cmake - cmake_src_bootstrap is trying to be too clever with MAKEOPTS|
|Product:||Gentoo Linux||Reporter:||Anthony Parsons <ant+gentoo.bugs>|
|Component:||Current packages||Assignee:||Gentoo KDE team <kde>|
|Package list:||Runtime testing required:||---|
|Bug Depends on:|
Description Anthony Parsons 2018-04-19 17:41:59 UTC
The code in that function tries to pull out the -j value and pass it to ./bootstrap --parallel, but this has dire results for something like MAKEOPTS="-j7 -l1". Would be better for the first regex to be anchored at both ends so that it picks the safe but slow default if it can't account for the entire string. (would be better still if I didn't need to resort to FEATURES=-distcc to build it, but one thing at a time.)
Comment 1 Lars Wendler (Polynomial-C) 2018-04-19 19:22:11 UTC
Created attachment 528056 [details, diff] cmake.ebuild.diff Can you test the attached patch and give feedback please?
Comment 2 Anthony Parsons 2018-04-19 19:45:54 UTC
It works, after doing s/: then/; then/, followed by emerge -C cmake; emerge -1 cmake, but no change: I still get a "gmake -j 7" in my process tree.