An interpreter of object-oriented scripting language
Go to file
Jarek Prokop b7b5473796 Define compaction methods as rb_f_notimplement on unsupported platforms.
The patch implements the methods as rb_f_notimplement.
To test for compaction users can now use `GC.respond_to?(:compact)`.

The upstream patch relies on the macro `GC_COMPACTION_SUPPORTED`
that is defined when the `__wasi__` is false. The define is defined by
an arch conditional in the specfile, which is not optimal but works in our case.
663833b08f
https://bugs.ruby-lang.org/issues/18829

This also requires regenerating the gc.rbinc and miniprelude.c
since the patch touches gc.rb. This patch is available in
ruby-3.2.0-define-unsupported-gc-compaction-methods_generated-files.patch.

To regenerate the gc.rbinc and miniprelude.c files patch:
~~~
tar -Jxvf ./ruby-3.1.2.tar.xz
git clone https://github.com/ruby/ruby.git
cd ruby && git checkout v3_1_2
patch -p1 < ../ruby-3.2.0-define-unsupported-gc-compaction-methods-as-rb_f_notimplement.patch
./autogen.sh && ./configure
make gc.rbinc miniprelude.c
cd ..
diff -u {ruby-3.1.2,ruby}/gc.rbinc > ruby-3.2.0-define-unsupported-gc-compaction-methods_generated-files.patch
diff -u {ruby-3.1.2,ruby}/miniprelude.c >> ruby-3.2.0-define-unsupported-gc-compaction-methods_generated-files.patch
~~~

Uptream bug: https://bugs.ruby-lang.org/issues/18779
Upstream PR: https://github.com/ruby/ruby/pull/5934
2022-06-14 12:59:25 +02:00
.gitignore Upgrade to Ruby 3.0.0. 2021-01-04 16:42:55 +01:00
libruby.stp Add TapSet for Ruby. 2013-02-22 14:17:04 +01:00
macros.ruby Add %{ruby_default_filter} macro. 2013-04-30 14:42:13 +02:00
macros.rubygems Pass ldflags to gem install 2021-05-31 10:25:26 +00:00
operating_system.rb Fix: return default path with nonexistent home dir 2018-10-23 13:12:19 +02:00
ruby-1.9.3-mkmf-verbose.patch Upgrade to Ruby 3.1.0. 2022-01-26 09:54:13 +01:00
ruby-2.1.0-always-use-i386.patch Upgrade to Ruby 3.1.0. 2022-01-26 09:54:13 +01:00
ruby-2.1.0-custom-rubygems-location.patch Upgrade to Ruby 3.1.0. 2022-01-26 09:54:13 +01:00
ruby-2.1.0-Enable-configuration-of-archlibdir.patch Upgrade to Ruby 3.1.0. 2022-01-26 09:54:13 +01:00
ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch Upgrade to Ruby 3.1.0. 2022-01-26 09:54:13 +01:00
ruby-2.3.0-ruby_version.patch Upgrade to Ruby 3.1.0. 2022-01-26 09:54:13 +01:00
ruby-2.7.0-Initialize-ABRT-hook.patch Upgrade to Ruby 3.1.0. 2022-01-26 09:54:13 +01:00
ruby-2.7.1-Timeout-the-test_bug_reporter_add-witout-raising-err.patch Upgrade to Ruby 3.1.0. 2022-01-26 09:54:13 +01:00
ruby-3.1.0-Don-t-query-RubyVM-FrozenCore-for-class-path.patch Prevent segfaults running with SystemTap. 2022-02-10 14:14:12 +01:00
ruby-3.2.0-Build-extension-libraries-in-bundled-gems.patch Use upstream patch for correct build of gem extensions. 2022-04-14 13:50:23 +02:00
ruby-3.2.0-define-unsupported-gc-compaction-methods_generated-files.patch Define compaction methods as rb_f_notimplement on unsupported platforms. 2022-06-14 12:59:25 +02:00
ruby-3.2.0-define-unsupported-gc-compaction-methods-as-rb_f_notimplement.patch Define compaction methods as rb_f_notimplement on unsupported platforms. 2022-06-14 12:59:25 +02:00
ruby-bundler-2.4.0-bundle-update-bundler-test-in-ruby.patch Add Bundler tests. 2022-03-22 19:10:01 +01:00
ruby-exercise.stp Add missing ruby-exercise.stp file. 2013-02-22 14:17:53 +01:00
ruby.rpmlintrc ruby.rpmlintrc: Add a filter for "E: shared-lib-without-dependency-information". 2022-03-15 23:15:53 +01:00
ruby.spec Define compaction methods as rb_f_notimplement on unsupported platforms. 2022-06-14 12:59:25 +02:00
rubygems.attr Add conflicts RPM generator. 2018-02-13 13:50:15 +01:00
rubygems.con Add conflicts RPM generator. 2018-02-13 13:50:15 +01:00
rubygems.prov Upgrade to Ruby 2.6.0. 2019-01-17 08:31:01 +01:00
rubygems.req Extract composition of dependecy strings into helper. 2019-01-24 10:38:43 +01:00
sources Upgrade to Ruby 3.1.2. 2022-04-14 13:50:23 +02:00
test_abrt.rb Move the ABRT hook test into separate file. 2015-12-13 19:36:58 +01:00
test_systemtap.rb Upgrade to Ruby 2.4.0. 2017-01-09 15:58:21 +01:00