-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug option not to delete ruby binaries from memfs/bin #231
Comments
I'm trying to debug several broken tebako builds and I find it very confusing that there's no |
There is an instance of Ruby that goes to bin/ruby. It is used to deploy the solution to be packaged. Tebako image is Ruby on its own. It is patched to use memfs and runs the packaged solution. |
Interesting. What source could should I read to understand this? Is it the tebako-runtime gem?
If I’m understanding what you’re saying, the compilation itself is Ruby, but patched to load everything from the dwarfs image that’s also somehow packed into the Ruby compilation?
A link to the file where this happens would be helpful for me to learn how this works.
…On Jan 14, 2025 at 14:00 -0800, Maxim Samsonov ***@***.***>, wrote:
There is an instance of Ruby that goes to bin/ruby. It is used to deploy the solution to be packaged.
The I delete it because this instance is not aware of memory filesystem
Tebako image is Ruby on its own. It is patched to use memfs and runs the packaged solution.
If you can share you project I will be happy to look at the issues
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
CMakeLists.txt defines packaging sequence First comes the patch that is applied befor Ruby build
There is an intermediate patch. I forgot why we needed it, but this one is small
After Ruby build there is
This command does three things
When On Windows there are some additional complications because Windows module does not have its own name and is identified by file name. Practically it means that native extensions that link back to In the very end there is finalize script
which strips debug information, renames and moves tebako package as applicable |
To make it easier consider this procedure bootstrap of as cross-platform toolchain:
|
(this is low-priority feature to support future development)
Add debug option not to delete ruby binaries from memfs/bin.
If there is a major change in deployment code it will very handy to have ruby binaries in there
The text was updated successfully, but these errors were encountered: