From nobody@FreeBSD.org  Wed Oct 30 15:54:08 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 9704E7FC
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Oct 2013 15:54:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 6CAFE2C72
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Oct 2013 15:54:08 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9UFs8Qp019780
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Oct 2013 15:54:08 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9UFs8cH019777;
	Wed, 30 Oct 2013 15:54:08 GMT
	(envelope-from nobody)
Message-Id: <201310301554.r9UFs8cH019777@oldred.freebsd.org>
Date: Wed, 30 Oct 2013 15:54:08 GMT
From: Mark Felder <feld@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 10.0-BETA2: docsinstall calls pkg_add
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183488
>Category:       misc
>Synopsis:       10.0-BETA2: docsinstall calls pkg_add
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gjb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 30 16:00:02 UTC 2013
>Closed-Date:    Sat Nov 09 01:00:10 UTC 2013
>Last-Modified:  Sat Nov  9 01:10:00 UTC 2013
>Originator:     Mark Felder
>Release:        
>Organization:
>Environment:
>Description:
On FreeBSD 10-BETA2 run bsdconfig, choose 2 Documentation and Installation, pick a lang or choose OK.


Could not install package
en-freebsd-doc
(/usr/libexec/bsdinstall/docsinstall:
pkg_add: not found)
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/183488: commit references a PR
Date: Wed,  6 Nov 2013 15:49:39 +0000 (UTC)

 Author: gjb
 Date: Wed Nov  6 15:49:31 2013
 New Revision: 257749
 URL: http://svnweb.freebsd.org/changeset/base/257749
 
 Log:
   Switch to using pkg(8) for the doc install in bsdinstall(8).
   This also bootstraps the system with pkg(8) for future use.
   
   PR:		183488
   Submitted by:	Joe Ennis
   MFC after:	3 days
   Sponsored by:	The FreeBSD Foundation
 
 Modified:
   head/usr.sbin/bsdinstall/scripts/docsinstall
 
 Modified: head/usr.sbin/bsdinstall/scripts/docsinstall
 ==============================================================================
 --- head/usr.sbin/bsdinstall/scripts/docsinstall	Wed Nov  6 15:32:37 2013	(r257748)
 +++ head/usr.sbin/bsdinstall/scripts/docsinstall	Wed Nov  6 15:49:31 2013	(r257749)
 @@ -59,7 +59,7 @@ NB: This requires a working, configured 
  test $? -eq 0 || exit 0
  exec 3>&-
  
 -# Let pkg_add be able to use name servers
 +# Let pkg(8) be able to use name servers
  cp ${BSDINSTALL_TMPETC}/resolv.conf ${BSDINSTALL_CHROOT}/etc
  
  error() {
 @@ -74,6 +74,13 @@ echo "FreeBSD Installer"
  echo "========================"
  echo
  
 +echo "Please wait while the repository metadata is fetched."
 +echo "This may take a few moments."
 +
 +env ASSUME_ALWAYS_YES=1 pkg -c ${BSDINSTALL_CHROOT} install pkg \
 +	|| error pkg
 +
  for i in $DOCS; do
 -    pkg_add -C ${BSDINSTALL_CHROOT} -r ${i}-freebsd-doc || error $i-freebsd-doc
 +    env ASSUME_ALWAYS_YES=1 pkg -c ${BSDINSTALL_CHROOT} install ${i}-freebsd-doc \
 +	|| error $i-freebsd-doc
  done
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: gjb 
State-Changed-When: Wed Nov 6 15:50:05 UTC 2013 
State-Changed-Why:  
Patched in r257749, pending MFC. 



Responsible-Changed-From-To: freebsd-bugs->gjb 
Responsible-Changed-By: gjb 
Responsible-Changed-When: Wed Nov 6 15:50:05 UTC 2013 
Responsible-Changed-Why:  
MFC reminder. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=183488 
State-Changed-From-To: patched->closed 
State-Changed-By: gjb 
State-Changed-When: Sat Nov 9 00:59:51 UTC 2013 
State-Changed-Why:  
Merged to stable/10 as r257875. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=183488 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/183488: commit references a PR
Date: Sat,  9 Nov 2013 00:59:44 +0000 (UTC)

 Author: gjb
 Date: Sat Nov  9 00:59:31 2013
 New Revision: 257875
 URL: http://svnweb.freebsd.org/changeset/base/257875
 
 Log:
   MFC r257749:
     Switch to using pkg(8) for the doc install in bsdinstall(8).
     This also bootstraps the system with pkg(8) for future use.
   
   Approved by:	re (delphij)
   PR:		183488
   Sponsored by:	The FreeBSD Foundation
 
 Modified:
   stable/10/usr.sbin/bsdinstall/scripts/docsinstall
 Directory Properties:
   stable/10/usr.sbin/bsdinstall/   (props changed)
 
 Modified: stable/10/usr.sbin/bsdinstall/scripts/docsinstall
 ==============================================================================
 --- stable/10/usr.sbin/bsdinstall/scripts/docsinstall	Sat Nov  9 00:36:09 2013	(r257874)
 +++ stable/10/usr.sbin/bsdinstall/scripts/docsinstall	Sat Nov  9 00:59:31 2013	(r257875)
 @@ -59,7 +59,7 @@ NB: This requires a working, configured 
  test $? -eq 0 || exit 0
  exec 3>&-
  
 -# Let pkg_add be able to use name servers
 +# Let pkg(8) be able to use name servers
  cp ${BSDINSTALL_TMPETC}/resolv.conf ${BSDINSTALL_CHROOT}/etc
  
  error() {
 @@ -74,6 +74,13 @@ echo "FreeBSD Installer"
  echo "========================"
  echo
  
 +echo "Please wait while the repository metadata is fetched."
 +echo "This may take a few moments."
 +
 +env ASSUME_ALWAYS_YES=1 pkg -c ${BSDINSTALL_CHROOT} install pkg \
 +	|| error pkg
 +
  for i in $DOCS; do
 -    pkg_add -C ${BSDINSTALL_CHROOT} -r ${i}-freebsd-doc || error $i-freebsd-doc
 +    env ASSUME_ALWAYS_YES=1 pkg -c ${BSDINSTALL_CHROOT} install ${i}-freebsd-doc \
 +	|| error $i-freebsd-doc
  done
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
