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
{{ message }}
Repository navigation
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).
changed the title [-]Investigate rtldi for AppImages that bundle "everything"[/-][+]Investigate rtldi and PatchELF for AppImages that bundle "everything"[/+]on Sep 4, 2016
Some experimentation in this regard, using the glibc deb package from, e.g., debian sid:
# This does not work
[me@host ~]$ LD_LIBRARY_PATH=/mnt/usr/lib64/ /mnt/usr/bin/gnome-font-viewer /mnt/usr/bin/gnome-font-viewer: relocation error: /mnt/usr/lib64/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
# This doesn't cut it
[me@host ~]$ LD_LIBRARY_PATH=/mnt/usr/lib64/ '/home/me/Downloads/libc6_2.21-3_amd64/lib/x86_64-linux-gnu/ld-2.21.so' /mnt/usr/bin/gnome-font-viewer /mnt/usr/bin/gnome-font-viewer: relocation error: /mnt/usr/lib64/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
# This doesn't cut it either
[me@host ~]$ LD_LIBRARY_PATH='/home/me/Downloads/libc6_2.21-3_amd64/lib/x86_64-linux-gnu':/mnt/usr/lib64/ /mnt/usr/bin/gnome-font-viewer
/mnt/usr/bin/gnome-font-viewer: relocation error: /home/me/Downloads/libc6_2.21-3_amd64/lib/x86_64-linux-gnu/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
# This works!!!
# On CentOS 7 I can run gnome-font-viewer from Fedora 23
[me@host ~]$ LD_LIBRARY_PATH='/home/me/Downloads/libc6_2.21-3_amd64/lib/x86_64-linux-gnu':/mnt/usr/lib64/ '/home/me/Downloads/libc6_2.21-3_amd64/lib/x86_64-linux-gnu/ld-2.21.so' /mnt/usr/bin/gnome-font-viewer
Activity
probonopd commentedon Sep 4, 2016
Also, check
patchelf --set-interpreter. http://nixos.org/patchelf.htmlMay be even more elegant.
[-]Investigate rtldi for AppImages that bundle "everything"[/-][+]Investigate rtldi and PatchELF for AppImages that bundle "everything"[/+]probonopd commentedon Oct 29, 2016
http://www.trigger.im/fix-spotify-incompatible-libc-after-update-on-debian-gnulinux/
probonopd commentedon Oct 30, 2016
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[0] == '/'' 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:
probonopd commentedon Dec 1, 2016
Some experimentation in this regard, using the glibc deb package from, e.g., debian sid:
probonopd commentedon Feb 7, 2017
https://github.com/matthewbauer/nix-bundle/ creates AppImages that bundle everything, down to
ld-linux.so- but are broken in other ways nix-community/nix-bundle#8probonopd commentedon Jul 23, 2017
Also check https://github.com/lvml/makeaoi, a tool that bundles "everything"
probonopd commentedon Feb 2, 2018
Another option that automates this:
https://github.com/Intoli/exodus#how-it-works