Gentoo Archives: gentoo-dev

From: Dan Armak <danarmak@g.o>
To: gentoo-dev@g.o, gentoo-core@g.o
Subject: [gentoo-dev] New cvs.eclass
Date: Fri, 18 Apr 2003 14:12:09
Message-Id: 200304181411.49407.danarmak@gentoo.org
1 Hello everyone,
2
3 I've rewritten cvs.eclass. I'll test all cvs euilds once again now and then
4 commit the new eclass and ebuilds if noone objects. Extra testing from anyone
5 else welcome.
6
7 Attached are the new eclass, and kde-source.eclass which had to be slightly
8 modified to match. A new kde-cvs tarball that works with the new
9 cvs.eclass is at http://cvs.gentoo.org/~danarmak/kde-cvs-20030418.tar.gz.
10
11 Changes to the eclass:
12 - General fixes for many cases, even if noone seemed to be having problems
13 except for me. This didn't start out as a cleanup...
14
15 - It is now much smaller and cleaner and easy to read and understand.
16
17 - No longer uses the pexpect package with inline python to log in.
18
19 - Explicitly deprecates ext auth support. This was claimed to be supported
20 before, but never actually worked. There is no ebuild in portage that uses
21 ext instead of pserver; if you have one and want ext auh to work, lpease send
22 me your ebuild to test against.
23
24 - Transfers some logic from the eclass code to cvs itself. Therefore virtual
25 cvs modules are now transparently supported (in at least some cases), this
26 enables the php-cvs ebuild to work (soon to be submitted on bugzilla by
27 coredumb).
28
29 Changes people writing cvs ebuilds want to know about:
30
31 - ECVS_RUNAS, running everything under su to a specified user, does not work.
32 I am not sure how well it worked before. In any case it is impossible to do
33 in portage's userpriv mode AFAIK, unless the administrator gave the portage
34 user the right to su or sudo to that user without benig prompted for a
35 password. I may implement this again before committing, mostly for
36 non-userpriv mode (especially if people ask me to ;-).
37
38 - ECVS_ANON is deprecated. From the cvs POV there is always a password, even
39 if it's empty. So if you want the previous "anonymous login" behaviour, just
40 leave things alone and the default values of ECVS_USER="anonymous",
41 ECVS_PASS="" should work.
42
43 - ECVS_SUBDIR is deprecated. Instead you can now specify subdirectories like
44 this: ECVS_MODULE="dir/dir/dir..."
45
46 - ECVS_AUTH=ext is deprecated and will make the eclass die.
47
48 - ECVS_CVS_OPTIONS doesn't exist anymore since update and checkout give
49 different meaning to the same parameters, such as -P. So now there are
50 separate ECVS_UP_OPTS, ECVS_CO_OPTS vars for update and checkout parameters
51 respectively. (Because I moved some logic to cvs as said above, I now do real
52 cvs checkout when needed, not just a fake cvs update.)
53
54 These ebuilds set the deprecated variables ECVS_ANON and/or ECVS_CVS_OPTIONS,
55 these settings can be safely removed (I went over the ebuilds and it should
56 be OK): app-editors/emacs-cvs, dev-perl/Common, dev-python/twisted-cvs,
57 net-www/galeon-cvs, sys-libs/ldetect-lst, sys-libs/ldetect.
58
59 --
60 Dan Armak
61 Gentoo Linux developer (KDE)
62 Matan, Israel
63 Public GPG key: http://cvs.gentoo.org/~danarmak/danarmak-gpg-public.key

Attachments

File name MIME type
cvs.eclass text/plain
kde-source.eclass text/x-diff

Replies

Subject Author
[gentoo-dev] Re: [gentoo-core] New cvs.eclass Dan Armak <danarmak@g.o>
Re: [gentoo-dev] New cvs.eclass Dan Armak <danarmak@g.o>
Re: [gentoo-dev] New cvs.eclass Alexander Futasz <acid.punk@×××.net>