Gentoo Archives: gentoo-dev

From: "Kurt V. Hindenburg" <khindenburg@××××××××××××.net>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Multiple DISTDIRS works...
Date: Tue, 03 Jun 2003 18:36:08
Message-Id: 200306031321.54084.khindenburg@cherrynebula.net
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 "Its alive, its alive, I tell you!"
5
6 Finally got my hacking of portage.py and ebuild.sh done. I added a
7 new variable to /etc/make.conf DISTDIRS which contains directories to
8 look for distfiles in. This allows people to burn their distfiles on
9 a CD.
10
11 /etc/make.conf sample (I have 2 cdroms):
12 DISTDIRS="/mnt/cdrw /mnt/cdr"
13
14 % diff ebuild.sh ebuild.sh-2.0.48 | wc -l
15 64
16 % diff portage.py portage.py-2.0.48 | wc -l
17 186
18
19 A lot of the portage.py diff is having to move stuff around...create
20 new routines to make it easier...
21
22 Anyway, it works for simple stuff:
23 1. -f and -fp
24 2. Installing when files are in different directories.
25
26 Problems are when DISTDIR is hard-coded into the ebuild such with
27 mutt-1.4.1-r1.ebuild
28
29 patch -d ${S} -p1 < ${DISTDIR}/patch-1.4.0.cd.edit_threads.9.5 || die
30
31 Oh well, back to hacking...at least now I can emerge stuff again.
32
33 - --
34
35 Kurt
36 - ---
37 There is no good and evil; there is only power.
38 -----BEGIN PGP SIGNATURE-----
39 Version: GnuPG v1.2.2 (GNU/Linux)
40
41 iD8DBQE+3OdB0cAvx3ELfKARAq5bAJ9GPCX6E3+XWmuILxEknpirltY21ACdEsL1
42 ALdG72DfkLhM7loPOJfy6s4=
43 =81z8
44 -----END PGP SIGNATURE-----
45
46
47 --
48 gentoo-dev@g.o mailing list