From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Aug 27 21:40:00 2013 Return-Path: Delivered-To: freebsd-ports-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 E54DA863 for ; Tue, 27 Aug 2013 21:40:00 +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 AC7D32493 for ; Tue, 27 Aug 2013 21:40:00 +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 r7RLe0gA096802 for ; Tue, 27 Aug 2013 21:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7RLe0qZ096801; Tue, 27 Aug 2013 21:40:00 GMT (envelope-from gnats) Resent-Date: Tue, 27 Aug 2013 21:40:00 GMT Resent-Message-Id: <201308272140.r7RLe0qZ096801@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gary Aitken 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 EB0015CE for ; Tue, 27 Aug 2013 21:32:38 +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 D8A0A2420 for ; Tue, 27 Aug 2013 21:32:38 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7RLWcGT068789 for ; Tue, 27 Aug 2013 21:32:38 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7RLWcFA068788; Tue, 27 Aug 2013 21:32:38 GMT (envelope-from nobody) Message-Id: <201308272132.r7RLWcFA068788@oldred.freebsd.org> Date: Tue, 27 Aug 2013 21:32:38 GMT From: Gary Aitken To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181592: pkg2ng should check/add WITH_PKGNG=yes to /etc/make.conf X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2013 21:40:01 -0000 >Number: 181592 >Category: ports >Synopsis: pkg2ng should check/add WITH_PKGNG=yes to /etc/make.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 27 21:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Gary Aitken >Release: 9.1 RELEASE >Organization: >Environment: FreeBSD breakaway.dreamchaser.org 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: pkg2ng converts the package database, in a non-reversible manner, to the new format. If running a release earlier than 10, /etc/make.conf requires the line WITH_PKGNG=yes for port builds to work. It would be helpful if pkg2ng automagically updated /etc/make.conf to contain this line if it is not already there; it will save a lot of complaints / questions when people upgrade. If one upgrades using pkg2ng and then attempts to build a port, the build will start to work correctly and then fail when attempting to install with a message about the package database being corrupted. The only clue to the fact that the problem is the missing entry in /etc/make.conf is that the error messages are from pkg_install, which is the old pkg environment. >How-To-Repeat: # pkg2ng # cd /usr/ports # portmaster foo/bar >Fix: Manually add WITH_PKGNG=yes to /etc/make.conf >Release-Note: >Audit-Trail: >Unformatted: