pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/50957: can't install php-pgsql when php-7 is installed
The following reply was made to PR pkg/50957; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/50957: can't install php-pgsql when php-7 is installed
Date: Tue, 15 Mar 2016 20:29:39 +0000
On Sat, Mar 12, 2016 at 10:40:00AM +0000, 6bone%6bone.informatik.uni-leipzig.de@localhost wrote:
> So far I have not needed the mk.conf. The packages have recognized
> previously installed versions of programs and then used them.
>
> How is the defined behavior of pkgsrc? Do I have to define such cases
> manually or will alreday installed package versions be detected and used?
It's supposed to detect one that's already installed from the set
that's marked ACCEPTABLE; but each of the multiversion frameworks
(python, ruby, php, etc.) is slightly different and maybe this isn't
part of the php one. But looking at lang/php/phpversion.mk suggests
that it's supposed to be... so my guess would be that something's
wrong.
oh, I see the problem: there's no _PHP_VERSION_70_INSTALLED logic,
only 56 and 57. Unless that was deliberate (seems unlikely), it's a
bug.
That said, setting PHP_VERSION_DEFAULT the way you want it is still
the recommended course of action, as there are other cases where
things will not necessarily happen the way you want -- arguably those
are bugs too but at least some are hard to prevent without
strengthening the frameworks a lot, which is a large proposition.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index