From nobody@FreeBSD.org  Tue Aug 27 21:32:38 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 EB0015CE
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <garya@dreamchaser.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg2ng should check/add WITH_PKGNG=yes to /etc/make.conf 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181592
>Category:       ports
>Synopsis:       ports-mgmt/pkg: pkg2ng should check/add WITH_PKGNG=yes to /etc/make.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bapt
>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:  Mon Sep 02 00:28:03 UTC 2013
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->bapt 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Aug 27 23:57:11 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer. 

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