-
Notifications
You must be signed in to change notification settings - Fork 34
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
"unknown action" bad static executable from vips #132
Comments
Thanks for the issue report! The It looks like As you can see from the error output, the staticx bootloader is executing your bundled application ( I will run some tests and come up with a solution. I shouldn't need anything else from you. Thanks! By the way, the reason the binary is smaller is because staticx uses xz to compress the archive of your program and its dependent libraries. The result is a smaller final output size, at the cost of slightly increased startup time (to decompress). This can be disabled with the |
Haha, I forgot this was a thing! I understand why busybox would need it since it's typically installed as a bunch of hardlinks to the single busybox executable, but I don't know why vips would need that.
That is cool and a great feature. I'm guessing staticx executables have a decompressing bootloader? Is this similar to how UPX works? XZ is a good choice, IIRC it's very fast to decompress. |
Yes, and yes. The staticx bootloader finds the embedded archive, and extracts it to a temporary directory. Here is the code in the bootloader that sets up for TAR file extraction and optional xz decompression. #46 added XZ compression, and #3 is where you'll see the research leading up to it. |
I pushed a fix to Let me know if that does or does not fix your issue. If not, please re-open this! |
Installation didn't work:
However, I then just directly installed the wheel you distributed, which did work. |
Holy shit, it works! @JonathonReinhart thank you so much! And, staticx is great.
|
You're welcome! I'm happy to see it working for you. |
I'm not nearly knowledgeable enough to even begin debugging this, so a bug report is the least I can do.
I'm trying to create a static
vips
executable. As you can see, it's quite a beast.staticx
successfully writes a static executable without complaining, but strangely enough it's smaller, and mostly doesn't work:The system's details can be gleaned from here and fully reproduced with:
But if that's too much and you need more details, please let me know.
The text was updated successfully, but these errors were encountered: