From owner-freebsd-ports Mon Feb 14 17:45:51 2000 Delivered-To: freebsd-ports@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by builder.freebsd.org (Postfix) with ESMTP id EF5433DFC; Mon, 14 Feb 2000 17:45:40 -0800 (PST) Received: from slave (slave [10.0.0.1]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id RAA02668; Mon, 14 Feb 2000 17:46:00 -0800 (PST) (envelope-from Doug@gorean.org) Date: Mon, 14 Feb 2000 17:45:57 -0800 (PST) From: Doug Barton X-Sender: doug@dt051n0b.san.rr.com To: Satoshi - Ports Wraith - Asami Cc: Will Andrews , FreeBSD Ports Subject: Re: multi-level categories In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 14 Feb 2000, Satoshi - Ports Wraith - Asami wrote: > Hi, > > Sorry for not responding to this for a while.... > > Anyway, here are some stats from today's ports tree. No distfiles, > packages or work directories of course. [stats snipped] > The difference between 2 and 3 should be block fragmentation. > (Filesystem and tar format experts, is that correct?) If that is > true, having a lot of small files isn't hurting *that* much in terms > of total space required. On average you waste 1/2 of a block for every file on the system. You can calculate space savings by multiplying Num files deleted * (blocksize / 2) = savings When you are talking about such a large number of ports, the more files/directories we can delte the better. Savings multiply again when you start discussing scalability... > And here's my proposal, slightly revised. > > editors/emacs/Makefile > .../checksum (<- files/md5) > .../files/emacs.sh > .../patches/patch-aa > .../patches/patch-ab > .../patches/patch-ac > .../patches/patch-ad > .../pkgCOMMENT \ > .../pkgDESCR \ these stuff moved > .../pkgPLIST / from ${PKGDIR} > .../pkgREQ / > .../scripts/pre-configure > > Basically it amounts to moving everything in pkg/ out to the main dir > by appending the prefix "pkg" in the filenames instead, Why would we need the pkg prefix? The filenames are discrete, and not prone to confusion. > and moving > "files/md5" to "checksum" in the main directory. > Of the 11,257 directories (5), this will get rid of 3,081 pkg/ dirs > (6) and 2,325 files/ dirs (8) for a revised total of 5,851, or a 48% > reduction in directory count. The reduction of 5,406 directories also > means 5,406 CVS directories and 16,218 CVS files (3 files per dir) > will disappear, so there will be 40,820 files in the checked out ports > tree for a 28% reduction. > > In total, the number of files and directories, which is at 79552 ((5) > x 2 + (b)) currently will be reduced by 21,624 (5,406 + 16,218), or a > 27% reduction in inode count. > > I don't want to move patches out to the main directory, some ports > have an enormous number of patches and the toplevel will look too > cluttered. Agreed. > I am ambivalent about moving patches into files. Since > most files/ directories will be gone with md5 moving out anyway (there > will only be 509 files/ dirs after md5 moves out), there aren't much > savings to be made there. Also, there are some ports that put "extra" > patches in files/ for special treatment, which could create some > confusion. I also agree that "patches" should be its own directory, in part for the reasons you mention here. > I'd like to keep scripts/ as it is. It is perfectly legal to put a > file called "configure" in files/ now, and it will violate POLA to > change the meaning. Also, only less than 10% of ports have scripts/ > dirs anyway. Hrrmm..... I can't help thinking that we are leaving too many exceptions behind, especially when you're talking about so few exceptions. It's directories that give us the really big space savings, and the more of them we can reduce the better. How many ports currently use the scripts directory for a purpose that couldn't be folded into one directory for "extra" things called files? My final comment is that we would be wise to look at what open/netBSD are doing in this area before making any final decisions. I know that there are some who are already working on porting some of their cool stuff to FreeBSD, so it would be foolish to introduce gratuitous differences if they don't gain us much. Doug -- "Welcome to the desert of the real." - Laurence Fishburne as Morpheus, "The Matrix" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message