From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 23 01:40:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.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 675C6BC6 for ; Fri, 23 Aug 2013 01:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 465F8243D for ; Fri, 23 Aug 2013 01:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7N1e2mS010170 for ; Fri, 23 Aug 2013 01:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7N1e23L010169; Fri, 23 Aug 2013 01:40:02 GMT (envelope-from gnats) Resent-Date: Fri, 23 Aug 2013 01:40:02 GMT Resent-Message-Id: <201308230140.r7N1e23L010169@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Adam McDougall 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 ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/181475: WITHOUT_PKGTOOLS=yes doesn't build pkg but make delete-old doesn't delete it X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 01:40:02 -0000 >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: freebsd-bugs >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: >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: >Unformatted: