Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 05 Dec 2015 21:14:01
Message-Id: 1449350028.8a0710d4da07db9ca0d2ce84b79a89657e29ddcc.vapier@gentoo
1 commit: 8a0710d4da07db9ca0d2ce84b79a89657e29ddcc
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 5 07:32:58 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 5 21:13:48 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a0710d4
7
8 toolchain.eclass: convert `find|xargs` to `find -exec`
9
10 eclass/toolchain.eclass | 9 ++++-----
11 1 file changed, 4 insertions(+), 5 deletions(-)
12
13 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
14 index cea6c05..82b77ad 100644
15 --- a/eclass/toolchain.eclass
16 +++ b/eclass/toolchain.eclass
17 @@ -1505,7 +1505,7 @@ toolchain_src_compile() {
18
19 # Do not make manpages if we do not have perl ...
20 [[ ! -x /usr/bin/perl ]] \
21 - && find "${WORKDIR}"/build -name '*.[17]' | xargs touch
22 + && find "${WORKDIR}"/build -name '*.[17]' -exec touch {} +
23
24 gcc_do_make ${GCC_MAKE_TARGET}
25 }
26 @@ -1713,9 +1713,8 @@ toolchain_src_install() {
27 # install testsuite results
28 if use regression-test; then
29 docinto testsuite
30 - find "${WORKDIR}"/build -type f -name "*.sum" -print0 | xargs -0 dodoc
31 - find "${WORKDIR}"/build -type f -path "*/testsuite/*.log" -print0 \
32 - | xargs -0 dodoc
33 + find "${WORKDIR}"/build -type f -name "*.sum" -exec dodoc {} +
34 + find "${WORKDIR}"/build -type f -path "*/testsuite/*.log" -exec dodoc {} +
35 fi
36
37 # Rather install the script, else portage with changing $FILESDIR
38 @@ -1810,7 +1809,7 @@ gcc_movelibs() {
39 for FROMDIR in ${removedirs} ; do
40 rmdir "${D}"${FROMDIR} >& /dev/null
41 done
42 - find "${D}" -type d | xargs rmdir >& /dev/null
43 + find -depth "${D}" -type d -exec rmdir {} + >& /dev/null
44 }
45
46 # make sure the libtool archives have libdir set to where they actually