Skip to content

Add RHEL 8 support with multi-distro package management#1

Closed
Copilot wants to merge 7 commits intomainfrom
copilot/make-it-work-on-rhel8
Closed

Add RHEL 8 support with multi-distro package management#1
Copilot wants to merge 7 commits intomainfrom
copilot/make-it-work-on-rhel8

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 15, 2026

Adds support for RHEL 8, CentOS 8, Rocky Linux 8, and AlmaLinux 8. Action was previously hardcoded to Ubuntu's apt-get and libssl1.1.

Changes

  • OS detection: Parse /etc/os-release to identify distribution
  • Package manager selection: Use dnf/yum + compat-openssl11 for RHEL-based systems, apt-get + libssl1.1 for Debian-based
  • Critical fix: Renamed VERSIONBUILDCACHE_VERSION to prevent conflict when sourcing /etc/os-release (which sets VERSION to OS version, breaking download URLs)
  • OpenSSL detection: Replace ldconfig -p with explicit find across lib paths to avoid permission issues

Variable conflict example

Before fix, sourcing /etc/os-release would overwrite buildcache version:

VERSION="v0.31.5"           # buildcache version
. /etc/os-release           # sets VERSION="24.04.3 LTS (Noble Numbat)"
# Now VERSION contains OS version, causing malformed download URL

After fix:

BUILDCACHE_VERSION="v0.31.5"  # preserved across os-release sourcing
. /etc/os-release              # sets VERSION but doesn't affect us

Backward compatibility

Ubuntu/Debian workflows unchanged. Unsupported distros fall back to Debian behavior with warning.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 5 commits February 15, 2026 19:16
Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
…elease

Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
Co-authored-by: magnesj <1793152+magnesj@users.noreply.github.com>
Copilot AI changed the title [WIP] Make application compatible with RHEL 8 Add RHEL 8 support with multi-distro package management Feb 15, 2026
Copilot AI requested a review from magnesj February 15, 2026 19:23
@magnesj
Copy link
Copy Markdown
Contributor

magnesj commented Feb 16, 2026

Not able to use buildcache on RHEL8 due to GLIBC requirements

@magnesj magnesj closed this Feb 16, 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.

2 participants