r-builds/builder
Repository files (latest commit first)
Filename Latest commit message Latest commit date
pat-s c144a0c8b9
fix(alpine): build R with cairo, png, jpeg and tiff graphics devices
The Alpine builder images install R-dev but never the graphics headers.
R's configure treats those as optional and does not fail when they are
absent, so the build succeeds and ships an R whose capabilities() reports
cairo, png, jpeg and tiff as FALSE. Installing the runtime libraries on
the target system afterwards cannot bring compiled-out devices back.

Note that --with-x=no was not the cause. R's bitmap and pangocairo checks
run independently of R_X11, and libpng was in fact found. capabilities("png")
needs a device backend, and with X11 off and cairo absent there was none,
which is why all four read FALSE. X11 stays off: these are headless images
and cairo covers png()/jpeg()/tiff()/svg().

- Install pkgconf, cairo-dev, pango-dev, fontconfig-dev, freetype-dev,
  libpng-dev, jpeg-dev, tiff-dev and zlib-dev in every Alpine builder image.
- Pass --with-cairo, --with-libpng, --with-jpeglib and --with-libtiff
  explicitly so the intent is visible next to --with-x=no.
- Assert REQUIRED_CAPABILITIES after make install, so a build that loses a
  device fails instead of being packaged and uploaded. Opt-in per Dockerfile,
  leaving the other platforms untouched.
- Add a FORCE_REBUILD escape hatch to the dedup step. Artifact filenames
  carry only the R version, so the HEAD probe would otherwise keep skipping
  every Alpine version and serving the stale broken binaries.
- Record the three gotchas in CLAUDE.md.

Verified by compiling R 4.5.1 in the patched alpine-322 image: jpeg, png,
tiff and cairo are TRUE, default bitmapType is cairo, and all four devices
render. The guard was exercised in both directions against that build.
2026-09-18 09:02:37 +02:00
..
patches Add Fedora 40 patches for R 3.0.0 - R 4.0.2 2024-05-30 16:42:35 +02:00
build.sh fix(alpine): build R with cairo, png, jpeg and tiff graphics devices 2026-09-18 09:02:37 +02:00
docker-compose.yml feat: add alpine-3.24 build config (#5) 2026-06-12 13:46:11 +00:00
Dockerfile.alpine-320 fix(alpine): build R with cairo, png, jpeg and tiff graphics devices 2026-09-18 09:02:37 +02:00
Dockerfile.alpine-321 fix(alpine): build R with cairo, png, jpeg and tiff graphics devices 2026-09-18 09:02:37 +02:00
Dockerfile.alpine-322 fix(alpine): build R with cairo, png, jpeg and tiff graphics devices 2026-09-18 09:02:37 +02:00
Dockerfile.alpine-323 fix(alpine): build R with cairo, png, jpeg and tiff graphics devices 2026-09-18 09:02:37 +02:00
Dockerfile.alpine-324 fix(alpine): build R with cairo, png, jpeg and tiff graphics devices 2026-09-18 09:02:37 +02:00
Dockerfile.centos-7 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.centos-8 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.debian-10 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.debian-11 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.debian-12 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.fedora-38 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.fedora-39 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.fedora-40 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.opensuse-155 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.rhel-9 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.rhel-10 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.ubuntu-2004 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.ubuntu-2204 fix: install ca-certificates before switching Ubuntu 22.04 sources to HTTPS 2026-05-05 09:45:46 +02:00
Dockerfile.ubuntu-2404 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
Dockerfile.ubuntu-2604 fix: remove libpcre3-dev from Ubuntu 26.04 build, not available in this release 2026-04-24 13:38:48 +02:00
package.alpine-320 add alpine 2024-08-28 00:31:41 +02:00
package.alpine-321 feat: add alpine 3.21, build on AX42 2024-12-06 11:48:57 +01:00
package.alpine-322 chore: build alpine 3.22 2025-06-01 12:22:53 +02:00
package.alpine-323 refactor: awscli -> s5cmd, add alpine 323 2025-12-06 12:33:35 +01:00
package.alpine-324 feat: add alpine-3.24 build config (#5) 2026-06-12 13:46:11 +00:00
package.centos-7 Merge pull request #151 from rstudio/custom-install-path 2023-01-18 12:25:04 -06:00
package.centos-8 Use FlexiBLAS on RHEL 9 for R 4.3.0 and above 2023-04-20 13:59:39 -05:00
package.debian-10 Merge pull request #151 from rstudio/custom-install-path 2023-01-18 12:25:04 -06:00
package.debian-11 Fix libdeflate dep on Debian 11, 12 as well 2024-02-21 10:39:53 +01:00
package.debian-12 Fix libdeflate dep on Debian 11, 12 as well 2024-02-21 10:39:53 +01:00
package.fedora-38 Fix flexiblas 2023-08-02 14:11:14 -04:00
package.fedora-39 Add support for Fedora 39 2024-02-22 15:30:00 +01:00
package.fedora-40 Fedora 40: need util-linux-core for /usr/bin/more 2024-05-12 14:22:12 +02:00
package.opensuse-155 Updated README + added package script 2023-10-02 14:19:30 -07:00
package.rhel-9 Use FlexiBLAS on RHEL 9 for R 4.3.0 and above 2023-04-20 13:59:39 -05:00
package.rhel-10 chore: patch rhel10 build files 2025-06-30 16:35:46 +02:00
package.ubuntu-2004 add libopenblas-dev instead of libopenblas-base to make testpkg happy 2024-05-03 19:57:12 +00:00
package.ubuntu-2204 Fix devel builds for libdeflate 2024-02-19 19:23:32 +01:00
package.ubuntu-2404 Add support for Ubuntu 24.04 2024-04-16 18:23:04 -05:00
package.ubuntu-2604 fix: remove libpcre3-dev from Ubuntu 26.04 build, not available in this release 2026-04-24 13:38:48 +02:00