From 5f635cd4a7b7b123382fe0c3d38d2d536364769e Mon Sep 17 00:00:00 2001 From: Jan Nidzwetzki Date: Sat, 2 Dec 2023 23:18:36 +0100 Subject: [PATCH] Adjust library extension for PG16 Since 3727aa74772017bd40e58acad2a0a512b8814eb8 we use PG16 for homebrew builds. However, since PG 16 the extension of the library has changed to .dylib. This patch adjusts the installation scripts. --- timescaledb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timescaledb.rb b/timescaledb.rb index 8adf6e6..40ada42 100644 --- a/timescaledb.rb +++ b/timescaledb.rb @@ -31,7 +31,7 @@ def install `chmod +x timescaledb_move.sh` `echo "#!/bin/bash" >> timescaledb_move.sh` `echo "echo 'Moving files into place...'" >> timescaledb_move.sh` - `echo "/usr/bin/install -c -m 755 \\\$(find #{lib} -name timescaledb*.so) #{libdir.strip}/" >> timescaledb_move.sh` + `echo "/usr/bin/install -c -m 755 \\\$(find #{lib} -name timescaledb*.dylib) #{libdir.strip}/" >> timescaledb_move.sh` `echo "/usr/bin/install -c -m 644 #{share}/timescaledb/* #{sharedir.strip}/extension/" >> timescaledb_move.sh` `echo "echo 'Success.'" >> timescaledb_move.sh` bin.install "timescaledb_move.sh"