Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] Generate soname dependency metadata (282639)
Date: Sun, 08 Feb 2015 06:10:04
Message-Id: 54D6FDB7.4070607@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] Generate soname dependency metadata (282639) by Zac Medico
1 On 01/29/2015 06:02 PM, Zac Medico wrote:
2 >> Nice logic here :) The only thing that I don't get is why we might need
3 >> {provides,requires}_exclude patterns. I guess its good design
4 >> principles but I can't think of a use case.
5 >
6 > I copied the idea from Fedora [2]. Since the soname dependencies are
7 > automatically generated, we want to be able to filter them if necessary,
8 > though hopefully it won't be needed very often.
9
10 I've generated soname dependencies for all of the packages installed on
11 my desktop system, and I'm using /etc/portage/profile/package.bashrc to
12 set PROVIDES_EXCLUDE and REQUIRES_EXCLUDE for the packages that need it.
13 I've put the settings in a git repo [1], so that people can see some
14 examples of how PROVIDES_EXCLUDE and REQUIRES_EXCLUDE are useful.
15
16 Typically, PROVIDES_EXCLUDE is useful for packages containing bundled or
17 internal libraries. REQUIRES_EXCLUDE is useful for bundled or internal
18 libraries that lack DT_SONAME, or to ignore soname references that are
19 simply broken.
20
21 [1] https://github.com/zmedico/portage-soname-bashrc
22 --
23 Thanks,
24 Zac