Pkg doesn't care about conflict

Margaret scratch65535 at att.net
Tue Sep 27 13:14:00 UTC 2016


On Tue, 27 Sep 2016 13:02:46 +0200, Mathieu Arnold
<mat at FreeBSD.org> wrote:

>Le 26/09/2016 à 21:42, scratch65535 at att.net a écrit :
>> I have the PHP 7.0 package installed under 10.2.  Wanting to
>> install the pecl-imagick port, I called pkg search, which
>> returned a ref.  I only caught the fact that it was going to
>> install PHP 5.6 despite my having 7.0 installed  when it started
>> downloading 5.6.  
>>
>> Given that PHP is one of the pillars of a FAMP setup, I'd think
>> that pkg should be aware of conflicts like that and return a
>> notice ("No version for PHP 7.0.  Install PHP 5.6?") rather than
>> blythely assume it'd be okay to install an older version of PHP
>> (or Apache, or MariaDB/MySQL, mutatis mutandis) despite an
>> already-installed later version.
>
>Right now, the default php version is php 5.6, which is used for the
>official package builds.  If you want to use another PHP version as the
>default, you have to build your ports locally.

Both 5.* and 7.* are current tracks at PHP, so it's not
surprising that a package is built with 5.6.  What surprised me,
apart from pkg's apparent willingness to ignore an existing
install of 7.0, was that there are no pkgs built against 7.0,
even though 7.0 provides a jump in performance that's so large
it's visible to the naked eye.  


More information about the freebsd-ports mailing list