Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH eutils] Introduce prune_libtool_files().
Date: Tue, 05 Jun 2012 06:01:17
Message-Id: 201206050200.35370.vapier@gentoo.org
In Reply to: [gentoo-dev] [PATCH eutils] Introduce prune_libtool_files(). by "Michał Górny"
1 On Thursday 31 May 2012 08:55:25 Michał Górny wrote:
2 > +# Note: this function implicitly calls pkg-config. You should add it to
3 > +# your DEPEND when using it.
4
5 should clarify: implicitly calls pkg-config when your package provides a .pc.
6
7 > + if [[ ! ${removing_all} ]]; then
8 > + local f
9 > + local tf=${T}/prune-lt-files.pc
10 > + local pkgconf=$(tc-getPKG_CONFIG)
11 > +
12 > + while IFS= read -r -d '' f; do # for all .pc files
13 > + sed -e '/^Requires:/d' "${f}" > "${tf}"
14 > + for arg in $("${pkgconf}" --libs "${tf}"); do
15
16 missing `local arg`
17
18 > + done < <(find "${D}" -type f -name '*.pc' -print0)
19
20 not a big deal since it'll get cleaned anyways, but this doesn't clean up $tf
21 when done
22
23 if no one else has feedback, i guess merge it
24 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] [PATCH eutils] Introduce prune_libtool_files(). "Michał Górny" <mgorny@g.o>