Skip to content
  • NARUSE, Yui's avatar
    f7e9b79f
    merge revision(s) 4959e019: [Backport #19271] · f7e9b79f
    NARUSE, Yui authored
    	common.mk: Do not invoke outdate-bundled-gems by default
    
    	If baseruby is available (and its version is different from one being
    	built) when compiling ruby, tool/outdate-bundled-gems.rb (which is
    	invoked by `make install`) wrongly deletes debug.so and rbs_extension.so
    	in .bundle/extension/*.
    
    	This leads to a broken installation of ruby which lacks the libraries,
    	which may make rubygems show the following warnings (in some additional
    	complex conditions):
    
    	```
    	$ irb
    	Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7.1
    	Ignoring rbs-2.8.2 because its extensions are not built. Try: gem pristine rbs --version 2.8.2
    	irb(main):001:0>
    	```
    
    	According to some committers, tool/outdate-bundled-gems.rb is introduced
    	for fixing a build issue, but the detail is not recorded. The issue
    	seems to occur only when debug gem or rbs gem is updated, so it is
    	difficult to fix the script so soon.
    
    	Tentatively, this change stops invoking the script by default.
    	This should be backported to ruby_3_2.
    
    	Fixes [Bug #19271]
    	---
    	 common.mk | 1 -
    	 1 file changed, 1 deletion(-)
    f7e9b79f
    merge revision(s) 4959e019: [Backport #19271]
    NARUSE, Yui authored
    	common.mk: Do not invoke outdate-bundled-gems by default
    
    	If baseruby is available (and its version is different from one being
    	built) when compiling ruby, tool/outdate-bundled-gems.rb (which is
    	invoked by `make install`) wrongly deletes debug.so and rbs_extension.so
    	in .bundle/extension/*.
    
    	This leads to a broken installation of ruby which lacks the libraries,
    	which may make rubygems show the following warnings (in some additional
    	complex conditions):
    
    	```
    	$ irb
    	Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7.1
    	Ignoring rbs-2.8.2 because its extensions are not built. Try: gem pristine rbs --version 2.8.2
    	irb(main):001:0>
    	```
    
    	According to some committers, tool/outdate-bundled-gems.rb is introduced
    	for fixing a build issue, but the detail is not recorded. The issue
    	seems to occur only when debug gem or rbs gem is updated, so it is
    	difficult to fix the script so soon.
    
    	Tentatively, this change stops invoking the script by default.
    	This should be backported to ruby_3_2.
    
    	Fixes [Bug #19271]
    	---
    	 common.mk | 1 -
    	 1 file changed, 1 deletion(-)
Loading