Skip to content

Commit 1a5f634

Browse files
committed
Add which/debianutils as runtime dependency for packages
The gp_bash_functions.sh script uses the 'which' command to locate binaries, but this command may not be available in minimal system installations, causing runtime failures when running gpdemo or other utilities. This commit adds the appropriate runtime dependencies: - RPM packages: Add 'which' to Requires list - DEB packages: Add 'debianutils' (provides which command) for both Ubuntu 22.04 and 24.04 This ensures the 'which' command is available after package installation, preventing "command not found" errors during database initialization and operation.
1 parent af533b2 commit 1a5f634

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

devops/build/packaging/deb/ubuntu22.04/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Provides: apache-cloudberry-db
4646
Architecture: any
4747
Depends: curl,
4848
cgroup-tools,
49+
debianutils,
4950
iputils-ping,
5051
iproute2,
5152
keyutils,

devops/build/packaging/deb/ubuntu24.04/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Provides: apache-cloudberry-db
4646
Architecture: amd64
4747
Depends: curl,
4848
cgroup-tools,
49+
debianutils,
4950
iputils-ping,
5051
iproute2,
5152
keyutils,

devops/build/packaging/rpm/apache-cloudberry-db-incubating.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Requires: openssh
5858
Requires: openssh-clients
5959
Requires: openssh-server
6060
Requires: rsync
61+
Requires: which
6162

6263
%if 0%{?rhel} == 8
6364
Requires: apr

0 commit comments

Comments
 (0)