From owner-cvs-all Mon Apr 1 17:30:32 2002 Delivered-To: cvs-all@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id B96BB37B423; Mon, 1 Apr 2002 17:30:21 -0800 (PST) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.12.2/8.12.2) with ESMTP id g321U4FX074483; Mon, 1 Apr 2002 20:30:09 -0500 (EST) (envelope-from mi@aldan.algebra.com) Message-Id: <200204020130.g321U4FX074483@aldan.algebra.com> Date: Mon, 1 Apr 2002 20:30:04 -0500 (EST) From: Mikhail Teterin Subject: Re: cvs commit: src/usr.sbin/sysinstall install.c installUpgrade.c media.c package.c To: jkh@winston.freebsd.org Cc: obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-Reply-To: <23280.1017708947@winston.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 1 Apr, Jordan Hubbard wrote: >> Why can't the packages be extracted "in place" by the sysinstall? > > Because that's just not the way it works. If you wanted to do that, > you'd need to invert the logic of pkg_add to extract in place and then > clean up the non-essentials, rather than extracting in a temporary > directory, moving only the essentials into place, and then deleting > the temp dir. I just wonder how, then, the ``@option extract-in-place'' is implemented and why is it not used by default... > You certainly shouldn't let us stop you from doing that, of course, > and I'm sure someone will be happy to review your diffs. :) I'm not so certain of that, as a matter of fact. My last attempt to enhance pkg-code is still waiting (after two months) in the bin/34628: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/34628 >> Failing that, why can't the temporary directory be under the PREFIX, >> to make the installations faster and less disk-space consuming? >Same deal as above, with the added complication of not knowing the >PREFIX up-front. It is certainly possible to extract only the controlling (+CONTENTS?) file(s) to read the PREFIX and extract the rest under it. We don't have to provide for non-seekable package files, do we? But even without that, something under the /usr/local or /usr/X11R6 is a better guess than /usr/tmp or /var/tmp... -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message