Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2013 21:32:38 GMT
From:      Gary Aitken <garya@dreamchaser.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181592: pkg2ng should check/add WITH_PKGNG=yes to /etc/make.conf 
Message-ID:  <201308272132.r7RLWcFA068788@oldred.freebsd.org>
Resent-Message-ID: <201308272140.r7RLe0qZ096801@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308272132.r7RLWcFA068788>