From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A3D961381F3 for ; Sun, 7 Apr 2013 08:57:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DE75E0C6D; Sun, 7 Apr 2013 08:57:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B744DE0C6D for ; Sun, 7 Apr 2013 08:56:59 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 95BB133DD35 for ; Sun, 7 Apr 2013 08:56:53 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id 5E0842171D; Sun, 7 Apr 2013 08:56:52 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: toolchain.eclass X-VCS-Directories: eclass X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20130407085652.5E0842171D@flycatcher.gentoo.org> Date: Sun, 7 Apr 2013 08:56:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3e02120c-38c4-4d0e-9f27-f4c138c44b2b X-Archives-Hash: fdeef00a4c8911b2890d519e92dda198 vapier 13/04/07 08:56:52 Modified: toolchain.eclass Log: use simpler find statements Revision Changes Path 1.577 eclass/toolchain.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.577&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.577&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.576&r2=1.577 Index: toolchain.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v retrieving revision 1.576 retrieving revision 1.577 diff -u -r1.576 -r1.577 --- toolchain.eclass 7 Apr 2013 08:51:25 -0000 1.576 +++ toolchain.eclass 7 Apr 2013 08:56:52 -0000 1.577 @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.576 2013/04/07 08:51:25 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.577 2013/04/07 08:56:52 vapier Exp $ # # Maintainer: Toolchain Ninjas @@ -1495,23 +1495,23 @@ cd "${WORKDIR}"/build # Do allow symlinks in private gcc include dir as this can break the build - find gcc/include*/ -type l -print0 | xargs -0 rm -f + find gcc/include*/ -type l -delete # Copy over the info pages. We disabled their generation earlier, but the # build system only expects to install out of the build dir, not the source. #464008 cp "${S}"/gcc/doc/*.info gcc/doc/ || die # Remove generated headers, as they can cause things to break # (ncurses, openssl, etc). - for x in $(find gcc/include*/ -name '*.h') ; do + while read x ; do grep -q 'It has been auto-edited by fixincludes from' "${x}" \ && rm -f "${x}" - done + done < <(find gcc/include*/ -name '*.h') # Do the 'make install' from the build directory S=${WORKDIR}/build \ emake -j1 DESTDIR="${D}" install || die # Punt some tools which are really only useful while building gcc find "${D}" -name install-tools -prune -type d -exec rm -rf "{}" \; # This one comes with binutils - find "${D}" -name libiberty.a -exec rm -f "{}" \; + find "${D}" -name libiberty.a -delete # Move the libraries to the proper location gcc_movelibs