From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SbmpR-0005oH-8R for garchives@archives.gentoo.org; Tue, 05 Jun 2012 06:01:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3895FE0ABE; Tue, 5 Jun 2012 06:01:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E8527E09EA for ; Tue, 5 Jun 2012 06:00:17 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 3652F1B4016 for ; Tue, 5 Jun 2012 06:00:17 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH eutils] Introduce prune_libtool_files(). Date: Tue, 5 Jun 2012 02:00:34 -0400 User-Agent: KMail/1.13.7 (Linux/3.4.0; KDE/4.6.5; x86_64; ; ) References: <201205301719.50449.vapier@gentoo.org> <1338468925-27121-1-git-send-email-mgorny@gentoo.org> In-Reply-To: <1338468925-27121-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1855209.VWA1dvflaF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201206050200.35370.vapier@gentoo.org> X-Archives-Salt: c3b802d0-c06f-4595-9566-71fee615dd95 X-Archives-Hash: 5f69c12f84ea7faaa66d3cc4baf2eb0e --nextPart1855209.VWA1dvflaF Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thursday 31 May 2012 08:55:25 Micha=C5=82 G=C3=B3rny wrote: > +# Note: this function implicitly calls pkg-config. You should add it to > +# your DEPEND when using it. should clarify: implicitly calls pkg-config when your package provides a .p= c. > + if [[ ! ${removing_all} ]]; then > + local f > + local tf=3D${T}/prune-lt-files.pc > + local pkgconf=3D$(tc-getPKG_CONFIG) > + > + while IFS=3D read -r -d '' f; do # for all .pc files > + sed -e '/^Requires:/d' "${f}" > "${tf}" > + for arg in $("${pkgconf}" --libs "${tf}"); do missing `local arg` > + done < <(find "${D}" -type f -name '*.pc' -print0) not a big deal since it'll get cleaned anyways, but this doesn't clean up $= tf=20 when done if no one else has feedback, i guess merge it =2Dmike --nextPart1855209.VWA1dvflaF Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPzaCDAAoJEEFjO5/oN/WBrVMP/RpbR1aS/DUTJym7a3Jsx3pj XFBoZ40hLpEK+Iv/52PMXutt9c8LhwnB6BMBlLQqYsak2MvCX7qwetqlps07hXGF pPGXyTciNRhIoh8C6pao62NQLeAyvQ5f8fSvZ4IwZtytarkfGlud9o7xGhWAz4KM Yy/T5REIHOUo9F15NcYbA8QeV5V1zttiRKInGnmKQqwLNP3Mwm2nGElnLVHZt1Gv AUBt6ZymQwq80DHhGWZ6co6ZZ5n4WPsvQQ1yO1OfJC5TmEDO14DSnfmeQrNqBqoO UvOLzrpaBi46WWGN/0MY9wGUInMlPZanuDMn9YRc/fC90ihgMOw5aFLPiZF9qDgp 4hGsQCoHGN38cobmbjwzezN6+3pe4NAEZNgD2X6h15fzRlM6Hl4ifCdXg+e4VNk9 rGpAlFQ32ua5zaWfOxLKHe1f/Urp6K6bGbggh6W7xL6mZwZi7isEo/NfvXQanegZ FVlSypSfrS4E1UJU9DMdSuWgRjH5SEMNEjaENBI7V3PlnieJVdxXqoMG+2BX5O98 RHUB6GvYsqieTBhuUqy0x3DHztZzkDhd6FYtj0lPv441YgzEKseHKl+lfay15Qj7 polQq8QuExM2KuE4qeiOz7qDe3G/KfdyIl6ezMEoYCSN8axtyoQ8q7aGk3tjzFn8 cfvHH6BGYR+a82zAeg+5 =o17m -----END PGP SIGNATURE----- --nextPart1855209.VWA1dvflaF--