-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Conversation
Pending an upstream pull request (Homebrew/legacy-homebrew#50392), I'll keep this updated for anyone who might have this repo tapped.
fb4dc1a
to
63d4436
Compare
Pending an upstream pull request (Homebrew/legacy-homebrew#50392), I'll keep this updated for anyone who might have this repo tapped.
depends_on "postgresql" | ||
|
||
def install | ||
config_args = %W[--prefix=#{prefix} PG_CONFIG=#{Formula["postgresql"].opt_bin}/pg_config] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For pg_config
can it be set as an environment variable instead? Like
ENV["PG_CONFIG"] = Formula["postgresql"].opt_bin}/"pg_config"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see if that would work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Today Citus Data announced they "unforked" their PostgreSQL-based dist- ributed database and open-sourced the whole project. This means Citus, previously a private fork of the PostgreSQL codebase, can now be added to an existing PostgreSQL install using the standard PostgreSQL CREATE EXTENSION command. This is analogous to e.g. PostGIS, whose formula was used as an example when writing the formula for Citus. Other PostgreSQL-related formula provided good examples of a test block that actually starts PostgreSQL and verifies installation of the extension.
63d4436
to
742611e
Compare
Sets pg_config using an environment variable, removes all configure arguments, and moves the make arguments inline.
We've released a newer version since the original code review; might as well update.
@dunn — I addressed your feedback (checklist up top) and updated the Citus version. The Shall I reopen this under the new repo (I will unless you object)? |
Closing in favor of the new Homebrew/homebrew-core#463. |
Last month, Citus Data "unforked" Citus, their PostgreSQL-based dist- ributed database and open-sourced the whole project. This means Citus, previously a private fork of the PostgreSQL codebase, can now be added to an existing PostgreSQL install using the standard PostgreSQL CREATE EXTENSION command. This is analogous to e.g. PostGIS, whose formula was used as an example when writing the formula for Citus. Other PostgreSQL-related formula provided good examples of a test block that actually starts PostgreSQL and verifies installation of the extension. Previously submitted as Homebrew/legacy-homebrew#50392, where it has already undergone some code review. Closes #463. Signed-off-by: Andrew Janke <andrew@apjanke.net>
Today Citus Data announced they "unforked" their PostgreSQL-based distributed database and open-sourced the whole project. This means Citus, previously a private fork of the PostgreSQL codebase, can now be added to an existing PostgreSQL install using the standard PostgreSQL CREATE EXTENSION command.
This is analogous to e.g. PostGIS, whose formula was used as an example when writing the formula for Citus. Other PostgreSQL-related formula provided good examples of a test block that actually starts PostgreSQL and verifies installation of the extension.
Code Review Tasks
pg_config
using environment variablemake
andconfigure
args inline to the relevantsystem
calls