devxy/r-builds
Watch
2
0
Fork
You've already forked r-builds
0
Commit graph r-builds/builder/Dockerfile.alpine-320
Author SHA1 Message Date
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.
2mo ago
7913215430
use proxy cache
Some checks failed
ci/crow/manual/build/1 Pipeline was successful
ci/crow/manual/build/2 Pipeline was successful
ci/crow/manual/build/14 Pipeline was successful
ci/crow/manual/build/5 Pipeline was successful
ci/crow/manual/build/3 Pipeline was successful
ci/crow/manual/build/6 Pipeline is running
ci/crow/manual/build/10 Pipeline is running
ci/crow/cron/build/4 Pipeline is running
ci/crow/cron/build/8 Pipeline is running
ci/crow/manual/build/9 Pipeline failed
ci/crow/cron/build/2 Pipeline is running
ci/crow/cron/build/14 Pipeline is running
ci/crow/manual/build/7 Pipeline failed
ci/crow/cron/build/13 Pipeline was successful
ci/crow/cron/build/11 Pipeline was successful
ci/crow/cron/build/5 Pipeline was successful
ci/crow/manual/build/4 Pipeline is running
ci/crow/cron/build/3 Pipeline failed
ci/crow/manual/build/11 Pipeline was successful
ci/crow/manual/build/13 Pipeline was successful
ci/crow/cron/build/1 Pipeline was successful
ci/crow/cron/build/7 Pipeline was successful
ci/crow/cron/build/9 Pipeline was successful
ci/crow/manual/build/8 Pipeline failed
ci/crow/cron/build/12 Pipeline failed
ci/crow/manual/build/12 Pipeline failed
ci/crow/cron/build/6 Pipeline failed
ci/crow/cron/build/10 Pipeline failed
11mo ago
2bd13e016c
refactor: awscli -> s5cmd, add alpine 323
Some checks failed
ci/crow/cron/build/4 Pipeline is pending
ci/crow/cron/build/5 Pipeline is pending
ci/crow/cron/build/6 Pipeline is pending
ci/crow/cron/build/7 Pipeline is pending
ci/crow/cron/build/8 Pipeline is pending
ci/crow/cron/build/9 Pipeline is pending
ci/crow/cron/build/10 Pipeline is pending
ci/crow/cron/build/11 Pipeline is pending
ci/crow/cron/build/12 Pipeline is pending
ci/crow/cron/build/13 Pipeline is pending
ci/crow/cron/build/1 Pipeline was successful
ci/crow/cron/build/14 Pipeline was successful
ci/crow/cron/build/3 Pipeline failed
ci/crow/cron/build/2 Pipeline was successful
11mo ago
b887e4c33d
chore: add libdeflate for alpine builds
1y ago
ac185870ce
add tcl tk support for alpine
2y ago
6564fd499f
add alpine
2y ago