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"
On Thursday 31 May 2012 08:55:25 Michał Górny 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 .pc.
> + if [[ ! ${removing_all} ]]; then > + local f > + local tf=${T}/prune-lt-files.pc > + local pkgconf=$(tc-getPKG_CONFIG) > + > + while IFS= 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 when done if no one else has feedback, i guess merge it -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>