From: Daniele Varrazzo Date: Sun, 25 Sep 2022 01:31:22 +0000 (+0100) Subject: build: fix starting Postgres in macOS build script X-Git-Tag: 3.1.3~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db634580dde84897bbd61384cca2912861e14a41;p=thirdparty%2Fpsycopg.git build: fix starting Postgres in macOS build script The brew command fails with: Could not enable service: 125: Domain does not support specified action Error: Failure while executing; `/bin/launchctl enable gui/501/homebrew.mxcl.postgresql@14` exited with 125. --- diff --git a/tools/build/build_macos_arm64.sh b/tools/build/build_macos_arm64.sh index 724ab9b10..7a9945b3d 100755 --- a/tools/build/build_macos_arm64.sh +++ b/tools/build/build_macos_arm64.sh @@ -38,7 +38,12 @@ fi # Install PostgreSQL, if necessary command -v pg_config > /dev/null || ( brew install postgresql@${postgres_version} - brew services start postgresql + # Currently not working + # brew services start postgresql@${postgres_version} + pg_ctl \ + -D /opt/homebrew/var/postgresql@${postgres_version} \ + -l /opt/homebrew/var/log/postgresql@${postgres_version}.log \ + start ) # Install the Python versions we want to build