Solved [Solved] php 5.3 pgsql pdo and postgresql 9.3

Hello,

On FreeBSD 8.3-RELEASE-p14, I have databases/postgresql93 (9.3.3) installed, running fine, lang/php53 (5.3.28) installed running ok too. Now I'm trying to install databases/php53-pgsql for databases/postgresql93 but it fails.

I found nothing about this in /src/ports/UPDATING searching for 'postgre' and 'pgsql'. In the make.conf of my building jail I did put (see /usr/ports/UPDATING 20140211)
Code:
DEFAULT_VERSIONS=php=5.3 mysql=5.5 apache=2.2 pgsql=9.3

but got a warning while compiling:
Code:
DEFAULT_PHP_VER is defined, consider using DEFAULT_VERSIONS=php=53 instead

It looks like the warning is not using the same notation than /usr/ports/UPDATING.

I tried with both databases/php53-pgsql and databases/php53-pdo_pgsql. Both are compiling fine but are failing with:
Code:
pkg_add: could not find package postgresql90-client-9.0.16 !
*** Error code 1

Isn't there a way to force the use of databases/postgresql93-client?
 
Re: php 5.3 pgsql pdo and postgresql 9.3

Ok much confusion here, sorry for the noise.

I did a portmaster --check-depends and databases/postgresql90-client was listed as a dependency for many other ports, I should have installed it as part of another installation process, pkg_delete it, install databases/postgresql93-server and databases/postgresql93-client and forgot about it. I thought the port enforced the use of version 9.0 somehow but couldn't find anything about it (Makefile, patch, ...).

All is fine now :) I cleaned the wrong dependencies and there it goes.
 
Re: php 5.3 pgsql pdo and postgresql 9.3 [SOLVED]

mecano said:
but got a warning while compiling:
Code:
DEFAULT_PHP_VER is defined, consider using DEFAULT_VERSIONS=php=53 instead

It looks like the warning is not using the same notation than /usr/ports/UPDATING.
The warning is because not all ports have been modified to use DEFAULT_VERSIONS yet. It should disappear when the port has been updated.

Isn't there a way to force the use of databases/postgresql93-client?
Yes, but you already have it. DEFAULT_VERSIONS= pgsql=9.3. The DEFAULT_VERSIONS option is a relatively new addition to the ports tree. It's possible it may have broken a few ports. But there's a lot of work being done right now so it'll probably be fixed really soon.
 
Thanks for the clarifications @SirDice,
port appears working fine so far, do you know if the dotted notation inconstancy is harmless (i.e. for subversions as in php=53 vs php=5.3)?



Thanks for the editing @wblock@, in French we put space before semicolon, colon, question mark, etc. so these typos don't always flash to the eye when writing in English, will try to be wakeful though.
 
Last edited by a moderator:
Back
Top