From owner-freebsd-ports@FreeBSD.ORG Mon Mar 9 19:05:29 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 B679C8DD for ; Mon, 9 Mar 2015 19:05:29 +0000 (UTC) Received: from cicero4.cybercity.dk (cicero-fbr1.cybercity.dk [212.242.40.5]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF5798A for ; Mon, 9 Mar 2015 19:05:28 +0000 (UTC) Received: from cicero2.cybercity.dk (cicero2.cybercity.dk [212.242.40.53]) by cicero4.cybercity.dk (Postfix) with ESMTP id 04C954F4F0D for ; Mon, 9 Mar 2015 20:05:20 +0100 (CET) Received: from mail.flipmode.dk (0x5e9159bc.adsl.cybercity.dk [94.145.89.188]) by cicero2.cybercity.dk (Postfix) with ESMTP id E519D10881E for ; Mon, 9 Mar 2015 20:05:13 +0100 (CET) Received: from ns1.flipmode.dk (unknown [127.0.0.1]) by mail.flipmode.dk (Postfix) with ESMTP id 627501F10607 for ; Mon, 9 Mar 2015 20:05:10 +0100 (CET) X-Virus-Scanned: amavisd-new at flipmode.dk Received: from mail.flipmode.dk ([127.0.0.1]) by ns1.flipmode.dk (ns1.flipmode.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tXJ-OpxtpJPI for ; Mon, 9 Mar 2015 20:05:09 +0100 (CET) Received: from [127.0.0.1] (unknown [192.168.4.168]) by mail.flipmode.dk (Postfix) with ESMTPSA id 428981F10606 for ; Mon, 9 Mar 2015 20:05:09 +0100 (CET) Message-ID: <54FDEEE5.4000606@tomse.dk> Date: Mon, 09 Mar 2015 20:05:09 +0100 From: Carsten Jensen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: pkgng deviates from defaults? References: <54FC44A4.7050707@tomse.dk> <20150308134144.GB69925@ivaldir.etoilebsd.net> <54FD90AF.1030008@tomse.dk> <54FDBFC0.1090403@egr.msu.edu> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 150309-0, 09-03-2015), Outbound message X-Antivirus-Status: Clean 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 19:05:29 -0000 On 09-03-2015 17:34, Kimmo Paasiala wrote: > On Mon, Mar 9, 2015 at 5:44 PM, Adam McDougall wrote: >> On 03/09/2015 08:23, 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. >>> >>> >>> Cheers >>> Carsten >>> >> I think there is some confusion because the default PHP version in ports >> recently changed to 5.6, and now the official packages are pulling in 5.6: >> >> https://svnweb.freebsd.org/ports?view=revision&revision=379433 >> >> pkg sometimes tries to remove conflicting packages (like ones that need >> 5.5) unless you "pkg upgrade" without specifying a package and then it >> has better information on what to reinstall so packages might not get >> removed. > In fact pkg(8) will not allow conflicting packages to be installed at > all. The result is that if you want to install a package that would > introduce a conflict in the installed package database the conflict > has to be resolved one way or another. The only solution at the moment > is to remove the offending packages from the existing installed > packages. This is not a pkg(8) limitation but the consequence of how > ports(7) system deals with conflicts and lack of infrastructure to > properly allow multiple versions of the same software to co-exist. > > -Kimmo > _______________________________________________ > 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" Lots of good answers, thank you :-) I can understand that php 5.6 is now the default, I did major upgrades a few weeks back, and it was 5.4 that was the default then. Thats not a problem for me as long as the upgrade process isn't troublesome. But I'm wondering why pkg-ng wants to remove other packages rather than just upgrading or reinstalling due to dependencies have changed. Shouldn't these applications have been built using the new defaults? The problems occured during the simple: pkg upgrade oh, and I've seen a couple of lines similar to this: mod_php5 has no direct installation candidates, change it to mod_php5? [Y/n]: no matter what I've chosen it does nothing than exiting to the shell, trying to run pkg upgrade again and it asks the same question. Carsten