From owner-freebsd-arch Fri Jul 12 0:20:13 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 579FE37B401; Fri, 12 Jul 2002 00:20:01 -0700 (PDT) Received: from softweyr.com (softweyr.com [65.88.244.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A3DC43E4A; Fri, 12 Jul 2002 00:20:00 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from nextgig-3.customer.nethere.net ([209.132.102.163] helo=softweyr.com) by softweyr.com with esmtp (Exim 3.35 #1) id 17Sui5-000Opp-00; Fri, 12 Jul 2002 01:19:25 -0600 Message-ID: <3D2E83F7.6EDA681C@softweyr.com> Date: Fri, 12 Jul 2002 00:23:35 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Mark Valentine Cc: Cy Schubert - CITS Open Systems Group , Dag-Erling Smorgrav , Doug Barton , Dan Moschuk , arch@freebsd.org Subject: Re: Package system flaws? References: <200207111741.g6BHffn8073047@dotar.thuvia.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Valentine wrote: > > > From: wes@softweyr.com (Wes Peters) > > Date: Thu 11 Jul, 2002 > > Subject: Re: Package system flaws? > > > The idea I like the best is to have the filesets (picture a .tar.gz > > or a .zip here) be external references on the fileserver; the XML > > contains all the metadata and URLs for the filesets. As you fetch > > the XML, or after you've fetched all of the XML, you fetch the > > filesets you're not skipping. Once you have the filesets on local > > storage, you can rewrite the URL references or convert them to > > in-line encoding, leaving the ones that have been skipped in the > > original URL encoding. > > This is equivalent to my proposal, except that I don't see much value > in converting to the in-line encoding, and my method specifies a directory > name (or any suitable simple archive name) containing a package.xml and > compressed file sets, whereas you presumably expect the XML file to be the > primary referenced object. Yes. You see, you could distribute and update the XML files via CVSup, the way we do with the ports bits now. > > For instance: > > > > > > > > > > > > > > > > > > My equivalent would be: > > > > > > > > > > or: > > name=cat > bin=bin.tar.gz > man=man.tar.gz > lang[en_US]=en_US.tar.gz > lang[en_UK]=en_UK.tar.gz > lang[fr_FR]=fr_FR.tar.gz > > according to taste. > > > Now assume you specified you want to install only the en_UK language > > files. pkg_add would leave the en_US and fr_FR as external references, > > download the binaries, man pages, and en_UK filesets, and convert those > > three into local file references OR directly encode them into the > > package file. > > Same except that I don't need the last step, though I could optionally > bundle up for archiving purposes. Not storing them in-line on the local system means you have to have a "standard" place to store the filesets, or tell the program where to put them (or where they already are) every time you run it. If you pick a standard location, somebody somewhere someday is going to run it out of space and bitch. Converting the files to inline on disk-like media (i.e. local hard drive, on a CD-ROM, etc) makes the packages much easier to copy around. But that is certainly an optional step. The default place to stick the filesets downloaded, IMHO, is the directory where the XML file is located. No surprises, easy to find a filesystem that has space available, etc. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message