You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should split out the Ruby that is compiled for Tebako usage into a separate repository. And we should have it pre-built so people who use Tebako can just "download the appropriate compiled Ruby archive" and incorporate into their Tebako image.
The text was updated successfully, but these errors were encountered:
It works the opposite way. Tebako image is incorporated into Ruby binary.
So it is not possible to 'download Ruby', you have to build it during packaging.
Calls to certain OS io functions are replaced with calls to libdwarfs. Using c #define directives
In main function command line parameters are adjusted so that Ruby 'thinks' that it has been called to execute tebako-packaged application entry point script
Ruby build scripts are adjusted to refer to libdwarfs and to include cpp file that embeds tebako image
Ruby build scripts are adjusted to refer to as little shared libraries as possible
We have:
Tebako Ruby source code
Tebako Ruby build scripts
libdwarfs_wr, libdwarfs and a set of other libraries
Cpp file with embedded tebako image. I create a library out of it but it is just to simplify item 2.
The process then runs as follows:
Ruby code is compiled on tebako setup
On tebako press just a couple of files are compiled. However, if I link Ruby binary, build script executes full setup sequence for all native extensions. It implies complex bootstrap procedure that includes linking libruby.a, linking miniruby, extension configuration and rebuild, linking ruby, extension setup, linking ruby once again. This is the way ruby build script works.
We should split out the Ruby that is compiled for Tebako usage into a separate repository. And we should have it pre-built so people who use Tebako can just "download the appropriate compiled Ruby archive" and incorporate into their Tebako image.
The text was updated successfully, but these errors were encountered: