Repository navigation
Release archives ship the C API's libironruby-capi - #236
Conversation
In a UTF-8 locale such as en_GB.UTF-8, sort orders the symbol lists differently from what comm expects (`_Exit`, `StringValue`), comm stops with "file 1 is not in sorted order", and set -e ends the build before the shim is linked. LC_ALL=C makes both use byte order. Checked by running the script under en_GB.UTF-8: it failed before and now links libironruby-capi.so (710 functions, 2443 stubs).
Ruby.csproj ships libironruby-capi next to IronRuby.dll only when Util/build-capi.sh has built it, and release.yml never ran the script: the archives carry the C headers but no shim, so requiring any C extension raises a LoadError. v4.0.5 predates the C API; the next release would have shipped without it all the same. The release job now builds the shim on Linux and Windows (the platforms build-capi.sh supports) before packaging, and on Linux builds a small C extension with mkmf against the unpacked archive and calls it. The check was run locally against an in-place build: mkmf links the extension and it returns 42 and "abab". ruby/spec's optional/capi suite runs all 47 files on that build (1641 examples, 118 failures, 143 errors).
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The release archives have the C API's headers but not its native shim:
Util/build-capi.shnever runs inrelease.yml, andRuby.csprojonly shipslibironruby-capiwhen that script has built it. Requiring any C extension from a release therefore raises a LoadError. (v4.0.5 predates the C API, but the next release would have shipped without it too.)release.yml: buildlibironruby-capion Linux and Windows before packaging. On Linux, build a small C extension with mkmf against the unpacked archive and call it.Util/build-capi.sh:LC_ALL=C. In a UTF-8 locale,sortandcommdisagreed on the order and the script stopped before linking.Checked locally on an in-place build:
optional/capiruns all 47 files: 1641 examples, 118 failures, 143 errors.Context: rubyspec-stats (Largo/rubyspec-stats) uses the latest release. Its capi column can be enabled once a release ships the shim.
Summary by CodeRabbit