Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jun 2015 11:25:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 200569] pgsql version detection does not work properly
Message-ID:  <bug-200569-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: fjoe@FreeBSD.org
                CC: freebsd-ports-bugs@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@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@slinky:/usr/ports/databases/pgadmin3 % pkg info | grep postgresql
postgresql90-client-9.0.18     PostgreSQL database (client)
fjoe@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200569-13>