-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DEV-13] postgres mojave update #11
Conversation
I suspect we need to copy over this section of the 9.6 recipe from Homebrew: https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]#L87-L101
|
This section also seems relevant: https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]#L108-L123
|
postgresql.rb
Outdated
"pkglibdir=#{lib}/postgresql" | ||
end | ||
|
||
def post_install |
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.
Looks like this might have accidentally removed this post_install
function? https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]#L125-L131
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.
good catch! 😟
this kind of got away from me. it didn't work -- maybe this was the problem
I'm planning on upgrading later this week. Will give this a try when I run into the issue! |
I'm going through the manual steps but using this command to install the tap version |
Related to general dev setup makefile PR: https://github.com/CloverHealth/documentation/pull/1033/ |
/cc @alyssawhitwell, @kirk-clover for context relating to Makefile setup |
Is there any need for perl support? When I ran into this problem myself, I found this: After editing the formula locally, I believe it installed correctly. |
Postgres build recipe is copied from https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected] and modified to install as plain postgres.
b3d28fa
to
be0d8ac
Compare
I've updated this by copying over Postgres 9.6 installation file from https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]. It seems to already handle building on Mojave. I made minor edits to remove the I tested this by running:
It seems to work, but I'm not running Mojave:
|
Was the bump from 9.6.8 to 9.6.10 intentional? |
This reverts commit 16eef53. Postgis doesn't correctly install against this postgres installation so reverting for now.
--datadir=#{HOMEBREW_PREFIX}/share/postgresql | ||
--libdir=#{HOMEBREW_PREFIX}/lib | ||
--sysconfdir=#{etc} | ||
--datadir=#{pkgshare} |
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.
Wondering if this change is causing the problem... What is pkgshare
set to?
I'm doing a dev environment set up on a new laptop with OSX Mojave
The postgres install failed with the following error:
After some googling I found this solution that worked:
Not sure if it matters for high sierra or not. Anyone with brew skills know what the best practice is here? Maybe this shouldn't be updated? Maybe it should be updated in the Makefile? Or directly in the postgres formula?