From 974f94c1863b35f9aedeeb90fb8ff733ff56818f Mon Sep 17 00:00:00 2001 From: David Schlenk Date: Fri, 27 Sep 2024 09:48:37 -0500 Subject: [PATCH] The `powertools` repo is named `ol8_codeready_builder` in oracle linux 8 --- libraries/sql/_connection.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/sql/_connection.rb b/libraries/sql/_connection.rb index 0b68bea3..d582dd2a 100644 --- a/libraries/sql/_connection.rb +++ b/libraries/sql/_connection.rb @@ -84,7 +84,11 @@ def install_pg_gem declare_resource(:package, libpq_package_name) { compile_time(true) } declare_resource(:package, 'perl-IPC-Run') do compile_time(true) - options('--enablerepo=powertools') + if platform?('oracle') + options ['--enablerepo=ol8_codeready_builder'] + else + options('--enablerepo=powertools') + end end when 9 declare_resource(:package, libpq_package_name) { compile_time(true) }