From nobody@FreeBSD.org  Fri Aug 23 01:35:42 2013
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 ESMTP id 7C256B66
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Aug 2013 01:35:42 +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 69BA22420
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Aug 2013 01:35:42 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7N1Zfv2078332
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Aug 2013 01:35:41 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7N1ZfCa078328;
	Fri, 23 Aug 2013 01:35:41 GMT
	(envelope-from nobody)
Message-Id: <201308230135.r7N1ZfCa078328@oldred.freebsd.org>
Date: Fri, 23 Aug 2013 01:35:41 GMT
From: Adam McDougall <mcdouga9@egr.msu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: WITHOUT_PKGTOOLS=yes doesn't build pkg but make delete-old doesn't delete it
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181475
>Category:       bin
>Synopsis:       WITHOUT_PKGTOOLS=yes doesn't build pkg but make delete-old doesn't delete it
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bapt
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 23 01:40:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Oct 11 22:00:00 UTC 2013
>Originator:     Adam McDougall
>Release:        9.2-BETA1
>Organization:
>Environment:
FreeBSD hostname 9.2-BETA1 FreeBSD 9.2-BETA1 #0 r253631: Thu Jul 25 21:44:11 EDT 2013 root@hostname2:/usr/obj/usr/src/sys/AMD64-9  amd64
>Description:
After several mistaken runs of pkg_add while I was using pkgng, I decided it was time to purge
pkg_* from my systems.  I added WITHOUT_PKGTOOLS=yes to make.conf and 'make delete-old' in
/usr/src did what I wanted, deleted the old pkg_ tools without deleting /usr/sbin/pkg.  I added
WITHOUT_PKGTOOLS=yes to my build procedure for new systems but found out it doesn't compile or
install /usr/sbin/pkg.  This was inconvenient although I could fetch, manually extract, and run
pkg-static from a copy of pkg.tgz, but it would be nicer if /usr/sbin/pkg was still built,
possibly controlled by a different variable in make.conf for people that truly don't want it.  At
the very least, 'make delete-old' should delete /usr/sbin/pkg if buildworld isn't going to build
it, since it will get stale and possibly insecure if unmaintained.

>How-To-Repeat:
Add WITHOUT_PKGTOOLS=yes to make.conf to an existing system and run 'make delete-old' in
/usr/src, /usr/sbin/pkg remains.  But if you do a buildworld, pkg is not built or installed.

>Fix:
Preferred, remove SUBDIR+= pkg from .if ${MK_PKGTOOLS} != "no" in usr.sbin/Makefile.  Introduce a
new variable if desired.  Less preferred, but to be consistent, add /usr/sbin/pkg to
ObsoleteFiles.inc


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->bapt 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Aug 24 00:42:59 UTC 2013 
Responsible-Changed-Why:  
Even though this applies to src, assign to bapt to get his opinion. 

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

From: Adam McDougall <mcdouga9@egr.msu.edu>
To: bug-followup@FreeBSD.org, mcdouga9@egr.msu.edu
Cc:  
Subject: Re: bin/181475: WITHOUT_PKGTOOLS=yes doesn&#39;t build pkg but make
 delete-old doesn&#39;t delete it
Date: Fri, 11 Oct 2013 17:55:33 -0400

 I think just r237997 may be needing MFC:
 
 http://svnweb.freebsd.org/base?view=revision&revision=237997
 
 Thanks
>Unformatted:
