Re: [gentoo-dev] [PATCH] waf-utils.eclass: enable parallel install

2023-01-30 Thread Sam James


> On 28 Jan 2023, at 19:25, Mike Gilbert  wrote:
> 
> This gives a nice speedup to net-fs/samba, which (re)links several
> hundred files in its install phase.
> 
> Bug: https://bugs.gentoo.org/715542
> Signed-off-by: Mike Gilbert 
> ---

OK, let's try it. Bit reluctant because of some of the issues we've had before 
but
should be less of an issue in install.


signature.asc
Description: Message signed with OpenPGP


[gentoo-dev] [PATCH] waf-utils.eclass: enable parallel install

2023-01-28 Thread Mike Gilbert
This gives a nice speedup to net-fs/samba, which (re)links several
hundred files in its install phase.

Bug: https://bugs.gentoo.org/715542
Signed-off-by: Mike Gilbert 
---
 eclass/waf-utils.eclass | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
index 1be02bbea3c..e72676d0656 100644
--- a/eclass/waf-utils.eclass
+++ b/eclass/waf-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: waf-utils.eclass
@@ -138,8 +138,9 @@ waf-utils_src_install() {
 
export PYTHONHASHSEED=1
 
-   echo "\"${WAF_BINARY}\" --jobs=1 --destdir=\"${D}\" ${*} install"
-   "${WAF_BINARY}" --jobs=1 --destdir="${D}" "${@}" install || die "Make 
install failed"
+   local jobs="--jobs=$(makeopts_jobs)"
+   echo "\"${WAF_BINARY}\" ${jobs} --destdir=\"${D}\" ${*} install"
+   "${WAF_BINARY}" ${jobs} --destdir="${D}" "${@}" install || die "Make 
install failed"
 
# Manual document installation
einstalldocs
-- 
2.39.0