Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Investigate rtldi and PatchELF for AppImages that bundle "everything" #84
Although not generally recommended, there might be some edge cases in which it might be desirable to bundle all dependencies, not just the ones that cannot be expected to be part of the base system(s).
We need to prevent the loader from loading stuff outside of the bundle.
The loader has hardcoded instructions to load libraries from /lib!
when I patch /lib to ./li, then
Inconsistency detected by ld.so: dl-load.c: 719: _dl_init_paths: Assertion `pelem->dirname == '/'' failed!
Hence we patch these paths to other (empty) absolute paths
Now it no longer loads something from somewhere. I can now actually run a bleeding-edge VLC on a much older base system like this:
Some experimentation in this regard, using the glibc deb package from, e.g., debian sid: