[Bug 200569] pgsql version detection does not work properly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 1 11:25:12 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200569

            Bug ID: 200569
           Summary: pgsql version detection does not work properly
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr at FreeBSD.org
          Reporter: fjoe at FreeBSD.org
                CC: freebsd-ports-bugs at FreeBSD.org

Created attachment 157340
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=157340&action=edit
Try to use installed postgresql-client version before falling back to
PGSQL_DEFAULT

Currently PGSQL_DEFAULT is 9.3.
When a different version of postgresql-client is installed (e.g. 9.0) and port
has pgsql:9.0+ pgsql.mk select a default version instead of installed version.

Example:

fjoe at slinky:/usr/ports/databases/pgadmin3 % make
===>  pgadmin3-1.20.0 cannot install: the port wants postgresql-client version
9.0 9.1 9.2 9.3 9.4 and you have version 9.0 installed.
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/pgadmin3
fjoe at slinky:/usr/ports/databases/pgadmin3 % pkg info | grep postgresql
postgresql90-client-9.0.18     PostgreSQL database (client)
fjoe at slinky:/usr/ports/databases/pgadmin3 % 

This happens because _WANT_PGSQL_VER code in pgsql.mk does not take into
account the installed version and always tries to use PGSQL_DEFAULT.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list