Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: Gentoo Developer Mailing List <gentoo-dev@l.g.o>
Subject: [gentoo-dev] prune_libtool_files() and pkg-config dependency
Date: Wed, 29 Aug 2012 21:43:22
Message-Id: 20120829234250.54edff87@pomiocik.lan
1 Hello, fellow developers.
3 I'd like to note that the prune_libtool_files() in eutils.eclass has
4 a pretty specific dependency on pkg-config. Whenever it is used
5 in an ebuild, it should depend on virtual/pkgconfig if all
6 of the following conditions are met:
8 1. The ebuild installs at least a single static library with
9 a corresponding .la file,
11 2. the .la files has no 'shouldnotlink=yes' (i.e. is not a plugin),
13 3. the .la file has non-empty 'dependency_libs' and/or
14 'inherited_linker_flags',
16 4. the '--all' option is not being used.
18 In other words, pkg-config is only used when no other criteria allows
19 it to classify the particular .la file as suitable for removal or not.
20 Sadly, it's rather, ehm, unfriendly to ebuild developers who obviously
21 don't even read the relevant part.
23 Do you have any ideas how we can improve that?
25 One thing that comes into my mind is finally making pkgconfig
26 a required, implicit part of toolchain (or @system). Since we have
27 pkgconf now, this is more feasible than before.
29 --
30 Best regards,
31 Michał Górny


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


Subject Author
Re: [gentoo-dev] prune_libtool_files() and pkg-config dependency Mike Frysinger <vapier@g.o>