Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Cc: samba@g.o
Subject: [gentoo-dev] [PATCH] waf-utils.eclass: enable parallel install
Date: Sat, 28 Jan 2023 19:25:57
Message-Id: 20230128192549.3209405-1-floppym@gentoo.org
1 This gives a nice speedup to net-fs/samba, which (re)links several
2 hundred files in its install phase.
3
4 Bug: https://bugs.gentoo.org/715542
5 Signed-off-by: Mike Gilbert <floppym@g.o>
6 ---
7 eclass/waf-utils.eclass | 7 ++++---
8 1 file changed, 4 insertions(+), 3 deletions(-)
9
10 diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
11 index 1be02bbea3c..e72676d0656 100644
12 --- a/eclass/waf-utils.eclass
13 +++ b/eclass/waf-utils.eclass
14 @@ -1,4 +1,4 @@
15 -# Copyright 1999-2022 Gentoo Authors
16 +# Copyright 1999-2023 Gentoo Authors
17 # Distributed under the terms of the GNU General Public License v2
18
19 # @ECLASS: waf-utils.eclass
20 @@ -138,8 +138,9 @@ waf-utils_src_install() {
21
22 export PYTHONHASHSEED=1
23
24 - echo "\"${WAF_BINARY}\" --jobs=1 --destdir=\"${D}\" ${*} install"
25 - "${WAF_BINARY}" --jobs=1 --destdir="${D}" "${@}" install || die "Make install failed"
26 + local jobs="--jobs=$(makeopts_jobs)"
27 + echo "\"${WAF_BINARY}\" ${jobs} --destdir=\"${D}\" ${*} install"
28 + "${WAF_BINARY}" ${jobs} --destdir="${D}" "${@}" install || die "Make install failed"
29
30 # Manual document installation
31 einstalldocs
32 --
33 2.39.0

Replies