Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 419641

Summary: autotools.eclass: avoid type -P output for glibtoolize
Product: Gentoo Linux Reporter: Fabian Groffen <grobian>
Component: EclassesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: prefix
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fabian Groffen gentoo-dev 2012-06-04 18:19:44 UTC
Please apply the following patch to autotools.eclass, or something similar to suppress the output of type -P.

Index: autotools.eclass
===================================================================
--- autotools.eclass    (revision 60957)
+++ autotools.eclass    (working copy)
@@ -276,7 +276,7 @@
 # Note the '_' prefix .. to not collide with elibtoolize() from libtool.eclass.
 _elibtoolize() {
        local LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
-       type -P glibtoolize && LIBTOOLIZE=glibtoolize
+       type -P glibtoolize > /dev/null && LIBTOOLIZE=glibtoolize
 
        [[ -f GNUmakefile.am || -f Makefile.am ]] && set -- "$@" --automake
        if [[ $1 == "--install" ]] ; then
Comment 1 SpanKY gentoo-dev 2012-06-04 21:07:13 UTC
looks fine; feel free to commit
Comment 2 Fabian Groffen gentoo-dev 2012-06-05 18:32:01 UTC
committed