feat: Add Amazon Linux 2023 support#322
Open
grantmcdermott wants to merge 1 commit intor-lib:mainfrom
Open
Conversation
Author
|
Some of the CI runs are failing, but AFAICT these are pre-existing issues (e.g. broken bats install on macOS, fedora-41 aarch64) unrelated to this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #311
Adds AL2023 as a supported distro. The RHEL 9 R builds from Posit are binary-compatible with AL2023, so this maps the platform for version resolution while keeping AL2023 as its own distro for install tooling and repo setup. As discussed in #311 (comment), this uses the P3M "manylinux" binary repo, rather than distro-specific RHEL 9 PPM binaries, to avoid the EPEL dependency problem.
Changes
src/common.rs: Maplinux-amzn-2023tolinux-rhel-9for the r-hub API version resolutionsrc/linux.rs: Add"amzn"branch inselect_linux_tools()with simplednf install, no EPELsrc/data/repos.json: EnableP3M-manylinux(manylinux_2_28) binaries for"amzn"on both x86_64 and aarch64Testing
Tested on amazonlinux:2023 (aarch64) in Docker:
After setup:
Start R
P3M manylinux repo is configured automatically, and installing R packages correctly pulls in binaries, e.g.:
P.S. Some R packages with heavy system library dependencies (e.g.
sf) don't havemanylinuxbinaries (only on aarch64?) yet and will fall back to source compilation. But this is a PPM coverage gap, not a rig issue. (E.g., See amazonlinux/amazon-linux-2023#129 (comment))