Skip to content

can the openjdk-headless packages be added as dependencies? #14387

Open

Description

@jl0815

The required feature described as a wish

Hi.

Currently, the packages java-17-openjdk or java-21-openjdk are defined as dependencies for the CloudStack components. This results in the installation of a large number of additional packages for graphical components that are not needed (especially on production systems).
Is it possible to add the respective -headless variants as an option?

Activity

  1. changed the title [-]can the openjdk-headless package be added as dependencies?[/-] [+]can the openjdk-headless packages be added as dependencies?[/+] on Oct 12, 2026
  2. weizhouapache commented on Oct 12, 2026

    @weizhouapache
    Member

    @jl0815
    good point, we should use -headless

  3. github-actions commented on Oct 12, 2026

    @github-actions

    🎯 Triage report

    The requester asks whether CloudStack packaging could depend on the -headless variants of java-17-openjdk/java-21-openjdk instead of the full JDK packages, to avoid pulling in unnecessary graphical dependencies on production (typically headless) systems. A maintainer (@weizhouapache) has already agreed this is a good idea.

    📊 Assessment

    Dimension Value Reasoning
    Type type:enhancement Requests a packaging dependency change, not a bug fix.
    Component component:packaging Concerns RPM/DEB package dependency declarations for CloudStack components.
    Severity n/a Not a bug; no severity applicable.
    Labels type:enhancement, component:packaging See above.
    Coding agent Suitable Maintainer has confirmed agreement with the approach; the change is well-scoped (swap JDK package dependency names to -headless variants in packaging specs/scripts) and self-contained.

    🔗 Similar issues

    No similar open issues were found for this specific packaging/dependency request.

    💡 Notes and suggestions
    • Likely implementation locations: RPM .spec files and Debian control/packaging scripts under the packaging/ directory where java-17-openjdk/java-21-openjdk are declared as Requires/Depends.
    • Should verify -headless packages are available across all supported distros/versions (CentOS/RHEL/Rocky, Ubuntu/Debian) before switching, and confirm no CloudStack component actually needs AWT/graphical JDK libraries at runtime.
    • Since a maintainer already agreed, this could be a good "good first issue" / help-wanted candidate for a contributor PR.

    Generated by Daily Issue Triage · sonnet50 93.6K · ◷

    Add this agentic workflows to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/daily-issue-triage.md@d7c1dc4b72b00607a67caaffdcc216cb64379cf9
    
  4. MashrafeeAryan commented on Oct 12, 2026

    @MashrafeeAryan

    Hi @weizhouapache , is this an open issue? If it's open, can I work on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions