Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CentOS/RHEL 9 and derivatives #13

Merged
merged 3 commits into from
Dec 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
config:
- {image: 'centos', tag: 'centos7', repo: 'quay.io/centos/'}
- {image: 'centos', tag: 'stream8', repo: 'quay.io/centos/'}
- {image: 'centos', tag: 'stream9', repo: 'quay.io/centos/'}
- {image: 'ubuntu', tag: '18.04', repo: ''}
- {image: 'ubuntu', tag: '20.04', repo: ''}
- {image: 'ubuntu', tag: '22.04', repo: ''}
Expand All @@ -36,6 +37,14 @@ jobs:
dnf install -y epel-release epel-next-release
dnf install -y R-core

- name: Install dependencies (CentOS 9)
if: ${{ matrix.config.tag == 'stream9' }}
run: |
dnf install -y 'dnf-command(config-manager)'
dnf config-manager --set-enabled crb
dnf install -y epel-release epel-next-release
dnf install -y R-core

- name: Install dependencies (Ubuntu)
if: ${{ matrix.config.image == 'ubuntu' }}
env:
Expand Down
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rspm
Type: Package
Title: 'RStudio' Package Manager
Version: 0.2.3
Version: 0.3.0
Authors@R: c(
person("Iñaki", "Ucar", email="iucar@fedoraproject.org",
role=c("aut", "cph", "cre"), comment=c(ORCID="0000-0001-6403-5550")),
Expand All @@ -10,14 +10,14 @@ Description: Enables binary package installations on Linux distributions.
Provides access to 'RStudio' public repositories at
<https://packagemanager.rstudio.com>, and transparent management of
system requirements without administrative privileges. Currently supported
distributions are 'CentOS' / 'RHEL' 7 and 8, and several 'RHEL' derivatives
('Rocky Linux' 8, 'AlmaLinux' 8, 'Oracle Linux' 7 and 8, 'Amazon Linux' 2),
'openSUSE' / 'SLES' 15.3, and 'Ubuntu' 18.04, 20.04 and 22.04.
distributions are 'CentOS' / 'RHEL' 7-9, and several 'RHEL' derivatives
('Rocky Linux', 'AlmaLinux', 'Oracle Linux', and 'Amazon Linux' 2),
'openSUSE' / 'SLES' 15.3-4, and 'Ubuntu' 18.04, 20.04 and 22.04.
License: GPL-2 | GPL-3 | MIT + file LICENSE
Copyright: file COPYRIGHTS
Encoding: UTF-8
OS_type: unix
Suggests: renv, tinytest
URL: https://enchufa2.github.io/rspm/
BugReports: https://github.com/Enchufa2/rspm/issues
RoxygenNote: 7.2.1
RoxygenNote: 7.2.2
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# rspm 0.3.0

- Add support for CentOS/RHEL 9 and derivatives (#13 addressing #12).

# rspm 0.2.3

- Fix non-root unpacking for old rpm/dpkg versions (#11 addressing #9, #10).
Expand Down
6 changes: 3 additions & 3 deletions R/integration.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ os <- function() {
code <- switch(
id <- strsplit(os$ID, "-")[[1]][1],
"ubuntu" = os$VERSION_CODENAME,
"centos" = paste0(id, os$VERSION_ID),
"rocky" = , "almalinux" = , "ol" = ,
"rhel" = paste0("centos", strsplit(os$VERSION_ID, "\\.")[[1]][1]),
"centos" = , "rocky" = , "almalinux" = , "ol" = , "rhel" =
paste0(if ((ver <- package_version(os$VERSION_ID)$major) < 9)
"centos" else "rhel", ver),
"amzn" = if (os$VERSION_ID == "2") "centos7" else
stop("OS not supported", call.=FALSE),
"sles" = , "opensuse" =
Expand Down
6 changes: 3 additions & 3 deletions R/rspm.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#' Provides access to RStudio public repositories at
#' \url{https://packagemanager.rstudio.com}, and transparent management of
#' system requirements without administrative privileges. Currently supported
#' distributions are CentOS / RHEL 7 and 8, and several RHEL derivatives
#' (Rocky Linux 8, AlmaLinux 8, Oracle Linux 7 and 8, Amazon Linux 2),
#' openSUSE / SLES 15.3, and Ubuntu 18.04, 20.04 and 22.04.
#' distributions are CentOS / RHEL 7-9, and several RHEL derivatives
#' (Rocky Linux, AlmaLinux, Oracle Linux, Amazon Linux 2),
#' openSUSE / SLES 15.3-4, and Ubuntu 18.04, 20.04 and 22.04.
#'
#' @author Iñaki Ucar
#'
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
- **Full integration** with the system package manager to resolve, download and
configure system requirements automagically without leaving your R console.
- **Fully user mode**, no root privileges required.
- Support for **CentOS / RHEL** 7 and 8.
- Support for **CentOS / RHEL** 7, 8 and 9.
- Support for **RHEL derivatives**:
Rocky Linux 8, AlmaLinux 8, Oracle Linux 7 and 8, Amazon Linux 2.
- Support for **openSUSE / SLES** 15.3.
Rocky Linux 8-9, AlmaLinux 8-9, Oracle Linux 7-9, Amazon Linux 2.
- Support for **openSUSE / SLES** 15.3 and 15.4.
- Support for **Ubuntu** 18.04, 20.04 and 22.04 (requires `apt-file`).

Both R packages and system dependencies **are installed into the user home**.
Expand Down
5 changes: 3 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## Patch release
## Minor release
Add support for CentOS/RHEL 9 and derivatives.

## Test environments
- ubuntu:22.04, ubuntu:20.04, ubuntu:18.04 on GitHub
- centos:stream8, centos:centos7 on GitHub
- centos:stream9, centos:stream8, centos:centos7 on GitHub

## R CMD check results
0 errors | 0 warnings | 0 notes
6 changes: 3 additions & 3 deletions man/rspm-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.