Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2019 09:20:33 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r507942 - head/databases/pgagent/files
Message-ID:  <201908030920.x739KXgq068688@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)))



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