Commit 7cf51b5
committed
common.mk: extract bundled gems before configuring extensions
`template/configure-ext.mk.tmpl` discovers bundled-gem C extensions
via `Dir.glob(".bundle/gems/**/extconf.rb")` when `ext/configure-ext.mk`
is regenerated. Without an explicit dependency, `extract-gems` had no
guarantee of running first, so on a clean build the glob returned
nothing and `build-ext` never saw `rbs`.
As a result, `make html` failed with `Gem::MissingSpecError: Could
not find 'rbs' (>= 4.0.0)` once the rbs-integrated `rdoc` SHA landed
in `gems/bundled_gems` (ruby#16940): the `rbs` gemspec, extension binary,
and `gem.build_complete` marker were all absent from `.bundle/`.
Add `extract-gems` as a prereq of `ext/configure-ext.mk`, gated on
`HAVE_BASERUBY` to match the rest of the bundled-gems pipeline. The
existing per-extension Makefile chain (`all: install` →
`install-so install-rb`) then produces the `.so`, build_complete
marker, and the spec copy in `.bundle/specifications/`.
Fixes the `master` matrix of the ruby/actions
"Make HTML for docs.r-l.o/en/" workflow.1 parent 4c3de1a commit 7cf51b5
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
| 350 | + | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| |||
0 commit comments