From nobody@FreeBSD.org  Thu Feb 13 13:23:17 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 92A234C6
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Feb 2014 13:23:17 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 7F4641334
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Feb 2014 13:23:17 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1DDNGOa096526
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Feb 2014 13:23:16 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1DDNGnt096514;
	Thu, 13 Feb 2014 13:23:16 GMT
	(envelope-from nobody)
Message-Id: <201402131323.s1DDNGnt096514@cgiserv.freebsd.org>
Date: Thu, 13 Feb 2014 13:23:16 GMT
From: Marc Peters <marc@mpeters.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nanobsd.sh still uses pkg_add
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186723
>Category:       misc
>Synopsis:       [nanobsd] nanobsd.sh still uses pkg_add
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    imp
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 13 13:30:02 UTC 2014
>Closed-Date:    
>Last-Modified:  Thu Mar 13 23:01:11 MDT 2014
>Originator:     Marc Peters
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
FreeBSD host.name 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The nanobsd script still relies on the old pkg tools, which are nonexistent in 10.0.

/usr/src/tools/tools/nanobsd/nsdnobsd.sh:

709                 # Record how many we have now
710                 have=`ls ${NANO_WORLDDIR}/var/db/pkg | wc -l`
711 
712                 # Attempt to install more packages
713                 # ...but no more than 200 at a time due to pkg_add's internal
714                 # limitations.
715                 chroot ${NANO_WORLDDIR} sh -c \
716                         'ls Pkg/*tbz | xargs -n 200 pkg_add -F' || true
717 
718                 # See what that got us
719                 now=`ls ${NANO_WORLDDIR}/var/db/pkg | wc -l`
720                 echo "=== NOW $now"
721                 ls ${NANO_WORLDDIR}/var/db/pkg
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: imp 
Responsible-Changed-When: Thu Mar 13 23:00:48 MDT 2014 
Responsible-Changed-Why:  
I'll cope. 

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