Gentoo Archives: gentoo-dev

From: Doug Klima <cardoe@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] subversion.eclass
Date: Wed, 20 Feb 2008 16:20:08
Message-Id: 47BC5333.2080302@gentoo.org
In Reply to: Re: [gentoo-dev] subversion.eclass by Doug Klima
1 Doug Klima wrote:
2 > Doug Klima wrote:
3 >> Doug Klima wrote:
4 >>> Bo Ørsted Andresen wrote:
5 >>>> For quite a while the KDE herd has had a modified version of
6 >>>> subversion.eclass in the kde overlay. During that time we have
7 >>>> added the following features to the eclass which we would like to
8 >>>> put back in gentoo-x86 soon. Since the changes are fairly extensive
9 >>>> we decided to send it to this list for review first.
10 >>>>
11 >>>> 1) ESVN_REVISION (before this people had to use ESVN_OPTIONS for
12 >>>> this purpose).
13 >>>> 2) ESVN_OFFLINE which disables svn up.
14 >>>> 3) ESVN_UP_FREQ which uses GNU find to determine if the specified
15 >>>> number of hours has passed and only do svn up if it has. This is
16 >>>> currently used in the kde4svn-meta eclass for split kde ebuilds
17 >>>> that use the same checkout of each module.
18 >>>> 4) ESCM_LOGDIR for logging which revisions packages get installed
19 >>>> with. See [1]. Users need to explicitly enable this feature to use it.
20 >>>>
21 >>>> Other than this the eclass has been documented for use with
22 >>>> eclass-manpages.
23 >>>>
24 >>>> [1] http://thread.gmane.org/gmane.linux.gentoo.devel/54233
25 >>>>
26 >>>>
27 >>> ok. Well zlin and I have been talking lately and we've hammered out
28 >>> his proposed changes and mine. I'm attaching a patch for the first
29 >>> set of changes I have proposed.
30 >>>
31 >>> Attached is a patch for the following:
32 >>> - use $ECLASS
33 >>> - adding rsync to deps
34 >>> - fixing some quoting
35 >>> - remove multiple subshell calls and problematic to upper usage (bug
36 >>> #s escape me right now)
37 >>> - provide some more information about the working copy that will be
38 >>> used in the future.
39 >>> - supporting svn switch
40 >>>
41 >>> The most important being the svn switch functionality.
42 >>>
43 >>> Please review for commit.
44 >> And the eclass-manpages documentation broken out into it's own patch.
45 >>
46 >> Please review for commit.
47 > Here's a patch that implements the ESVN_REVISION variable. It finally
48 > removes all the problematic to_upper usage. It builds off the previous
49 > patches that make the official way for an ebuild to pass the revision
50 > it wants via the ESVN_REPO_URI. It ewarn's if an ebuild tries to stick
51 > a revision into ESVN_OPTIONS. It prints out the revision that it's
52 > going to be pulling. This was the issue I had with zlin's original
53 > patch since it would break for the MythTV ebuilds since we request the
54 > revision in the ebuild.
55 Here's another patch in the series.
56
57 This patch will skip running svn update when it's unnecessary. Basically
58 if your local working copy is the same URI and same revision, it won't
59 run svn update which should speed up emerge times for those svn KDE
60 users that specify a revision they're looking to use. Also MythTV users
61 that re-emerge with different use flags.

Attachments

File name MIME type
subversion-skipunecessary-04.patch text/x-patch

Replies

Subject Author
Re: [gentoo-dev] subversion.eclass Doug Klima <cardoe@g.o>