Gentoo Archives: gentoo-soc

From: "Александр Берсенев" <bay@×××××××××.ru>
To: gentoo-soc@l.g.o
Subject: Re: [gentoo-soc] Auto dependency builder. Need some thoughts before start to code.
Date: Sun, 22 May 2011 17:08:53
Message-Id: BANLkTimv8nSXgfnKh6-8=kZJO-wB5X-naw@mail.gmail.com
In Reply to: Re: [gentoo-soc] Auto dependency builder. Need some thoughts before start to code. by Brian Dolbec
1 > Because nearly every pkg will depend on something else, so the list will
2 > keep growing till nearly everything installed is listed.  So use
3 > reasonable limits.
4
5 I understand: depgraph produce pessimistic graph - graph if all
6 conditional deps is satisfied.
7 For example I have "-gpm" USE flag. From ncurses ebuild: 'DEPEND="gpm?
8 ( sys-libs/gpm )"'
9 If I launch equery, it shows the sys-libs/gpm:
10 # equery g =sys-libs/ncurses-5.9 --depth=1
11 `-- sys-libs/ncurses-5.9 ~amd64
12 `-- sys-libs/gpm-1.20.6 (sys-libs/gpm) ~amd64
13 [ sys-libs/ncurses-5.9 stats: packages (2), max depth (0) ]
14
15 Using API I got this:
16 from gentoolkit.dependencies import Dependencies
17 D=Dependencies('sys-libs/ncurses-5.9')
18 D.graph_depends(max_depth=1)
19 [(0, <Package u'sec-policy/selinux-gpm-20080525'>)]
20
21 I don't have any idea why selinux-gpm is here. There is no selinux-gpm
22 package in ebuild of ncurses nor in the inherited eclasses. Also, I
23 don't have it installed and it is hard-masked. I will try to
24 understand the logic of dependencies in Gentoo more deeply.
25
26 Best,
27 Alexander Bersenev

Replies

Subject Author
Re: [gentoo-soc] Auto dependency builder. Need some thoughts before start to code. Brian Dolbec <brian.dolbec@×××××.com>