Skip to content

Commit e14be75

Browse files
author
qount25
committed
Use Package#native? as condition to add "build-essential" to build_dependencies
1 parent de2e49d commit e14be75

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/pgpm/package/dependencies.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require "tsort"
4+
require "debug"
45

56
module Pgpm
67
class Package
@@ -11,11 +12,15 @@ module Dependencies
1112
def build_dependencies
1213
case Pgpm::OS.in_scope.class.name
1314
when "debian", "ubuntu"
14-
[
15+
deps = [
1516
"postgresql-#{postgres_major_version}",
1617
"postgresql-server-dev-#{postgres_major_version}",
1718
"postgresql-common"
1819
]
20+
if self.native?
21+
binding.break
22+
deps << "build-essential"
23+
end
1924
when "rocky+epel-9", "redhat", "fedora"
2025
[
2126
"postgresql-#{postgres_major_version}",

0 commit comments

Comments
 (0)