From owner-freebsd-ports@FreeBSD.ORG Mon Mar 9 14:03:02 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4736B8D9 for ; Mon, 9 Mar 2015 14:03:02 +0000 (UTC) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17FB6D15 for ; Mon, 9 Mar 2015 14:03:01 +0000 (UTC) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t29E4UrT043520 for ; Mon, 9 Mar 2015 07:04:30 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: <54FD90AF.1030008@tomse.dk> References: <54FC44A4.7050707@tomse.dk> <20150308134144.GB69925@ivaldir.etoilebsd.net>, <54FD90AF.1030008@tomse.dk> From: "Chris H" Subject: Re: pkgng deviates from defaults? Date: Mon, 09 Mar 2015 07:04:30 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <5b05148435ae02019e0ccae218cecce5@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 14:03:02 -0000 On Mon, 09 Mar 2015 13:23:11 +0100 Carsten Jensen wrote > On 03/08/2015 02:41 PM, Baptiste Daroussin wrote: > > On Sun, Mar 08, 2015 at 01:46:28PM +0100, Carsten Jensen wrote: > >> > >> It seems that pkgng deviates from installing the defaults. > >> one of the culprits seems to be phpMyAdmin, as trying to upgrade this > >> only it wants php56 > >> deleting phpMyAdmin just shows I have other packages needing php56 in my > >> system. > >> > >> is this a bug? and how can I prevent upgrading to the non-default php56? > > > > The default settings are a ports tree setting not a pkg setting. for now > > the ports are hardcoding the required version into the packages, this is a > > legacy of the old system, noone has yet been working on this. so beside > > building your own packages with poudriere (which will define the default > > you want) righ now there is no way to avoid that. > > > > The php case but not only php will require small changes in pkg(8) to > > activate smart dependencies: depend on a>1<=2.10 and also adding > > provides/requires (this is not very hard to be added in pkg.) and it should > > also require heavy changes on the port side! > > > > As far as I know noone has been working on those changes in the port side. > > the pkg(8) changes are mostly pending for real use cases in the port side. > > Meaning both should be coordinated. > > > > Best regards, > > Bapt > > > > Sorry I don't think I was clear. > Some applications wants php5 and some applications wants php56 when > upgrading using pkg-ng. > Using pkg-ng one cannot upgrade i.e. both phpMyAdmin and an other web > based application due to this conflict. > > So while the upgrade happens to upgrade to php56 it also removes the > other web application, as it only wants php5. > > Most of the applications on the server is maintained by pkg-ng, and it > conflicts itself. > > Basically there are now 2 "default" php versions used by pkg-ng > meaning, _I_ am not trying to upgrade to php56, pkg-ng does but it also > tries to upgrade php5. > > I can't find any hardcode to php56 in the Makefile of databases/phpmyadmin > > I don't know if this is expressed better, I hope so atleast. You might be able to avoid the issue you're having, by using: DEFAULT_VERSIONS+=php=5.5 in your make.conf(5) (/etc/make.conf) file. Check to see if you already have a DEFAULT_VERSIONS line there. If not simply add DEFAULT_VERSIONS+=php=5.5 you your make.conf file. If the line already exists, it is a space separated list. So simply append it to the list thusly DEFAULT_VERSIONS+=mysql=5.5 php=5.5 assuming that the entry mysql=5.5 was already listed. HTH --Chris > > > Cheers > Carsten > > > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"