Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 362932 Details for
Bug 490620
multiprocessing.eclass should include support for --load-average along with --jobs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
multiprocessing.eclass.patch
file_490620.txt (text/plain), 1.16 KB, created by
Tom Wijsman (TomWij) (RETIRED)
on 2013-11-09 23:37:03 UTC
(
hide
)
Description:
multiprocessing.eclass.patch
Filename:
MIME Type:
Creator:
Tom Wijsman (TomWij) (RETIRED)
Created:
2013-11-09 23:37:03 UTC
Size:
1.16 KB
patch
obsolete
>--- a/multiprocessing.eclass 2013-10-12 23:31:16.000000000 +0200 >+++ b/multiprocessing.eclass 2013-11-06 22:30:03.487129897 +0100 >@@ -55,6 +55,25 @@ > echo ${jobs:-1} > } > >+# @FUNCTION: makeopts_loadavg >+# @USAGE: [${MAKEOPTS}] >+# @DESCRIPTION: >+# Searches the arguments (defaults to ${MAKEOPTS}) and extracts the value set >+# for load-average. For make and ninja based builds this will mean new jobs are >+# not only limited by the jobs-value, but also by the current load - which might >+# get excessive due to I/O and not just due to CPU load. >+# Be aware that the returned number might be a floating-point number. Test >+# whether your software supports that. >+makeopts_loadavg() { >+ [[ $# -eq 0 ]] && set -- ${MAKEOPTS} >+ # This assumes the first .* will be more greedy than the second .* >+ # since POSIX doesn't specify a non-greedy match (i.e. ".*?"). >+ local lavg=$(echo " $* " | sed -r -n \ >+ -e 's:.*[[:space:]](-l|--load-average[=[:space:]])[[:space:]]*([0-9]+|[0-9]+\.[0-9]+)[^0-9.]*:\2:p' \ >+ -e 's:.*[[:space:]](-l|--load-average)[[:space:]].*:999:p') >+ echo ${lavg:-1} >+} >+ > # @FUNCTION: multijob_init > # @USAGE: [${MAKEOPTS}] > # @DESCRIPTION:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 490620
:
362706
| 362932