Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 18:45:38 -0500
From:      Mark Fullmer <maf@splintered.net>
To:        Murray Stokely <murray@FreeBSD.org>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/36606: Adding packages with sysinstall failes after
Message-ID:  <20020402234537.GA91865@splintered.net>
In-Reply-To: <20020402125331.GC27913@freebsdmall.com>
References:  <200204021229.g32CTwp79296@freefall.freebsd.org> <20020402125331.GC27913@freebsdmall.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This fixed it, thanks.

On Tue, Apr 02, 2002 at 04:53:31AM -0800, Murray Stokely wrote:
>   Attached is a patch against -STABLE.  Can you please confirm that
> this solves the problems you are experiencing?  The has already been
> applied to -CURRENT.
> 
> Index: perform.c
> ===================================================================
> RCS file: /a/ncvs/src/usr.sbin/pkg_install/add/perform.c,v
> retrieving revision 1.57.2.8
> diff -u -r1.57.2.8 perform.c
> --- perform.c	23 Oct 2001 09:16:03 -0000	1.57.2.8
> +++ perform.c	2 Apr 2002 11:51:13 -0000
> @@ -189,7 +189,7 @@
>  	     * compress an average of 75%, so multiply by 4 for good measure.
>  	     */
>  
> -	    if (!inPlace && min_free(playpen) < sb.st_size * 4) {
> +	    if (!extract && !inPlace && min_free(playpen) < sb.st_size * 4) {
>  		warnx("projected size of %qd exceeds available free space.\n"
>  "Please set your PKG_TMPDIR variable to point to a location with more\n"
>  		       "free space and try again", (long long)sb.st_size * 4);
> @@ -202,8 +202,9 @@
>  	    if (inPlace && Fake)
>  		goto success;
>  
> -	    /* Finally unpack the whole mess */
> -	    if (unpack(pkg_fullname, NULL)) {
> +	    /* Finally unpack the whole mess.  If extract is null we
> +	       already + did so so don't bother doing it again. */
> +	    if (extract && unpack(pkg_fullname, NULL)) {
>  		warnx("unable to extract `%s'!", pkg_fullname);
>  		goto bomb;
>  	    }
> 
> 
> 
> 
> On Tue, Apr 02, 2002 at 04:29:58AM -0800, murray@FreeBSD.org wrote:
> > Synopsis: Adding packages with sysinstall failes after
> > 
> > State-Changed-From-To: open->analyzed
> > State-Changed-By: murray
> > State-Changed-When: Tue Apr 2 04:29:24 PST 2002
> > State-Changed-Why: 
> > David O'Brien and I spent time analyzing this.  I have a fix that I
> > will commit to -CURRENT momentarily.
> > 
> > 
> > 
> > Responsible-Changed-From-To: freebsd-bugs->murray
> > Responsible-Changed-By: murray
> > Responsible-Changed-When: Tue Apr 2 04:29:24 PST 2002
> > Responsible-Changed-Why: 
> > David O'Brien and I spent time analyzing this.  I have a fix that I
> > will commit to -CURRENT momentarily.
> > 
> > 
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=36606
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-bugs" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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