svn commit: r507942 - head/databases/pgagent/files
Tobias Kortkamp
tobik at FreeBSD.org
Sat Aug 3 09:20:33 UTC 2019
Author: tobik
Date: Sat Aug 3 09:20:32 2019
New Revision: 507942
URL: https://svnweb.freebsd.org/changeset/ports/507942
Log:
databases/pgagent: Unbreak build with PostgreSQL 11+
CMake Error at cmake/FindPG.cmake:74 (LIST):
LIST index: 2 out of range (-2, 1)
http://package18.nyi.freebsd.org/data/120amd64-default-PR239514/2019-07-29_20h41m52s/logs/pgagent-3.4.0_4.log
PR: 239514
Added:
head/databases/pgagent/files/patch-cmake_FindPG.cmake (contents, props changed)
Added: head/databases/pgagent/files/patch-cmake_FindPG.cmake
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/pgagent/files/patch-cmake_FindPG.cmake Sat Aug 3 09:20:32 2019 (r507942)
@@ -0,0 +1,17 @@
+Unbreak with PostgreSQL 11+. PG_PATCH_VERSION is never used except
+for cosmetics (the configuration summary), so it is safe to just
+leave it blank.
+
+CMake Error at cmake/FindPG.cmake:74 (LIST):
+ LIST index: 2 out of range (-2, 1)
+
+--- cmake/FindPG.cmake.orig 2019-08-03 09:09:29 UTC
++++ cmake/FindPG.cmake
+@@ -71,7 +71,6 @@ IF(NOT _retval)
+ STRING(REGEX MATCHALL "[0-9]+" PG_VERSION_PARTS "${PG_VERSION_STRING}")
+ LIST(GET PG_VERSION_PARTS 0 PG_MAJOR_VERSION)
+ LIST(GET PG_VERSION_PARTS 1 PG_MINOR_VERSION)
+- LIST(GET PG_VERSION_PARTS 2 PG_PATCH_VERSION)
+
+ # Are extensions supported?
+ IF((PG_MAJOR_VERSION GREATER 9) OR ((PG_MAJOR_VERSION EQUAL 9) AND (PG_MINOR_VERSION GREATER 0)))
More information about the svn-ports-head
mailing list