Gentoo Archives: gentoo-dev

From: Ned Ludd <solar@g.o>
To: ferringb@g.o
Cc: gentoo-dev@l.g.o, carpaski@g.o, amd64@g.o
Subject: Re: [gentoo-dev] Moving functionality out of portage and into the tree
Date: Thu, 29 Jul 2004 18:55:17
Message-Id: 1091127270.22576.83.camel@simple
In Reply to: [gentoo-dev] Moving functionality out of portage and into the tree by Brian Harring
1 I fully support this as long as I'm in said group that can commit on
2 these things or get a speedy response from somebody else that is.
3 If initially if it's going to be limited I'd suggest the base-system,
4 portage and toolchain herds.
5
6 I'm also in favor of moving not just the do* stuff but also much of the
7 prep* that can be safely moved out of
8 /home/cvsroot/gentoo-src/portage/bin/ as well.
9
10 Thank you ferringb for mustering up this email to shed light on the
11 situation.
12
13 On Thu, 2004-07-29 at 05:36, Brian Harring wrote:
14 > Note: pardon the dual post, resending this since I managed to leave a
15 > subject off of... any discussion regarding this, please start the thread
16 > from this message... sorry about that :-)
17 >
18 > Currently portage bundles all do* and new* scripts that ebuilds use with
19 > each release. In other words, the current breakage w/ dohtml -R not
20 > handling files w/ spaces correctly is tied to a portage version
21 > (<=.51_pre13). Prior releases of portage will remain broke,
22 > since the fix is tied to a portage release.
23 >
24 > To head off the 'they should upgrade', yes, having a current portage is
25 > important- that doesn't mean we can't split these files out so that they
26 > *aren't* tied to a release.
27 >
28 > Gentoo's pkg system is basically composed of two things; portage, the
29 > executor of ebuild instructions, and the tree, the data for
30 > compilation/installation of src. Currently portage is basically
31 > providing a collection of scripts/functions that are strictly used by
32 > the ebuilds, basically a library of functions/scripts- basically 'data'
33 > in the exec portion.
34 >
35 > This 'library' should be placed into the tree, since portage isn't aware
36 > of the scripts/functions even existing for the most part. The do* and
37 > new* scripts are specific to the customs we have for our tree, not
38 > portage.
39 >
40 > The scripts are kind of a no brainer for moving- what I'm also
41 > proposing, is the creation of an ebuild-base eclass that is
42 > automatically inherited, and lives in the tree.
43 >
44 > Same thing, moving functions out of portage that are specific to our
45 > tree, into the tree.
46 >
47 > Fex: the amd64 crew is after being able to overload econf so that they
48 > can specify where the 64bit libs should live; as it stands, they're
49 > stuck until it's in a portage release. If econf lived in the
50 > ebuild-base class, this change could be flipped on regardless of the
51 > users portage version.
52 >
53 > The embedded crew are after something similar- see bug #55476, basically
54 > need an addition to econf to do tweaks to configure scripts; as it
55 > stands, they must wait for it a release.
56 >
57 > The point of all of this is that these functions/scripts *aren't*
58 > specific to portage the package, they're specific to our tree,
59 > specifically the tree *at that moment* I'd assume when it was decided
60 > we would have these functions available for our ebuilds, they wound up
61 > in the portage src for lack of a better place, which I view as the wrong
62 > location.
63 >
64 > Ebuild-base.eclass would hold econf, emake, ins*, and a few other
65 > functions.
66 >
67 > Assuming people have read this far, and agree, and this is actually
68 > undertaken, the scripts/ebuild-base class should be controlled by a
69 > herd- those who know the tree in and out would be best for the herd.
70 > Basically, grab those who already are already doing serious QA of the
71 > ebuilds in the tree.
72
73 > As for actually doing these moves, it's pretty straightforward.
74 > Transferring the scripts out of portage pretty much consists of a PATH
75 > addition in a portage release, for auto-inheriting ebuild-base.eclass,
76 > addition of another src statement. About it.
77 >
78 > So... thoughts?
79 > ~brian
80 --
81 Ned Ludd <solar@g.o>
82 Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer

Attachments

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

Replies