From owner-freebsd-ports@FreeBSD.ORG Thu May 29 23:23:25 2014 Return-Path: Delivered-To: freebsd-ports@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 ESMTPS id 5791E397; Thu, 29 May 2014 23:23:25 +0000 (UTC) Received: from kestrel.altadena.net (kestrel2.altadena.net [IPv6:2001:1878:b00:100::120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "kestrel.altadena.net", Issuer "Root Certificate Version 2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 31DE7239B; Thu, 29 May 2014 23:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=altadena.net; s=1.kestrel; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=hXV/QgmAlfixXny89LQmhKnIjh6ENuTui+X6FcpPSo0=; b=FoaRFqWBVRzdcqgaJWXj7msVvISrs87MNPpGkmr+oalEHvDczZzM9bimN32V8kSWMgqM5l1U1SDxRrZmS10v2GpRdk+XFsAj70IJ8CHXkBsWWQb0LvVzWxVVAdQSZvTsSyDDEepTpcEA471zxgrV7dSBq0mOTqe/dU9LwL4/i4Y=; Received: from [2001:470:e160:1:2938:c439:1e1c:95c7] (port=51016 helo=port5.altadena.net) by kestrel.altadena.net with esmtps (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82 (FreeBSD)) (envelope-from ) id 1Wq9fP-000Pq5-EK; Thu, 29 May 2014 16:23:23 -0700 Message-ID: <5387C168.60303@altadena.net> Date: Thu, 29 May 2014 18:23:20 -0500 From: Pete Carah User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Bryan Drewery Subject: Re: Net-SNMP conflict References: <537B0FCB.7020608@altadena.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: zi@FreeBSD.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2014 23:23:25 -0000 On 05/20/2014 09:58 AM, Bryan Drewery wrote: > On 2014-05-20 04:18, Pete Carah wrote: >> PLEASE don't automatically install pkg during the build of ANY other >> package; if this happens in the middle of a portupgrade -a on a system >> without pkgng, the result is not pretty; all packages built after >> net-snmp have a duplicated origin, among other things. I hope I can >> recover the system since it is supposed to be a production server. >> >> Yes, I realize I'll have to convert. However, this forced install >> doesn't convert the database so the pkg database and /var/db/pkg end up >> inconsistent, and I can't tell what is really installed on all of the >> packages that show a duplicated origin. >> >> -- Pete >> > > (portupgrade maintainer and pkg developer here) > > Having pkg installed should be perfectly safe. Portupgrade, nor the > ports framework, consider pkg installed as "converted". All packages > will continue to be registered in the old format unless you run > pkg2ng or 'pkg install' or add WITH_PKGNG=yes to your make.conf. > > Can you please elaborate on what the "duplicated origin" issue > is? The way net-snmp installed pkg also activated it without doing a pkg2ng; since this happened in the middle of a portupgrade part of the portupgrade kept its records the old way and the rest the new way without any of the old ports in the database. This made a lot of things build twice. Not very nice... > > net-snmp also should (if I remember the code I reviewed right) be > only considering the new package database if it has packages in it, > meaning not until you pkg2ng or 'pkg install'. No, the way I read the makefile lines in question it installed it if it wasn't already installed.. See: # pkg-1.2 cannot handle this dependency well. .if !defined(WITH_PKGNG) LIB_DEPENDS= libpkg.so:${PORTSDIR}/ports-mgmt/pkg .endif This will install if it is there or not, but only if it is NOT in use. Probably not what was intended. -- Pete