FreeBSD Bugzilla – Attachment 157340 Details for
Bug 200569
Mk/Uses/pgsql.mk: Version detection does not work properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Try to use installed postgresql-client version before falling back to PGSQL_DEFAULT
Mk-Uses-pgsql.patch (text/plain), 1.28 KB, created by
Max Khon
on 2015-06-01 11:25:12 UTC
(
hide
)
Description:
Try to use installed postgresql-client version before falling back to PGSQL_DEFAULT
Filename:
MIME Type:
Creator:
Max Khon
Created:
2015-06-01 11:25:12 UTC
Size:
1.28 KB
patch
obsolete
>Index: Mk/Uses/pgsql.mk >=================================================================== >--- Mk/Uses/pgsql.mk (revision 388206) >+++ Mk/Uses/pgsql.mk (working copy) >@@ -84,17 +84,26 @@ > _WANT_PGSQL_VER?= ${pgsql_ARGS} > . endif > >-# Try to match default version, otherwise just take the first version >-# that matches >+# Try to match installed version, then default version, >+# otherwise just take the first version that matches > . if !empty(_WANT_PGSQL_VER) >-. for version in ${_WANT_PGSQL_VER} >-. if ${PGSQL_DEFAULT} == ${version} >+. if defined(_PGSQL_VER) >+. for version in ${_WANT_PGSQL_VER} >+. if ${_PGSQL_VER} == ${version} > PGSQL_VER= ${version} >+. endif >+. endfor >+. if empty(PGSQL_VER) >+IGNORE?= cannot install: the port wants postgresql-client version ${_WANT_PGSQL_VER} and you have version ${_PGSQL_VER} installed > . endif >+. endif >+. if empty(PGSQL_VER) >+. for version in ${_WANT_PGSQL_VER} >+. if ${PGSQL_DEFAULT} == ${version} >+PGSQL_VER= ${version} >+. endif > PGSQL_VER?= ${version} >-. endfor >-. if defined(_PGSQL_VER) && ${_PGSQL_VER} != ${PGSQL_VER} >-IGNORE?= cannot install: the port wants postgresql-client version ${_WANT_PGSQL_VER} and you have version ${_PGSQL_VER} installed >+. endfor > . endif > . endif >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200569
: 157340