Skip to content

Add missing runtime dependencies for minimal installations#1659

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

Add missing runtime dependencies for minimal installations#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

Add essential command-line utilities as runtime dependencies
to ensure proper operation in minimal system installations
such as container environments.

Added dependencies:

  • which/debianutils: Required by gp_bash_functions.sh to
    locate binaries
  • hostname: Used by various scripts to identify the system
  • less: Required for paging output in interactive sessions

These utilities may not be present in minimal installations
(e.g., Oracle Linux 9 containers, Ubuntu minimal images),
causing runtime failures during database initialization and
operation.

Changes:

  • RPM spec: Add hostname, less, and which to Requires
  • DEB control (Ubuntu 22.04/24.04): Add hostname and
    debianutils to Depends (less already present)

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


@tuhaihe tuhaihe marked this pull request as draft April 2, 2026 11:13
Add essential command-line utilities as runtime dependencies
to ensure proper operation in minimal system installations
such as container environments.

Added dependencies:
- which/debianutils: Required by gp_bash_functions.sh to
  locate binaries
- hostname: Used by various scripts to identify the system
- less: Required for paging output in interactive sessions

These utilities may not be present in minimal installations
(e.g., Oracle Linux 9 containers, Ubuntu minimal images),
causing runtime failures during database initialization and
operation.

Changes:
- RPM spec: Add hostname, less, and which to Requires
- DEB control (Ubuntu 22.04/24.04): Add hostname and
  debianutils to Depends (less already present)
@tuhaihe tuhaihe force-pushed the add-which-rpm-spec branch from 1a5f634 to 76176b2 Compare April 3, 2026 03:40
@tuhaihe tuhaihe changed the title Add which/debianutils as runtime dependency for packages Add missing runtime dependencies for minimal installations Apr 3, 2026
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