svn commit: r449023 - head/databases/postgresql-plruby/files

Mathieu Arnold mat at FreeBSD.org
Thu Aug 31 11:07:31 UTC 2017


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


More information about the svn-ports-head mailing list