From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 1 11:25:12 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBEDF25B for ; Mon, 1 Jun 2015 11:25:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E14316DF for ; Mon, 1 Jun 2015 11:25:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t51BPCqu001952 for ; Mon, 1 Jun 2015 11:25:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 200569] pgsql version detection does not work properly Date: Mon, 01 Jun 2015 11:25:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fjoe@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 11:25:12 -0000 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.