Skip to content

Add which/debianutils as runtime dependency for packages#1659

Draft
tuhaihe wants to merge 1 commit intoapache:mainfrom
tuhaihe:add-which-rpm-spec
Draft

Add which/debianutils as runtime dependency for packages#1659
tuhaihe wants to merge 1 commit intoapache:mainfrom
tuhaihe:add-which-rpm-spec

Conversation

@tuhaihe
Copy link
Copy Markdown
Member

@tuhaihe tuhaihe commented Apr 2, 2026

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.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


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.
@tuhaihe tuhaihe marked this pull request as draft April 2, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant