-
Notifications
You must be signed in to change notification settings - Fork 1
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
Develop libdwarfs (like libsquashfs) that will allow to use dwarfs without fuse #1
Comments
Issues to be resolved in order to apply libdwarfs for tebako ruby packager
|
@maxirmx Will a structure like this work? Typical FUSETebako with internal and external image redirection |
It will work. |
What we have as of Sept 25th 2021: We have it because the project started with tamatebako/tebako#2 |
@ronaldtse we already have libdwarfs as explained above. This new libray will be libdwarfs wrapper that will provide inode <-> fd description. I believe it requires some other name. In ruby packer they just copy-paste files from squashFS but I do no believe it makes any sence. Also the idea with glibc redirector contradicts your requirement to have statically lined single binary. Both requirement can be met but not together. |
I understand the potential contradiction. The goal is to have a single binary wrapping that allows a Ruby program with its dependencies to run, so it's not really about static / dynamic. If a dynamically compiled Ruby is linked with other dependencies wrapped within a Tebako package, to the user they are self-contained and hence achieving what we need. |
My only concern is that it requires the FUSE kernel module to be loaded, by default Linux and Macs don't have that enabled. So it's just the next step to also move that portion into user-space. |
To access dwarFS image ruby needs glibc shared library that you want to place inside dwarFS image. This does not seem possible |
It is possible to eliminate FUSE dependency. I can patch ruby in the same way ruby-packer does. |
Patching the Ruby interpreter is acceptable. Right now we already have a reasonable way of getting things working by:
I was wondering whether we can "insert" a layer between the Ruby interpreter and its file reading functions. |
We will. It is called "ANewLibrary" in my diagram.
|
What are the considerations for better / more extensible for the future? |
No opinion yet. Both involve some unconventional patching. |
The list of C functions that shall be supported for Ruby packaging: #3 |
No description provided.
The text was updated successfully, but these errors were encountered: