From ff5d7441bc492465d773c172b9756817fb44c932 Mon Sep 17 00:00:00 2001 From: Mitchell Blank Jr Date: Sun, 27 Dec 2020 20:35:27 +0000 Subject: [PATCH] check_postgres: install correctly on Big Sur As discussed with https://github.com/Homebrew/homebrew-core/pull/66370#issuecomment-740856994 Big Sur's system perl changed how "PREFIX=" is treated as an install destination. The more explicit way to control MakeMaker is to set INSTALL_BASE instead, which should result in consistent behavior between different OS/X versions. --- Formula/check_postgres.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/check_postgres.rb b/Formula/check_postgres.rb index 0dfb21a8c6dc3..f192d277aac73 100644 --- a/Formula/check_postgres.rb +++ b/Formula/check_postgres.rb @@ -4,6 +4,7 @@ class CheckPostgres < Formula url "https://bucardo.org/downloads/check_postgres-2.25.0.tar.gz" sha256 "11b52f86c44d6cc26e9a4129e67c2589071dbe1b8ac1f8895761517491c6e44b" license "BSD-2-Clause" + revision 1 head "https://github.com/bucardo/check_postgres.git" livecheck do @@ -21,7 +22,7 @@ class CheckPostgres < Formula depends_on "postgresql" def install - system "perl", "Makefile.PL", "PREFIX=#{prefix}" + system "perl", "Makefile.PL", "INSTALL_BASE=#{prefix}", "INSTALLSITEMAN1DIR=#{man1}" system "make", "install" mv bin/"check_postgres.pl", bin/"check_postgres" inreplace [bin/"check_postgres", man1/"check_postgres.1p"], "check_postgres.pl", "check_postgres"