Gentoo Archives: gentoo-soc

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-soc@l.g.o
Subject: Re: [gentoo-soc] Auto dependency builder. Need some thoughts before start to code.
Date: Mon, 23 May 2011 08:27:37
Message-Id: 1306139230.2454.66.camel@big_daddy.dol-sen.ca
In Reply to: Re: [gentoo-soc] Auto dependency builder. Need some thoughts before start to code. by "Александр Берсенев"
1 On Sun, 2011-05-22 at 17:08 +0000, Александр Берсенев wrote:
2 > > Because nearly every pkg will depend on something else, so the list will
3 > > keep growing till nearly everything installed is listed. So use
4 > > reasonable limits.
5 >
6 > I understand: depgraph produce pessimistic graph - graph if all
7 > conditional deps is satisfied.
8 > For example I have "-gpm" USE flag. From ncurses ebuild: 'DEPEND="gpm?
9 > ( sys-libs/gpm )"'
10 > If I launch equery, it shows the sys-libs/gpm:
11 > # equery g =sys-libs/ncurses-5.9 --depth=1
12 > `-- sys-libs/ncurses-5.9 ~amd64
13 > `-- sys-libs/gpm-1.20.6 (sys-libs/gpm) ~amd64
14 > [ sys-libs/ncurses-5.9 stats: packages (2), max depth (0) ]
15 >
16 > Using API I got this:
17 > from gentoolkit.dependencies import Dependencies
18 > D=Dependencies('sys-libs/ncurses-5.9')
19 > D.graph_depends(max_depth=1)
20 > [(0, <Package u'sec-policy/selinux-gpm-20080525'>)]
21 >
22 > I don't have any idea why selinux-gpm is here. There is no selinux-gpm
23 > package in ebuild of ncurses nor in the inherited eclasses. Also, I
24 > don't have it installed and it is hard-masked. I will try to
25 > understand the logic of dependencies in Gentoo more deeply.
26 >
27 > Best,
28 > Alexander Bersenev
29 >
30
31 OK, that is fixed in git now, so emerge gentoolkit-9999 for the fix.
32 Don't worry about it being 'unstable', it will likely be the -0.3.0.4
33 maintenance release anyway.
34
35
36 --
37 Brian Dolbec <brian.dolbec@×××××.com>

Attachments

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