From nobody@FreeBSD.org  Tue Nov 10 01:17:03 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3E6FA106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Nov 2009 01:17:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 2CC388FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Nov 2009 01:17:03 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nAA1H2Bq080311
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Nov 2009 01:17:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nAA1H2NA080309;
	Tue, 10 Nov 2009 01:17:02 GMT
	(envelope-from nobody)
Message-Id: <200911100117.nAA1H2NA080309@www.freebsd.org>
Date: Tue, 10 Nov 2009 01:17:02 GMT
From: Bruce Griffiths <bruce.griffiths@xtra.co.nz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg-add process fails when there is no /usr/src/tools/tools/nanobsd/Pkg directory
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         140436
>Category:       misc
>Synopsis:       [nanobsd] pkg-add process fails when there is no /usr/src/tools/tools/nanobsd/Pkg directory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 10 01:20:01 UTC 2009
>Closed-Date:    Thu Mar 13 22:18:50 MDT 2014
>Last-Modified:  Thu Mar 13 22:18:50 MDT 2014
>Originator:     Bruce Griffiths
>Release:        7.2
>Organization:
>Environment:
7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct 2 12:21:39 UTC 2009 roote@i386-builder.daemononlogy.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
nanobsd.sh fails when the /usr/src/tools/tools/nanobsd/Pkg directory doesnt exist.
Creating this directory fixes the problem. Since I no packages are required by a stratum 1 NTP server this directory didnt exist.
>How-To-Repeat:
build nanobsd with /usr/src/tools/tools/nanobsd/Pkg missing.
>Fix:
Script should check for existence of the Pkg subdirectory and if it doesnt exist don't attempt to add packages.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: imp 
State-Changed-When: Fri May 13 13:40:12 MDT 2011 
State-Changed-Why:  
Fixed... 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/140436: commit references a PR
Date: Fri, 13 May 2011 19:40:16 +0000 (UTC)

 Author: imp
 Date: Fri May 13 19:40:02 2011
 New Revision: 221856
 URL: http://svn.freebsd.org/changeset/base/221856
 
 Log:
   If there's no package directory, don't try to install packages from
   it.  Instead, report that 0 packages are reported.
   
   PR:		misc/140436
 
 Modified:
   head/tools/tools/nanobsd/nanobsd.sh
 
 Modified: head/tools/tools/nanobsd/nanobsd.sh
 ==============================================================================
 --- head/tools/tools/nanobsd/nanobsd.sh	Fri May 13 19:35:01 2011	(r221855)
 +++ head/tools/tools/nanobsd/nanobsd.sh	Fri May 13 19:40:02 2011	(r221856)
 @@ -684,6 +684,12 @@ cust_install_files () (
  
  cust_pkg () (
  
 +	# If the package directory doesn't exist, we're done.
 +	if [ ! -d ${NANO_PACKAGE_DIR} ]; then
 +		echo "DONE 0 packages"
 +		return 0
 +	fi
 +
  	# Copy packages into chroot
  	mkdir -p ${NANO_WORLDDIR}/Pkg
  	(
 _______________________________________________
 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"
 
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jun 5 05:43:26 UTC 2011 
Responsible-Changed-Why:  
Over to committer as MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140436 
State-Changed-From-To: patched->closed 
State-Changed-By: imp 
State-Changed-When: Thu Mar 13 22:18:34 MDT 2014 
State-Changed-Why:  
This is in 9 and 10, so	can be closed. 


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