Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2002 20:30:04 -0500 (EST)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        jkh@winston.freebsd.org
Cc:        obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/sysinstall install.c installUpgrade.c media.c package.c 
Message-ID:  <200204020130.g321U4FX074483@aldan.algebra.com>
In-Reply-To: <23280.1017708947@winston.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204020130.g321U4FX074483>