Gentoo Archives: gentoo-dev

From: "Tod M. Neidt" <tod@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] ebuild policy questions.
Date: Thu, 11 Apr 2002 16:16:40
Message-Id: 1018562103.2980.1.camel@silica.localmosci
In Reply to: [gentoo-dev] ebuild policy questions. by Terje Kvernes
1 Hi!
2
3 I'll take a stab at this and offer some suggestions. Please note that
4 these comments should not be considered "policy" and it should be a
5 given that any drobbins pronouncements on this issue automatically trump
6 mine.
7
8 On Thu, 2002-04-11 at 15:30, Terje Kvernes wrote:
9 >
10 > hi all, thanks for a great distro!
11 >
12 > now, I'm in the process of trying to contribute a little, in effect
13 > making some ebuilds. now, the technical writing of the builds isn't
14 > a problem, yet, it's more a few things I wonder about policy-wise.
15 >
16 > first off, if I see an ebuild that is out of date, do I contact the
17 > author of the out-of-date ebuild or do I submit a new one? so far
18 > I've thought "if the old one is _really_ out of date, I'll submit a
19 > new ebuild, if it's a week or two since the new version came out,
20 > I'll take it with the author." the real question is probably how
21 > "possessive" authors are / are supposed to be with regards to their
22 > ebuilds. is there any set policy on this?
23
24 I would suggest submitting any changes to bugzilla and notifying the
25 "author" or "maintainer" by cc'ing them on the bug submission if they
26 don't happen to be the automatic assignee. Note that you should
27 probably check the Changelog for that particular package to see who has
28 been actively maintaining the ebuild, as this developer is not
29 necessarily the same as the one listed in the ebuild header.
30
31 If the ebuild update just requires a copy of the ebuild to the new
32 revision number, it is not necessary to attach the ebuild. A comment
33 stating that "version 1.2 of foo has been released,a simple copy of
34 foo-1.1-r3.ebuild to foo-1.2.ebuild works" or something to that effect
35 is sufficient.
36
37 If the ebuild update requires changes to the ebuild, I find it
38 convenient when people attach a diff between the original and updated
39 ebuild instead of the entire updated ebuild as this makes it very easy
40 to see the changes that are proposed.
41
42 >
43 > second, and a bit more tricky. I thought I'd make an xgammon
44 > ebuild. all fine and dandy, but there are a few patches (from
45 > RedHat) to xgammon which are nice to have (they fix minor bugs --
46 > void main -> int main and a few other things). what to do? if I
47 > include the patches, how do I link to them? or do I just put them
48 > in the "files"-directory with the ebuild?
49
50 For patch files (especially large ones) include the URL to the patch in
51 the SRC_URI string so that it will be downloaded with the source tarball
52 and stored in ${DISTDIR}, i.e. /usr/portage/distfiles by default. See
53 the dev-lang/python ebuild for a good example (In fact the python ebuild
54 is a good example for a variety ebuild techniques for uncommon
55 situations)
56
57 If the patch files are small (working definition of small not much
58 larger than the ebuild itself), placing them in the files directory is
59 ok, but the former method is prefereable.
60
61 Contributions are always welcome and appreciated.
62
63 Hope that helps,
64
65 tod

Replies

Subject Author
Re: [gentoo-dev] ebuild policy questions. Terje Kvernes <terjekv@××××××××.no>