commit:     0ca217742778ccea10ca35472bdcba47cd47c167
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 13 22:09:54 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 13 22:10:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ca21774

kernel-build.eclass: silence tools search

Fixes: b86d9482f6ff14401970092b3034ef1cc2813163
Fixes: 61f0eab4e3c0272449024e83f32734b0e6d392bb
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/kernel-build.eclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index cc99298811bc..1fa25cbc9574 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -90,24 +90,24 @@ kernel-build_src_configure() {
                ARCH=$(tc-arch-kernel)
        )
 
-       if type -P xz ; then
+       if type -P xz &>/dev/null ; then
                export XZ_OPT="-T$(makeopts_jobs)"
        fi
 
-       if type -P zstd ; then
+       if type -P zstd &>/dev/null ; then
                export ZSTD_NBTHREADS="$(makeopts_jobs)"
        fi
 
        # pigz/pbzip2/lbzip2 all need to take an argument, not an env var,
        # for their options, which won't work because of how the kernel build 
system
        # uses the variables (e.g. passes directly to tar as an executable).
-       if type -P pigz ; then
+       if type -P pigz &>/dev/null ; then
                MAKEARGS+=( KGZIP="pigz" )
        fi
 
-       if type -P pbzip2 ; then
+       if type -P pbzip2 &>/dev/null ; then
                MAKEARGS+=( KBZIP2="pbzip2" )
-       elif type -P lbzip2 ; then
+       elif type -P lbzip2 &>/dev/null ; then
                MAKEARGS+=( KBZIP2="lbzip2" )
        fi
 

Reply via email to