Gentoo Archives: gentoo-dev

From: Alec Warner <antarus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Change layout of distfiles
Date: Mon, 06 Mar 2006 13:02:48
Message-Id: 440C3222.9070009@gentoo.org
In Reply to: [gentoo-dev] Change layout of distfiles by Michael Renner
1 Michael Renner wrote:
2 > Hi,
3 >
4 > as suggested by Mike in http://bugs.gentoo.org/show_bug.cgi?id=123335,
5 > here's my proposal for changing the layout of the distfiles tree:
6
7 > Introducing an additional directory hierarchy should fix this, and is
8 > the common solution for this problem for various projects, be it debian
9 > [1], cpan [2], slackware [3], etc.
10 >
11 >
12 > One migration scenario for a better future:
13 >
14 > Create subdirectories named after the first letter of each file and move
15 > the files in their respective directories.
16 >
17 > Either sym- or hardlink the files from the current distfiles
18 > root-directory to the specific directory where they reside in. (Check
19 > with the mirror admins first (depending on the chosen linktype) if rsync
20 > hardlink support is enabled or their web/ftp servers allow/follow symlinks)
21 >
22 > Adapt the build scripts so that they look for the files in their new
23 > location.
24 >
25 > Change the scripts which fetch the files for distfiles so that they save
26 > them under the new location.
27 >
28 > Wait a few weeks... (months? years? decades?) until the last user has
29 > updated and/or a clean upgrade-path exists, which doesn't rely on the
30 > old file locations.
31 >
32 > Drop the sym/hardlinks.
33 >
34
35 Is this plan for server side only distfiles, or do you want
36 /usr/portage/distfiles/{a-z}/ on the local system as well. If that is
37 the case the answer is probably no. We've been asked in the past to
38 implement a DISTFILES_PREFIX type system which would work in a similar
39 manner, and it really only complicates things. Is there any needed
40 performance benefit out of the current scheme? Can you give some
41 numbers as to how much this will help the average user?
42
43 I believe the Infrastructure team also doesn't want to change the
44 layout, but I'll leave it up to them to comment on their own policy ;)
45
46 > best regards,
47 > Michael Renner - admin of gentoo.inode.at/rsync1.at.gentoo.org
48 >
49 > [1] http://debian.inode.at/debian/pool/main/
50 > [2] http://www.slackware.at/data/slackware/slackware/
51 > [3] http://cpan.inode.at/modules/by-authors/id/

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] Change layout of distfiles Kurt Lieber <klieber@g.o>
Re: [gentoo-dev] Change layout of distfiles Michael Renner <robe@××××××.at>