Date: Thu, 31 Aug 2017 11:07:30 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449023 - head/databases/postgresql-plruby/files Message-ID: <201708311107.v7VB7Uw2075873@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Thu Aug 31 11:07:30 2017 New Revision: 449023 URL: https://svnweb.freebsd.org/changeset/ports/449023 Log: Fix build with postgresql 10. Sponsored by: Absolight Added: head/databases/postgresql-plruby/files/patch-extconf.rb (contents, props changed) Added: head/databases/postgresql-plruby/files/patch-extconf.rb ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/postgresql-plruby/files/patch-extconf.rb Thu Aug 31 11:07:30 2017 (r449023) @@ -0,0 +1,11 @@ +--- extconf.rb.orig 2017-08-31 10:56:23 UTC ++++ extconf.rb +@@ -122,6 +122,8 @@ end + case version_str = `#{pg_config} --version` + when /^PostgreSQL ([7-9])\.([0-9]{1,3})(\.[0-9]{1,3})?$/ + version = 10 * $1.to_i + $2.to_i ++when /^PostgreSQL 10/ ++ version = 100 + else + version = 0 + end
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708311107.v7VB7Uw2075873>