On Sunday 22 March 2009, Nirbheek Chauhan wrote: > On Sun, Mar 22, 2009 at 2:58 AM, Alec Warner <anta...@gentoo.org> wrote: > > I think you will encounter namespace collisions, thats why I CC'd > > zac as he maintains mirror-dist ;p > > Why the hell didn't we think of this before!? :o > > The mirror-dist script *cannot* rename the upstream files for > storage, since emerge will be looking for the *original* filename on > the gentoo mirror. And if we keep them the same, we'll have > collisions on the mirror, which is more probable (and severe) than a > collision on a user's local DISTDIR. > > The easiest solution I can think of is for emerge to give special > consideration to the mirrors in GENTOO_MIRRORS, and look for the > renamed file there instead of the original ones.
No reason to panic. :-) This is what Portage already does and what is specified in EAPI=2. Refer to the paragraph quoted by Ciaran earlier in this thread. Do we have a reason to believe our mirror scripts do not already handle this correctly? Because to me it seems they do. $ ebuild bashburn-3.0.ebuild unpack Downloading 'http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/distfiles/BashBurn-3.0.tar.gz' --2009-03-22 15:48:57-- http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/distfiles/BashBurn-3.0.tar.gz Resolving ftp.spline.inf.fu-berlin.de... 130.133.110.66 Connecting to ftp.spline.inf.fu-berlin.de|130.133.110.66|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 84435 (82K) [application/octet-stream] Saving to: `/usr/portage/distfiles/BashBurn-3.0.tar.gz' ... $ G ENTOO_MIRRORS="" ebuild bashburn-3.0.ebuild unpack Downloading 'http://bashburn.dose.se/index.php?s=file_download&id=3' --2009-03-22 15:49:12-- http://bashburn.dose.se/index.php?s=file_download&id=3 Resolving bashburn.dose.se... 90.227.105.216 Connecting to bashburn.dose.se|90.227.105.216|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/octet-stream] Saving to: `/usr/portage/distfiles/BashBurn-3.0.tar.gz' .... Robert
signature.asc
Description: This is a digitally signed message part.