Gentoo Archives: gentoo-portage-dev

From: Thomas de Grenier de Latour <degrenier@×××××××××××.fr>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [1/3] BUILD_PKGS: code
Date: Thu, 03 Nov 2005 08:51:10
Message-Id: 20051103094854.741442c7@eusebe
In Reply to: [gentoo-portage-dev] [0/3] BUILD_PKGS, a replacement for build{,sys}pkg FEATURES by Thomas de Grenier de Latour
1 This is the code:
2 * pym/portage_const.py: add BUILD_PKGS to the incremental variables
3 * pym/portage.py, in the config class, adds:
4 - a getprovides() method to get the list of virtuals a pkg
5 provides. Code is from setinst(), and setinst() now calls
6 this method.
7 - an issytem() method to check whether a package is in the
8 system list or provides a virtual required by system. It
9 uses getprovides().
10 * pym/portage.py, in portdbapi, adds:
11 - an istobuildpkg() method, which evaluates the BUILD_PKGS
12 rules against a CPV. If matches, returns a non-empty string
13 (the best matching rule), and else returns 0. It uses
14 config.issystem().
15 * bin/emerge:
16 - deals with buildpkg/buildsyspkg deprecation, appending "*" or
17 "system" to BUILD_PKGS if necessary.
18 - reverses other "buildsyspkg" changes
19 - in depgraph.merge(), call istobuildpkg() to check whether
20 binary package should be created. If yes, do it (similar to
21 --buildpkg), and also display which rule was matching.
22
23 --
24 TGL.

Attachments

File name MIME type
portage-2.0-svn20051024-BUILD_PKGS-code.patch text/x-patch