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

    From Mike Gilbert@21:1/5 to All on Sat Jan 28 20:30:01 2023
    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 <floppym@gentoo.org>
    ---
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to All on Mon Jan 30 23:10:01 2023
    On 28 Jan 2023, at 19:25, Mike Gilbert <floppym@gentoo.org> 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 <floppym@gentoo.org>
    ---

    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.

    -----BEGIN PGP SIGNATURE-----

    iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY9g90F8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kLSbAQDYO0YAvwoyN7z8V4cz9eje5wFSh4y/UrlG55ezhKuslQEA9Dml5gRlyFMi 361LnoVAvLyFsgb6Se/AFPuHNpQSows=
    =BWtD
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)