Commit 409b88d
committed
Fix race condition between linking ruby and update-default-gemspecs
`yes-update-default-gemspecs` uses `$(XRUBY)` which execs the ruby
binary, but only depended on `main` (extensions and encodings).
When `make runirb` runs with parallel jobs, the linker may still be
writing the ruby binary while `update-default-gemspecs` tries to
exec it, causing `Errno::EACCES` (Permission denied).
Add `$(PROGRAM)` as a dependency so the binary is fully linked
before attempting to execute it.
This is to prevent CI from randomly failing on the runirb step, e.g.
https://github.com/ruby/ruby/actions/runs/23921136182/job/69767485157?pr=166481 parent b2e032d commit 409b88d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1578 | 1578 | | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | | - | |
| 1581 | + | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
| |||
0 commit comments