Alter default bundled gems #7749
-
Describe the problem as clearly as you canI am working on a native android application that runs Targeting android 10 and above for an android app requires all the necessary executables to be bundled into the app which means even though I can run For example, I can To be precise: I want to know how to alter the default set of bundled gems that come through rubygems into my ruby build. Or maybe please direct me how Please let me know if this needs more clarity. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Adding this for someone else tinkering with compiling ruby from source. The bundled gems are listed in the If the target OS is different, it might be required to patch the sources of the additional gems listed (if they contain native extensions) so that they become compatible for the target OS. |
Beta Was this translation helpful? Give feedback.
Adding this for someone else tinkering with compiling ruby from source.
The bundled gems are listed in the
bundler_gems
plain text file at ruby's source. I was successfully able to patch the file and see the additional gems get bundled.If the target OS is different, it might be required to patch the sources of the additional gems listed (if they contain native extensions) so that they become compatible for the target OS.
rbinstall.rb
can be altered to apply such patches just before the gems is going to be prepared to be bundled. Here's an example.