Gentoo Archives: gentoo-dev

From: Robert Buchholz <rbu@g.o>
To: gentoo-dev@l.g.o
Cc: Nirbheek Chauhan <nirbheek@g.o>
Subject: Re: [gentoo-dev] perforce client proper license
Date: Sun, 22 Mar 2009 14:53:35
Message-Id: 200903221553.29576.rbu@gentoo.org
In Reply to: Re: [gentoo-dev] perforce client proper license by Nirbheek Chauhan
1 On Sunday 22 March 2009, Nirbheek Chauhan wrote:
2 > On Sun, Mar 22, 2009 at 2:58 AM, Alec Warner <antarus@g.o>
3 wrote:
4 > > I think you will encounter namespace collisions, thats why I CC'd
5 > > zac as he maintains mirror-dist ;p
6 >
7 > Why the hell didn't we think of this before!? :o
8 >
9 > The mirror-dist script *cannot* rename the upstream files for
10 > storage, since emerge will be looking for the *original* filename on
11 > the gentoo mirror. And if we keep them the same, we'll have
12 > collisions on the mirror, which is more probable (and severe) than a
13 > collision on a user's local DISTDIR.
14 >
15 > The easiest solution I can think of is for emerge to give special
16 > consideration to the mirrors in GENTOO_MIRRORS, and look for the
17 > renamed file there instead of the original ones.
18
19 No reason to panic. :-)
20 This is what Portage already does and what is specified in EAPI=2.
21 Refer to the paragraph quoted by Ciaran earlier in this thread.
22
23 Do we have a reason to believe our mirror scripts do not already handle
24 this correctly? Because to me it seems they do.
25
26 $ ebuild bashburn-3.0.ebuild unpack
27 Downloading 'http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/distfiles/BashBurn-3.0.tar.gz'
28 --2009-03-22 15:48:57--
29 http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/distfiles/BashBurn-3.0.tar.gz
30 Resolving ftp.spline.inf.fu-berlin.de... 130.133.110.66
31 Connecting to ftp.spline.inf.fu-berlin.de|130.133.110.66|:80...
32 connected.
33 HTTP request sent, awaiting response... 200 OK
34 Length: 84435 (82K) [application/octet-stream]
35 Saving to: `/usr/portage/distfiles/BashBurn-3.0.tar.gz'
36 ...
37
38 $ G
39 ENTOO_MIRRORS="" ebuild bashburn-3.0.ebuild unpack
40 Downloading 'http://bashburn.dose.se/index.php?s=file_download&id=3'
41 --2009-03-22 15:49:12--
42 http://bashburn.dose.se/index.php?s=file_download&id=3
43 Resolving bashburn.dose.se... 90.227.105.216
44 Connecting to bashburn.dose.se|90.227.105.216|:80... connected.
45 HTTP request sent, awaiting response... 200 OK
46 Length: unspecified [application/octet-stream]
47 Saving to: `/usr/portage/distfiles/BashBurn-3.0.tar.gz'
48 ....
49
50 Robert

Attachments

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