commit:     3568dfe530a4f38f0c5a46a07406c41656e200b7
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Jun  3 07:43:18 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun  3 13:34:45 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=3568dfe5

estrip: silence type lookup failures for debugedit and dwz

Don't allow for the type builtin to display a diagnostic message in the
case that it cannot initially resolve the debugedit(1) and/or dwz(1)
utilities. Not only would the program proceed to look for them elsewhere
but it assumes the responsibility of later displaying warnings regarding
their absence.

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/estrip | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/estrip b/bin/estrip
index 4f734f729b..27fc655995 100755
--- a/bin/estrip
+++ b/bin/estrip
@@ -188,7 +188,7 @@ read -rd '' -a portage_strip_flags 
<<<"${PORTAGE_STRIP_FLAGS-${SAFE_STRIP_FLAGS}
 
 prepstrip_sources_dir=${EPREFIX}/usr/src/debug/${CATEGORY}/${PF}
 
-if ! debugedit_bin=$(type -P debugedit); then
+if ! debugedit_bin=$(type -P debugedit 2>/dev/null); then
        debugedit_paths=(
                "${EPREFIX}/usr/libexec/rpm/debugedit"
        )
@@ -200,7 +200,7 @@ if ! debugedit_bin=$(type -P debugedit); then
        done
 fi
 
-dwz_bin=$(type -P dwz)
+dwz_bin=$(type -P dwz 2>/dev/null)
 
 __multijob_init
 

Reply via email to