From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:RubyGems gem" |
|---|
| claim | "Gem::Installer#install extracts the files, then calls build_extensions before generating binstubs and writing the spec; Gem::Ext::Builder picks the builder from the extension file name: names matching extconf use ExtConfBuilder, configure uses ConfigureBuilder, Rakefile or mkrf_conf uses RakeBuilder, CMakeLists.txt uses CmakeBuilder, Cargo.toml uses CargoBuilder, anything else raises 'No builder for extension'. Installing with extension building disabled only warns that the extensions were not built." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:RubyGems gem" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "gem install of a gem whose spec lists extensions" |
|---|
| effect | "extconf.rb / configure / rake / cmake / cargo run on the installing machine" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "builder_for case on the extension file name." |
|---|
| repo | "https://github.com/ruby/rubygems" |
|---|
| commit | "f033df93676007227d1ae0bd7326008e6396b3e9" |
|---|
| path | "lib/rubygems/ext/builder.rb" |
|---|
| lines | "198-214" |
|---|
|
| type | "source" |
|---|
| detail | "install sequence (extract_files, build_extensions, generate_bin) and build_extensions with the skip warning." |
|---|
| repo | "https://github.com/ruby/rubygems" |
|---|
| commit | "f033df93676007227d1ae0bd7326008e6396b3e9" |
|---|
| path | "lib/rubygems/installer.rb" |
|---|
| lines | "274-320, 836-860" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Extension builders run at install" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T07:16:15.624Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:28:12.503Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read rubygems lib/rubygems/ext/builder.rb 190-340 and installer.rb 270-310, 832-860 at f033df9: builder_for case order, install order extract_files then build_extensions then generate_bin then write_spec, skip warning when build_extension == false. The 'No builder' error is raised inside build_extension and re-raised via build_error as BuildError." |
|---|
|
|
|---|