Skip to content

Commit 79e1172

Browse files
author
qount25
committed
Fix: remove default dependencies for rocky/redheat packages + update dependncies for rpm's side of timescaledb pkg
1 parent d0a7907 commit 79e1172

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

lib/pgpm/package/dependencies.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ def build_dependencies
2020
deps << "build-essential"
2121
end
2222
when "rocky+epel-9", "redhat", "fedora"
23-
[
24-
"postgresql-#{postgres_major_version}",
25-
"postgresql-server-devel-#{postgres_major_version}",
26-
"postgresql-common"
27-
]
23+
[]
2824
end
2925
end
3026

@@ -33,7 +29,7 @@ def dependencies
3329
when "debian", "ubuntu"
3430
[ "postgresql-#{postgres_major_version}" ]
3531
when "rocky+epel-9", "redhat", "fedora"
36-
[ "postgresql-#{postgres_major_version}" ]
32+
[]
3733
end
3834
end
3935

packages/timescale/timescaledb.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ def summary
2525
end
2626

2727
def dependencies
28-
super
28+
deps = case Pgpm::OS.in_scope.class.name
29+
when "rocky+epel-9", "redhat", "fedora"
30+
["openssl"]
31+
end
32+
super + deps
2933
end
3034

3135
def build_dependencies
@@ -51,8 +55,11 @@ def build_steps
5155
case Pgpm::OS.in_scope.class.name
5256
when "debian", "ubuntu"
5357
["dh_auto_build"]
54-
else
55-
super
58+
when "rocky+epel-9", "redhat", "fedora"
59+
[
60+
"./bootstrap -DPG_CONFIG=$PG_CONFIG #{bootstrap_flags.map { |f| "-D#{f}" }.join(" ")}",
61+
"cmake --build build --parallel"
62+
]
5663
end
5764
end
5865

0 commit comments

Comments
 (0)