From d4a3f8405c04733dc7ede1a56cd667e3fa6c158b Mon Sep 17 00:00:00 2001 From: pat-s Date: Fri, 13 Jun 2025 14:00:15 +0200 Subject: [PATCH 01/10] chore: build latest --- .crow/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crow/build.yaml b/.crow/build.yaml index 6ea1145..4f53612 100644 --- a/.crow/build.yaml +++ b/.crow/build.yaml @@ -98,7 +98,7 @@ steps: commands: - apk add -q --no-cache curl - curl -s https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/r/r.rb | grep -o 'R-[0-9]*\.[0-9]*\.[0-9]*' | tr -d 'R-' | tr -d '"' | head -n 1 > r-version-to-build.txt - - echo "4.1.3" > r-version-to-build.txt + - echo "4.4.3" > r-version-to-build.txt - cat r-version-to-build.txt backend_options: kubernetes: From 4693b7ab627d6a0a40539df681b239f5e4a1353b Mon Sep 17 00:00:00 2001 From: pat-s Date: Fri, 13 Jun 2025 18:04:47 +0200 Subject: [PATCH 02/10] chore: add renovate config --- renovate.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..818223b --- /dev/null +++ b/renovate.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["local>devxy/renovate-config"], + "automergeType": "branch", + "enabledManagers": ["woodpecker", "custom.regex"], + "customManagers": [ + { + "customType": "regex", + "managerFilePatterns": ["/^\\.crow(?:/[^/]+)?\\.ya?ml$/"], + "matchStrings": [ + "(?\\w+):\\s*(?\\S+)\\s*#\\s*renovate:\\s*datasource=(?\\S+)\\s*depName=(?\\S+)" + ], + "datasourceTemplate": "{{{datasource}}}", + "depNameTemplate": "{{{depName2}}}", + "versioningTemplate": "semver" + } + ] +} From 6d332ec859f0ac05ff816975ceb63db1a165f8e9 Mon Sep 17 00:00:00 2001 From: automation-bot Date: Sat, 14 Jun 2025 00:02:56 +0000 Subject: [PATCH 03/10] chore(deps): update woodpeckerci/plugin-s3 docker tag to v1.3.2 --- .crow/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crow/build.yaml b/.crow/build.yaml index 4f53612..26808d3 100644 --- a/.crow/build.yaml +++ b/.crow/build.yaml @@ -177,7 +177,7 @@ steps: effect: "NoSchedule" - name: Upload to Hetzner S3 - image: woodpeckerci/plugin-s3:1.3.0 + image: woodpeckerci/plugin-s3:1.3.2 pull: true settings: bucket: devxy-r-builds From f869bd86ed521281354b8b84a1a3c5db5ef21d04 Mon Sep 17 00:00:00 2001 From: pat-s Date: Mon, 30 Jun 2025 16:35:46 +0200 Subject: [PATCH 04/10] chore: patch rhel10 build files --- builder/Dockerfile.rhel-10 | 21 ++++++----- builder/package.rhel-10 | 76 ++++++++------------------------------ 2 files changed, 27 insertions(+), 70 deletions(-) diff --git a/builder/Dockerfile.rhel-10 b/builder/Dockerfile.rhel-10 index 53da514..a44bf56 100644 --- a/builder/Dockerfile.rhel-10 +++ b/builder/Dockerfile.rhel-10 @@ -1,4 +1,4 @@ -FROM almalinux:10 +FROM rockylinux/rockylinux:10 ENV OS_IDENTIFIER rhel-10 @@ -59,7 +59,9 @@ RUN curl -LO "https://github.com/goreleaser/nfpm/releases/download/v2.18.1/nfpm_ RUN chmod 0777 /opt -# Configure flags for RHEL 9 that don't use the defaults in build.sh +# Configure flags for RHEL 10 that don't use the defaults in build.sh +# Since RHEL 9 with the R 4.3.0 release, RHEL/Fedora now uses FlexiBLAS as the +# default BLAS/LAPACK, which provides a native BLAS switching mechanism and matches EPEL. ENV CONFIGURE_OPTIONS="\ --enable-R-shlib \ --with-tcltk \ @@ -68,26 +70,25 @@ ENV CONFIGURE_OPTIONS="\ --with-system-valgrind-headers \ --with-tcl-config=/usr/lib64/tclConfig.sh \ --with-tk-config=/usr/lib64/tkConfig.sh \ - --enable-prebuilt-html" + --enable-prebuilt-html \ + --with-blas=flexiblas \ + --with-lapack=flexiblas" -# RHEL 9 doesn't have the inconsolata font, so override the defaults. +# RHEL 10 doesn't have the inconsolata font, so override the defaults. # This may be removed if RHEL ever adds the texlive-inconsolata package from Fedora. # Or check `dnf provides '*/inconsolata.sty'` for a package that provides it. # https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Making-the-manuals ENV R_RD4PDF="times,hyper" # Make sure that patching Java does not break R. -# R's default JAVA_HOME path includes the exact Java version on CentOS/RHEL, which +# R's default JAVA_HOME path includes the exact Java version on RHEL, which # requires users to run `R CMD javareconf` even on minor/patch upgrades. Use the # major version symlink to avoid this. # https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support # https://solutions.posit.co/envs-pkgs/using-rjava/ -ENV JAVA_HOME=/usr/lib/jvm/jre-11-openjdk +ENV JAVA_HOME=/usr/lib/jvm/jre-21-openjdk -# R 3.x requires PCRE2 for Pango support on RHEL 9 -ENV INCLUDE_PCRE2_IN_R_3 yes - -COPY package.rhel-9 /package.sh +COPY package.rhel-10 /package.sh COPY build.sh . COPY patches /patches ENTRYPOINT ./build.sh diff --git a/builder/package.rhel-10 b/builder/package.rhel-10 index 1c3d03b..6c03c69 100644 --- a/builder/package.rhel-10 +++ b/builder/package.rhel-10 @@ -4,67 +4,22 @@ if [[ ! -d /tmp/output/${OS_IDENTIFIER} ]]; then mkdir -p "/tmp/output/${OS_IDENTIFIER}" fi -# R 3.x requires PCRE1. On RHEL 9, R 3.x also requires PCRE2 for Pango support. -pcre_libs='- pcre2-devel' -if [[ "${R_VERSION}" =~ ^3 ]]; then - pcre_libs='- pcre2-devel -- pcre-devel' +# R 4.5.0 and later require libzstd (with headers to link against libR) +zstd_libs='# - libzstd-devel' +if grep -q '^LIBS *=.*[-]lzstd' ${R_INSTALL_PATH}/lib/R/etc/Makeconf; then + zstd_libs='- libzstd-devel' fi -# On RHEL and SUSE, we link R against the internal shared BLAS to make the -# R binaries more portable and allow users to switch BLAS implementations without -# having to recompile R. We default to OpenBLAS, but users may prefer other implementations. -# -# Binary packages built against the shared BLAS are also more portable and may be used -# with the default R distributed by RHEL/SUSE, or other R installations using -# shared BLAS and configured with a different BLAS (such as Microsoft R Open with MKL). -# This is especially important for Posit Package Manager's binary packages. -# -# However, EPEL 9's R now links externally against FlexiBLAS, which provides a -# native BLAS switching mechanism for Fedora/RHEL. Starting with R 4.3.0, we also -# link to external FlexiBLAS for compatibility. -# https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager -# -# On Ubuntu/Debian, we link R against the external BLAS instead (--with-blas/--with-lapack), -# as those distributions use the alternatives system to swap BLAS libraries at runtime. -# The default R distributions on Ubuntu/Debian use the external BLAS, so we do as well -# for portability. -# -# https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Shared-BLAS -if [[ "$("${R_INSTALL_PATH}/bin/R" CMD config BLAS_LIBS)" == "-lflexiblas" ]]; then - blas_lib='flexiblas-devel' - - # Create postremove script to remove empty directories, as nFPM doesn't include them in the RPM files. - cat <> /after-remove.sh - if [ -d ${R_INSTALL_PATH} ]; then - rm -r ${R_INSTALL_PATH} - fi -EOF - - scripts="scripts: - postremove: /after-remove.sh -" -else - blas_lib='openblas-devel' - - # Create post-install script required for OpenBLAS. - cat <> /post-install.sh - mv ${R_INSTALL_PATH}/lib/R/lib/libRblas.so ${R_INSTALL_PATH}/lib/R/lib/libRblas.so.keep - ln -s /usr/lib64/libopenblasp.so ${R_INSTALL_PATH}/lib/R/lib/libRblas.so -EOF - - # Create after-remove script to remove internal BLAS, which won't be cleaned up automatically. - cat <> /after-remove.sh - if [ -d ${R_INSTALL_PATH} ]; then - rm -r ${R_INSTALL_PATH} - fi -EOF - - scripts="scripts: - postinstall: /post-install.sh - postremove: /after-remove.sh -" +# Create postremove script to remove empty directories, as nFPM doesn't include them in the RPM files. +cat <> /after-remove.sh +if [ -d ${R_INSTALL_PATH} ]; then + rm -r ${R_INSTALL_PATH} fi +EOF + +scripts="scripts: + postremove: /after-remove.sh +" if [ "$(arch)" == "aarch64" ]; then echo arm64; else echo amd64; fi > /tmp/arch @@ -91,10 +46,11 @@ depends: - libtiff - libXmu - libXt +${zstd_libs} - make -- ${blas_lib} +- flexiblas-devel - pango -${pcre_libs} +- pcre2-devel - tcl - tk - unzip From 5d937e2cbfbebff651aeb9a85eed6f1445ac6ce7 Mon Sep 17 00:00:00 2001 From: pat-s Date: Mon, 30 Jun 2025 16:54:28 +0200 Subject: [PATCH 05/10] build latest --- .crow/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crow/build.yaml b/.crow/build.yaml index 26808d3..9268122 100644 --- a/.crow/build.yaml +++ b/.crow/build.yaml @@ -98,7 +98,7 @@ steps: commands: - apk add -q --no-cache curl - curl -s https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/r/r.rb | grep -o 'R-[0-9]*\.[0-9]*\.[0-9]*' | tr -d 'R-' | tr -d '"' | head -n 1 > r-version-to-build.txt - - echo "4.4.3" > r-version-to-build.txt + # - echo "4.1.3" > r-version-to-build.txt - cat r-version-to-build.txt backend_options: kubernetes: From b3db015543d70f89a95a0284bb078bd376a51abe Mon Sep 17 00:00:00 2001 From: automation-bot Date: Tue, 1 Jul 2025 00:03:50 +0000 Subject: [PATCH 06/10] chore(deps): update woodpeckerci/plugin-s3 docker tag to v1.4.0 --- .crow/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crow/build.yaml b/.crow/build.yaml index 9268122..940fba3 100644 --- a/.crow/build.yaml +++ b/.crow/build.yaml @@ -177,7 +177,7 @@ steps: effect: "NoSchedule" - name: Upload to Hetzner S3 - image: woodpeckerci/plugin-s3:1.3.2 + image: woodpeckerci/plugin-s3:1.4.0 pull: true settings: bucket: devxy-r-builds From 71e19230a64c0fbf83b8a98223509b4d48e255d5 Mon Sep 17 00:00:00 2001 From: automation-bot Date: Sun, 13 Jul 2025 00:04:35 +0000 Subject: [PATCH 07/10] chore(deps): update woodpeckerci/plugin-s3 docker tag to v1.5.0 --- .crow/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crow/build.yaml b/.crow/build.yaml index 940fba3..554931a 100644 --- a/.crow/build.yaml +++ b/.crow/build.yaml @@ -177,7 +177,7 @@ steps: effect: "NoSchedule" - name: Upload to Hetzner S3 - image: woodpeckerci/plugin-s3:1.4.0 + image: woodpeckerci/plugin-s3:1.5.0 pull: true settings: bucket: devxy-r-builds From 1f55c665221086160610a342c5ffa70aa17028bf Mon Sep 17 00:00:00 2001 From: automation-bot Date: Thu, 24 Jul 2025 00:04:07 +0000 Subject: [PATCH 08/10] chore(deps): update woodpeckerci/plugin-s3 docker tag to v1.5.1 --- .crow/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crow/build.yaml b/.crow/build.yaml index 554931a..dd874ff 100644 --- a/.crow/build.yaml +++ b/.crow/build.yaml @@ -177,7 +177,7 @@ steps: effect: "NoSchedule" - name: Upload to Hetzner S3 - image: woodpeckerci/plugin-s3:1.5.0 + image: woodpeckerci/plugin-s3:1.5.1 pull: true settings: bucket: devxy-r-builds From 5c9b97b5ddfc82c1588ccc77e834de54e8063f2c Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 2 Sep 2025 11:23:00 +0200 Subject: [PATCH 09/10] use reg.devxy.io/proxy_cache --- .crow/build.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.crow/build.yaml b/.crow/build.yaml index dd874ff..9ef5de2 100644 --- a/.crow/build.yaml +++ b/.crow/build.yaml @@ -82,7 +82,7 @@ matrix: steps: # Ensures that we're always using the latest available upstream build chain # - name: Pull upstream - # image: alpine:3.20 + # image: reg.devxy.io/proxy_cache/library/alpine:3.20 # commands: # - apk add -q --no-cache git # - git remote add upstream https://github.com/cynkra/r-builds.git @@ -94,7 +94,7 @@ steps: #. - name: Get latest R version - image: alpine:3.22 + image: reg.devxy.io/proxy_cache/library/alpine:3.22 commands: - apk add -q --no-cache curl - curl -s https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/r/r.rb | grep -o 'R-[0-9]*\.[0-9]*\.[0-9]*' | tr -d 'R-' | tr -d '"' | head -n 1 > r-version-to-build.txt @@ -125,7 +125,7 @@ steps: AWS_SECRET_ACCESS_KEY: from_secret: HETZNER_S3_SECRET_KEY_K3S AWS_ENDPOINT_URL: https://fsn1.your-objectstorage.com - image: alpine:3.22 + image: reg.devxy.io/proxy_cache/library/alpine:3.22 commands: - apk add -q --no-cache aws-cli - | @@ -147,7 +147,7 @@ steps: # ref: https://github.com/woodpecker-ci/woodpecker/discussions/2721 - name: Build - image: alpine:3.22 + image: reg.devxy.io/proxy_cache/library/alpine:3.22 privileged: true environment: DOCKER_HOST: tcp://docker:2375 @@ -177,7 +177,7 @@ steps: effect: "NoSchedule" - name: Upload to Hetzner S3 - image: woodpeckerci/plugin-s3:1.5.1 + image: reg.devxy.io/proxy_cache/woodpeckerci/plugin-s3:1.5.1 pull: true settings: bucket: devxy-r-builds @@ -217,7 +217,7 @@ services: docker: environment: DOCKER_TLS_CERTDIR: "" - image: docker:28-dind + image: reg.devxy.io/proxy_cache/library/docker:28-dind commands: - mkdir -p /tmp/${PLATFORM}/${ARCH} - dockerd --tls=false --mtu 1420 --host=tcp://0.0.0.0:2375 From afe42a15407125e2d6ed16b2c8b20b4c0eb34187 Mon Sep 17 00:00:00 2001 From: automation-bot Date: Wed, 1 Oct 2025 00:07:36 +0000 Subject: [PATCH 10/10] chore(deps): update reg.devxy.io/proxy_cache/woodpeckerci/plugin-s3 docker tag to v1.5.2 --- .crow/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crow/build.yaml b/.crow/build.yaml index 9ef5de2..804828a 100644 --- a/.crow/build.yaml +++ b/.crow/build.yaml @@ -177,7 +177,7 @@ steps: effect: "NoSchedule" - name: Upload to Hetzner S3 - image: reg.devxy.io/proxy_cache/woodpeckerci/plugin-s3:1.5.1 + image: reg.devxy.io/proxy_cache/woodpeckerci/plugin-s3:1.5.2 pull: true settings: bucket: devxy-r-builds