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 Fedora 41, remove Fedora 38 #240

Merged
merged 3 commits into from
Nov 5, 2024
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PLATFORMS := ubuntu-2004 ubuntu-2204 ubuntu-2404 debian-10 debian-11 debian-12 centos-7 centos-8 rhel-9 opensuse-155 opensuse-156 fedora-38 fedora-39 fedora-40
PLATFORMS := ubuntu-2004 ubuntu-2204 ubuntu-2404 debian-10 debian-11 debian-12 centos-7 centos-8 rhel-9 opensuse-155 opensuse-156 fedora-39 fedora-40 fedora-41
SLS_BINARY ?= ./node_modules/serverless/bin/serverless.js

deps:
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ R binaries are built for the following Linux operating systems:
- openSUSE 15.5
- openSUSE 15.6
- SUSE Linux Enterprise 15 SP5
- Fedora 39, 40
- Fedora 39, 40, 41

Operating systems are supported until their vendor end-of-support dates, which
can be found on the [Posit Platform Support](https://posit.co/about/platform-support/)
Expand Down Expand Up @@ -168,6 +168,9 @@ curl -O https://cdn.posit.co/r/fedora-39/pkgs/R-${R_VERSION}-1-1.x86_64.rpm

# Fedora 40
curl -O https://cdn.posit.co/r/fedora-40/pkgs/R-${R_VERSION}-1-1.x86_64.rpm

# Fedora 41
curl -O https://cdn.posit.co/r/fedora-41/pkgs/R-${R_VERSION}-1-1.x86_64.rpm
```

Then install the package:
Expand Down
8 changes: 4 additions & 4 deletions builder/Dockerfile.fedora-38 → builder/Dockerfile.fedora-41
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM fedora:38
FROM fedora:41

ENV OS_IDENTIFIER fedora-38
ENV OS_IDENTIFIER fedora-41

RUN dnf -y upgrade \
&& dnf -y install dnf-plugins-core \
Expand Down Expand Up @@ -58,7 +58,7 @@ RUN curl -LO "https://github.com/goreleaser/nfpm/releases/download/v2.18.1/nfpm_

RUN chmod 0777 /opt

# Configure flags that don't use the defaults in build.sh
# Configure flags for that don't use the defaults in build.sh
ENV CONFIGURE_OPTIONS="\
--enable-R-shlib \
--with-tcltk \
Expand All @@ -82,7 +82,7 @@ ENV JAVA_HOME=/usr/lib/jvm/jre-11-openjdk
# R 3.x requires PCRE2 for Pango support on RHEL 9
ENV INCLUDE_PCRE2_IN_R_3 yes

COPY package.fedora-38 /package.sh
COPY package.fedora-41 /package.sh
COPY build.sh .
COPY patches /patches
ENTRYPOINT ./build.sh
18 changes: 9 additions & 9 deletions builder/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,39 +131,39 @@ services:
image: r-builds:opensuse-156
volumes:
- ./integration/tmp:/tmp/output
fedora-38:
fedora-39:
command: ./build.sh
environment:
- R_VERSION=${R_VERSION}
- R_INSTALL_PATH=${R_INSTALL_PATH}
- LOCAL_STORE=/tmp/output
build:
context: .
dockerfile: Dockerfile.fedora-38
image: r-builds:fedora-38
dockerfile: Dockerfile.fedora-39
image: r-builds:fedora-39
volumes:
- ./integration/tmp:/tmp/output
fedora-39:
fedora-40:
command: ./build.sh
environment:
- R_VERSION=${R_VERSION}
- R_INSTALL_PATH=${R_INSTALL_PATH}
- LOCAL_STORE=/tmp/output
build:
context: .
dockerfile: Dockerfile.fedora-39
image: r-builds:fedora-39
dockerfile: Dockerfile.fedora-40
image: r-builds:fedora-40
volumes:
- ./integration/tmp:/tmp/output
fedora-40:
fedora-41:
command: ./build.sh
environment:
- R_VERSION=${R_VERSION}
- R_INSTALL_PATH=${R_INSTALL_PATH}
- LOCAL_STORE=/tmp/output
build:
context: .
dockerfile: Dockerfile.fedora-40
image: r-builds:fedora-40
dockerfile: Dockerfile.fedora-41
image: r-builds:fedora-41
volumes:
- ./integration/tmp:/tmp/output
1 change: 1 addition & 0 deletions builder/package.fedora-38 → builder/package.fedora-41
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ ${pcre_libs}
- tcl
- tk
- unzip
- util-linux-core
- which
- xz-devel
- zip
Expand Down
1 change: 1 addition & 0 deletions builder/patches/R-3.0.0-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.0.1-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.0.2-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.0.3-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.1.0-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.1.1-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.1.2-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.1.3-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.2.0-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.2.1-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.2.2-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.2.3-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.2.4-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.2.5-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.3.0-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.3.1-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.3.2-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.3.3-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.4.0-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.4.1-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.4.2-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.4.3-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.4.4-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.5.0-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.5.1-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.5.2-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.5.3-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.6.0-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.6.1-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.6.2-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-3.6.3-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-4.0.0-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-4.0.1-fedora-41.patch
1 change: 1 addition & 0 deletions builder/patches/R-4.0.2-fedora-41.patch
12 changes: 6 additions & 6 deletions serverless-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ rBuildsBatchJobDefinitionOpensuse156:
Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/r-builds:opensuse-156"
Timeout:
AttemptDurationSeconds: 7200
rBuildsBatchJobDefinitionFedora38:
rBuildsBatchJobDefinitionFedora39:
Type: AWS::Batch::JobDefinition
Properties:
Type: container
Expand All @@ -296,10 +296,10 @@ rBuildsBatchJobDefinitionFedora38:
Memory: 4096
JobRoleArn:
"Fn::GetAtt": [ rBuildsEcsTaskIamRole, Arn ]
Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/r-builds:fedora-38"
Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/r-builds:fedora-39"
Timeout:
AttemptDurationSeconds: 7200
rBuildsBatchJobDefinitionFedora39:
rBuildsBatchJobDefinitionFedora40:
Type: AWS::Batch::JobDefinition
Properties:
Type: container
Expand All @@ -310,10 +310,10 @@ rBuildsBatchJobDefinitionFedora39:
Memory: 4096
JobRoleArn:
"Fn::GetAtt": [ rBuildsEcsTaskIamRole, Arn ]
Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/r-builds:fedora-39"
Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/r-builds:fedora-40"
Timeout:
AttemptDurationSeconds: 7200
rBuildsBatchJobDefinitionFedora40:
rBuildsBatchJobDefinitionFedora41:
Type: AWS::Batch::JobDefinition
Properties:
Type: container
Expand All @@ -324,7 +324,7 @@ rBuildsBatchJobDefinitionFedora40:
Memory: 4096
JobRoleArn:
"Fn::GetAtt": [ rBuildsEcsTaskIamRole, Arn ]
Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/r-builds:fedora-40"
Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/r-builds:fedora-41"
Timeout:
AttemptDurationSeconds: 7200

Expand Down
6 changes: 3 additions & 3 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ provider:
Ref: rBuildsBatchJobDefinitionOpensuse155
JOB_DEFINITION_ARN_opensuse_156:
Ref: rBuildsBatchJobDefinitionOpensuse156
JOB_DEFINITION_ARN_fedora_38:
Ref: rBuildsBatchJobDefinitionFedora38
JOB_DEFINITION_ARN_fedora_39:
Ref: rBuildsBatchJobDefinitionFedora39
JOB_DEFINITION_ARN_fedora_40:
Ref: rBuildsBatchJobDefinitionFedora40
SUPPORTED_PLATFORMS: ubuntu-2004,ubuntu-2204,ubuntu-2404,debian-10,debian-11,debian-12,centos-7,centos-8,rhel-9,opensuse-155,opensuse-156,fedora-38,fedora-39,fedora-40
JOB_DEFINITION_ARN_fedora_41:
Ref: rBuildsBatchJobDefinitionFedora41
SUPPORTED_PLATFORMS: ubuntu-2004,ubuntu-2204,ubuntu-2404,debian-10,debian-11,debian-12,centos-7,centos-8,rhel-9,opensuse-155,opensuse-156,fedora-39,fedora-40,fedora-41

functions:
queueBuilds:
Expand Down
16 changes: 8 additions & 8 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ services:
- R_VERSION=${R_VERSION}
volumes:
- ../:/r-builds
fedora-38:
image: fedora:38
command: /r-builds/test/test-yum.sh
environment:
- OS_IDENTIFIER=fedora-38
- R_VERSION=${R_VERSION}
volumes:
- ../:/r-builds
fedora-39:
image: fedora:39
command: /r-builds/test/test-yum.sh
Expand All @@ -113,3 +105,11 @@ services:
- R_VERSION=${R_VERSION}
volumes:
- ../:/r-builds
fedora-41:
image: fedora:41
command: /r-builds/test/test-yum.sh
environment:
- OS_IDENTIFIER=fedora-41
- R_VERSION=${R_VERSION}
volumes:
- ../:/r-builds
2 changes: 1 addition & 1 deletion test/testpkg/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Authors@R: person("Test", "Pkg", email = "test@test", role = c("aut", "cre"))
Description: A test package.
License: MIT
Depends:
R (>= 3.1)
R (>= 3.0)
SystemRequirements: C++11
RoxygenNote: 6.1.1
Encoding: UTF-8
Loading