From loader@freebsdmall.com  Tue Nov 21 19:46:33 2006
Return-Path: <loader@freebsdmall.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2B25316A4FD
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Nov 2006 19:46:33 +0000 (UTC)
	(envelope-from loader@freebsdmall.com)
Received: from mail.freebsdmall.com (69.50.233.168.ip.nectartech.com [69.50.233.168])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C0D3043D5D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Nov 2006 19:45:57 +0000 (GMT)
	(envelope-from loader@freebsdmall.com)
Received: by mail.freebsdmall.com (Postfix, from userid 2136)
	id CE1761D6F25F; Tue, 21 Nov 2006 11:46:20 -0800 (PST)
Message-Id: <20061121194620.CE1761D6F25F@mail.freebsdmall.com>
Date: Tue, 21 Nov 2006 11:46:20 -0800 (PST)
From: loader@freebsdmall.com
Reply-To: loader@freebsdmall.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [sysinstall]Install packages failure after switching discs several times
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         105723
>Category:       bin
>Synopsis:       [sysinstall]Install packages failure after switching discs several times
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 21 19:50:15 GMT 2006
>Closed-Date:    Wed Nov 22 14:50:42 GMT 2006
>Last-Modified:  Wed Nov 22 14:50:42 GMT 2006
>Originator:     loader
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
freebsdmall
>Environment:
System: FreeBSD  6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:42:56 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys
/SMP  i386

>Description:
	
In index.c, it calls index_extract() for the depends of glib. Then,
finds perl is not installed, it asks to switch to disc1, after perl is
installed, the index_extract() of perl exists and return to execute the
original index_extract() of glib, at this time the disc volume has
already checked, but the disc has changed to disc1 in the CDROM, it
continue to execute the package_extract() part for glib, and unable to
find the glib package.

I think A quick fix for it is to put the volume checking part before 
the real install.

>How-To-Repeat:
sysinstall->Configure->Packages->CD/DVD->All->glib-2.8.6_1->Install->
This is disc #1. Package glib-2.8.6_1 is on disc #2
Would you like to switch discs now?

Yes->it installs gettext-0.14.5_2 and libiconv-1.9.2_2 , then says:

This is disc #2. Package Perl-5.8.8 is on disc #1
Would you like to switch discs now?

Yes->it installs perl-5.8.8 pkgconfig-0.20, and says:

Unable to fetch package glib-2.8.6_1 from selected media.
No package add will be done.
>Fix:

http://www.freebsdmall.com/~loader/sysinstall.diff

>Release-Note:
>Audit-Trail:

From: loader <loader@freebsdmall.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/105723: [sysinstall]Install packages failure after switching discs several times
Date: Tue, 21 Nov 2006 12:11:50 -0800 (PST)

 loader@freebsdmall.com wrote:
 
 >>Number:         105723
 >>Category:       bin
 >>Synopsis:       [sysinstall]Install packages failure after switching discs several times
 >>Confidential:   no
 >>Severity:       non-critical
 >>Priority:       low
 >>Responsible:    freebsd-bugs
 >>State:          open
 >>Quarter:        
 >>Keywords:       
 >>Date-Required:
 >>Class:          sw-bug
 >>Submitter-Id:   current-users
 >>Arrival-Date:   Tue Nov 21 19:50:15 GMT 2006
 >>Closed-Date:
 >>Last-Modified:
 >>Originator:     loader
 >>Release:        FreeBSD 6.1-RELEASE i386
 >>Organization:
 > freebsdmall
 >>Environment:
 > System: FreeBSD  6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:42:56 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys
 > /SMP  i386
 >
 >>Description:
 > 	
 > In index.c, it calls index_extract() for the depends of glib. Then,
 > finds perl is not installed, it asks to switch to disc1, after perl is
 > installed, the index_extract() of perl exists and return to execute the
 > original index_extract() of glib, at this time the disc volume has
 > already checked, but the disc has changed to disc1 in the CDROM, it
 > continue to execute the package_extract() part for glib, and unable to
 > find the glib package.
 >
 > I think A quick fix for it is to put the volume checking part before 
 > the real install.
 >
 >>How-To-Repeat:
 
 Ooops, this problem occurs when install FreeBSD with "Minimal" or on
 a box with no packages installed.
 
 > sysinstall->Configure->Packages->CD/DVD->All->glib-2.8.6_1->Install->
 > This is disc #1. Package glib-2.8.6_1 is on disc #2
 > Would you like to switch discs now?
 >
 > Yes->it installs gettext-0.14.5_2 and libiconv-1.9.2_2 , then says:
 >
 > This is disc #2. Package Perl-5.8.8 is on disc #1
 > Would you like to switch discs now?
 >
 > Yes->it installs perl-5.8.8 pkgconfig-0.20, and says:
 >
 > Unable to fetch package glib-2.8.6_1 from selected media.
 > No package add will be done.
 >>Fix:
 >
 > http://www.freebsdmall.com/~loader/sysinstall.diff
 >
 >>Release-Note:
 >>Audit-Trail:
 >>Unformatted:
 > _______________________________________________
 > freebsd-bugs@freebsd.org mailing list
 > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
State-Changed-From-To: open->closed 
State-Changed-By: kensmith 
State-Changed-When: Wed Nov 22 14:48:45 UTC 2006 
State-Changed-Why:  
Thanks for the report. 

The problem was (hopefully) fixed with v1.108 of index.c on 2006/11/19. 
That fix was MFCed to RELENG_6 and RELENG_6_2 this morning. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=105723 
>Unformatted:
