From owner-freebsd-questions@FreeBSD.ORG Fri Dec 5 06:44:26 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7A0BB3F0 for ; Fri, 5 Dec 2014 06:44:26 +0000 (UTC) Received: from mario.brtsvcs.net (mario.brtsvcs.net [IPv6:2607:fc50:0:a400::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DCA39FC for ; Fri, 5 Dec 2014 06:44:26 +0000 (UTC) Received: from chombo.houseloki.net (c-71-59-211-166.hsd1.or.comcast.net [71.59.211.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mario.brtsvcs.net (Postfix) with ESMTPSA id 1DA4E2C160E; Fri, 5 Dec 2014 06:44:24 +0000 (UTC) Received: from [IPv6:2601:7:2580:674:baca:3aff:fe83:bd29] (ivy.libssl.so [IPv6:2601:7:2580:674:baca:3aff:fe83:bd29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by chombo.houseloki.net (Postfix) with ESMTPSA id C64E91B92; Thu, 4 Dec 2014 22:44:21 -0800 (PST) Message-ID: <5481543E.7040208@bluerosetech.com> Date: Thu, 04 Dec 2014 22:44:14 -0800 From: Darren Pilgrim Reply-To: freebsd-questions@freebsd.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "John R. Levine" Subject: Re: switching from ports to pkg -- mailman group mismatch References: <20141204214125.33860.qmail@ary.lan> <5480EC4B.5010803@bluerosetech.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2014 06:44:26 -0000 On 12/4/2014 8:01 PM, John R. Levine wrote: >>> Yes, we have a mess. If you need a port compiled with other than the >>> standard options, you can't use the package, and it's a challenge >>> to keep pkg from stomping your locally compiled versions. >> >> What issue are you seeing? > > One is that when pkg sees a package installed with options other than the > default, it tries to reinstall the default version. Since the reason I > build ports with custom options is that the default doesn't work for me, > that just breaks things. This is exactly what pkg-lock solves, as you've discovered. :) > The other is that when you have several ports that install approximately > the same thing, such as the various forks of mysql, pkg often decides to > install something that smashes an existing package. I have > percona56-{server,client} installed, and every time I try pkg upgrade, it > wants to install mysql55-client, which would break percona. The > dependencies in the ports work, so I don't know why pkg gets it wrong. Which port is this? Probably the depending port has the outdated *_DEPENDS lines instead of the appropriate *_USE varibles. Mk/bsd.database.mk is quite good at finding percona or mariadb as a mysql dependency, but the port has to invoke that code with a USE variable. It's also possible the depending port is specifically asking for mysql 5.5.