From 6f754f2562505d1c3f0fe5c805f2f92339d98a68 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 1/9] hypopg: revision bump for Postgres 16 --- Formula/hypopg.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/hypopg.rb b/Formula/hypopg.rb index 7ea8719..e52cc63 100644 --- a/Formula/hypopg.rb +++ b/Formula/hypopg.rb @@ -4,6 +4,7 @@ class Hypopg < Formula url "https://github.com/HypoPG/hypopg/archive/refs/tags/1.4.0.tar.gz" sha256 "0821011743083226fc9b813c1f2ef5897a91901b57b6bea85a78e466187c6819" license "PostgreSQL" + revision 1 livecheck do url :stable @@ -23,14 +24,21 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| + # Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a + dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib" + ENV["PG_CONFIG"] = neon_postgres.pg_bin_for(v)/"pg_config" system "make", "clean" system "make" mkdir_p lib/neon_postgres.name/v - mv "hypopg.so", lib/neon_postgres.name/v + mv "hypopg.#{dlsuffix}", lib/neon_postgres.name/v mkdir_p share/neon_postgres.name/v/"extension" cp "hypopg.control", share/neon_postgres.name/v/"extension" @@ -39,7 +47,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port From f37da2b694583950d2c9207cecb809e18ae6fd5e Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 2/9] ip4r: revision bump for Postgres 16 --- Formula/ip4r.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/ip4r.rb b/Formula/ip4r.rb index 80b9917..91763e7 100644 --- a/Formula/ip4r.rb +++ b/Formula/ip4r.rb @@ -4,6 +4,7 @@ class Ip4r < Formula url "https://github.com/RhodiumToad/ip4r/archive/refs/tags/2.4.2.tar.gz" sha256 "0f7b1f159974f49a47842a8ab6751aecca1ed1142b6d5e38d81b064b2ead1b4b" license "PostgreSQL" + revision 1 bottle do root_url "https://ghcr.io/v2/bayandin/tap" @@ -18,8 +19,15 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| + # Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a + dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib" + ENV["PG_CONFIG"] = neon_postgres.pg_bin_for(v)/"pg_config" system "make", "clean" system "make" @@ -27,7 +35,7 @@ def install stage_dir = Pathname("stage-#{v}#{HOMEBREW_PREFIX}") mkdir_p lib/neon_postgres.name/v - mv Dir[stage_dir/"lib"/neon_postgres.name/v/"*.so"], lib/neon_postgres.name/v + mv Dir[stage_dir/"lib"/neon_postgres.name/v/"*.#{dlsuffix}"], lib/neon_postgres.name/v from_ext_dir = stage_dir/"share"/neon_postgres.name/v/"extension" to_ext_dir = share/neon_postgres.name/v/"extension" @@ -39,7 +47,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port From 8dc8ca691922f2b42f1d919087f1bfeea1e8af94 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 3/9] pg_cron: revision bump for Postgres 16 --- Formula/pg_cron.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/pg_cron.rb b/Formula/pg_cron.rb index 595e6b1..c2a0f45 100644 --- a/Formula/pg_cron.rb +++ b/Formula/pg_cron.rb @@ -4,6 +4,7 @@ class PgCron < Formula url "https://github.com/citusdata/pg_cron/archive/refs/tags/v1.6.0.tar.gz" sha256 "383a627867d730222c272bfd25cd5e151c578d73f696d32910c7db8c665cc7db" license "PostgreSQL" + revision 1 bottle do root_url "https://ghcr.io/v2/bayandin/tap" @@ -18,14 +19,21 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| + # Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a + dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib" + ENV["PG_CONFIG"] = neon_postgres.pg_bin_for(v)/"pg_config" system "make", "clean" system "make" mkdir_p lib/neon_postgres.name/v - mv "pg_cron.so", lib/neon_postgres.name/v + mv "pg_cron.#{dlsuffix}", lib/neon_postgres.name/v mkdir_p share/neon_postgres.name/v/"extension" cp "pg_cron.control", share/neon_postgres.name/v/"extension" @@ -34,7 +42,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port From 0003da1e109a12de92744b35d67c0aaf63b9f828 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 4/9] pg_embedding: revision bump for Postgres 16 --- Formula/pg_embedding.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/pg_embedding.rb b/Formula/pg_embedding.rb index 39e3960..ec1a7df 100644 --- a/Formula/pg_embedding.rb +++ b/Formula/pg_embedding.rb @@ -4,6 +4,7 @@ class PgEmbedding < Formula url "https://github.com/neondatabase/pg_embedding/archive/refs/tags/0.3.6.tar.gz" sha256 "b2e2b359335d26987778c7fae0c9bcc8ebc3530fc214113be1ddbc8a136e52ac" license "Apache-2.0" + revision 1 bottle do root_url "https://ghcr.io/v2/bayandin/tap" @@ -18,14 +19,21 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| + # Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a + dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib" + ENV["PG_CONFIG"] = neon_postgres.pg_bin_for(v)/"pg_config" system "make", "clean" system "make" mkdir_p lib/neon_postgres.name/v - mv "embedding.so", lib/neon_postgres.name/v + mv "embedding.#{dlsuffix}", lib/neon_postgres.name/v mkdir_p share/neon_postgres.name/v/"extension" cp "embedding.control", share/neon_postgres.name/v/"extension" @@ -34,7 +42,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port From 4a35231e20655dfa7bfcb11636464ab4dbeb059d Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 5/9] pg_hashids: revision bump for Postgres 16 --- Formula/pg_hashids.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/pg_hashids.rb b/Formula/pg_hashids.rb index 123d05f..f8f4d29 100644 --- a/Formula/pg_hashids.rb +++ b/Formula/pg_hashids.rb @@ -4,6 +4,7 @@ class PgHashids < Formula url "https://github.com/iCyberon/pg_hashids/archive/refs/tags/v1.2.1.tar.gz" sha256 "74576b992d9277c92196dd8d816baa2cc2d8046fe102f3dcd7f3c3febed6822a" license "MIT" + revision 1 bottle do root_url "https://ghcr.io/v2/bayandin/tap" @@ -18,13 +19,20 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| + # Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a + dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib" + system "make", "clean", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config" system "make", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config" mkdir_p lib/neon_postgres.name/v - mv "pg_hashids.so", lib/neon_postgres.name/v + mv "pg_hashids.#{dlsuffix}", lib/neon_postgres.name/v mkdir_p share/neon_postgres.name/v/"extension" cp "pg_hashids.control", share/neon_postgres.name/v/"extension" @@ -33,7 +41,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port From 0ec11cad92f5db1cddd70cb36654327c049e3ab1 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 6/9] pgjwt: revision bump for Postgres 16 --- Formula/pgjwt.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Formula/pgjwt.rb b/Formula/pgjwt.rb index 74d016a..284847b 100644 --- a/Formula/pgjwt.rb +++ b/Formula/pgjwt.rb @@ -5,6 +5,7 @@ class Pgjwt < Formula version "2.0" sha256 "dae8ed99eebb7593b43013f6532d772b12dfecd55548d2673f2dfd0163f6d2b9" license "MIT" + revision 1 bottle do root_url "https://ghcr.io/v2/bayandin/tap" @@ -19,8 +20,12 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| system "make", "clean", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config" system "make", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config" @@ -31,7 +36,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port From c42f95494a435ef96b99d42b300e3192fc12dfa5 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 7/9] pgvector: revision bump for Postgres 16 --- Formula/pgvector.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/pgvector.rb b/Formula/pgvector.rb index 5b974c7..87a8b96 100644 --- a/Formula/pgvector.rb +++ b/Formula/pgvector.rb @@ -4,6 +4,7 @@ class Pgvector < Formula url "https://github.com/pgvector/pgvector/archive/refs/tags/v0.5.0.tar.gz" sha256 "d8aa3504b215467ca528525a6de12c3f85f9891b091ce0e5864dd8a9b757f77b" license "PostgreSQL" + revision 1 bottle do root_url "https://ghcr.io/v2/bayandin/tap" @@ -18,14 +19,21 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| + # Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a + dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib" + ENV["PG_CONFIG"] = neon_postgres.pg_bin_for(v)/"pg_config" system "make", "clean" system "make" mkdir_p lib/neon_postgres.name/v - mv "vector.so", lib/neon_postgres.name/v + mv "vector.#{dlsuffix}", lib/neon_postgres.name/v mkdir_p share/neon_postgres.name/v/"extension" cp "vector.control", share/neon_postgres.name/v/"extension" @@ -34,7 +42,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port From a92c0599214c0c8706a35b045a1a3aa108c97a38 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 8/9] postgresql-hll: revision bump for Postgres 16 --- Formula/postgresql-hll.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/postgresql-hll.rb b/Formula/postgresql-hll.rb index 05b7a9d..5e3fada 100644 --- a/Formula/postgresql-hll.rb +++ b/Formula/postgresql-hll.rb @@ -4,6 +4,7 @@ class PostgresqlHll < Formula url "https://github.com/citusdata/postgresql-hll/archive/refs/tags/v2.18.tar.gz" sha256 "e2f55a6f4c4ab95ee4f1b4a2b73280258c5136b161fe9d059559556079694f0e" license "Apache-2.0" + revision 1 bottle do root_url "https://ghcr.io/v2/bayandin/tap" @@ -18,14 +19,21 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| + # Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a + dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib" + ENV["PG_CONFIG"] = neon_postgres.pg_bin_for(v)/"pg_config" system "make", "clean" system "make" mkdir_p lib/neon_postgres.name/v - mv "hll.so", lib/neon_postgres.name/v + mv "hll.#{dlsuffix}", lib/neon_postgres.name/v mkdir_p share/neon_postgres.name/v/"extension" cp "hll.control", share/neon_postgres.name/v/"extension" @@ -34,7 +42,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port From 0017b30f9b616f306899b2879fe7018f85f6f17d Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 17 Sep 2023 11:05:24 +0100 Subject: [PATCH 9/9] rum: revision bump for Postgres 16 --- Formula/rum.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/rum.rb b/Formula/rum.rb index 65f123f..9996a66 100644 --- a/Formula/rum.rb +++ b/Formula/rum.rb @@ -4,6 +4,7 @@ class Rum < Formula url "https://github.com/postgrespro/rum/archive/refs/tags/1.3.13.tar.gz" sha256 "6ab370532c965568df6210bd844ac6ba649f53055e48243525b0b7e5c4d69a7d" license "PostgreSQL" + revision 1 bottle do root_url "https://ghcr.io/v2/bayandin/tap" @@ -18,14 +19,21 @@ def neon_postgres Formula["bayandin/tap/neon-postgres"] end + def pg_versions + neon_postgres.pg_versions with: "v16" + end + def install - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| + # Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a + dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib" + ENV["USE_PGXS"] = "1" system "make", "clean", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config" system "make", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config" mkdir_p lib/neon_postgres.name/v - mv "rum.so", lib/neon_postgres.name/v + mv "rum.#{dlsuffix}", lib/neon_postgres.name/v mkdir_p share/neon_postgres.name/v/"extension" cp "rum.control", share/neon_postgres.name/v/"extension" @@ -34,7 +42,7 @@ def install end test do - neon_postgres.pg_versions.each do |v| + pg_versions.each do |v| pg_ctl = neon_postgres.pg_bin_for(v)/"pg_ctl" psql = neon_postgres.pg_bin_for(v)/"psql" port = free_port