• Mart Raudsepp's avatar
    thumbnail: bind mount /etc/ld.so.cache to the sandbox · f4dcb2f2
    Mart Raudsepp authored
    This is especially important for libstdc++ on distributions that
    don't have it directly in a libdir and the runtime linker doesn't
    look where needed without /etc/ld.so.cache (e.g. if libstdc++ is
    in a GCC per-version subdirectory handled via /etc/ld.so.conf.d/).
    
    If /etc/ld.so.cache is not available, the runtime linker will look
    only at a set of predetermined paths - as seen with LD_DEBUG=libs
    added to the bwrap call with "--setenv LD_DEBUG libs":
    
    find library=libstdc++.so.6 [0]; searching
     search cache=/etc/ld.so.cache
     search path=/lib64:/usr/lib64		(system search path)
      trying file=/lib64/libstdc++.so.6
      trying file=/usr/lib64/libstdc++.so.6
    
    followed by:
    
    /usr/bin/totem-video-thumbnailer: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
    
    If /etc/ld.so.cache is available, it will use that for the paths:
    
    find library=libstdc++.so.6 [0]; searching
     search cache=/etc/ld.so.cache
      trying file=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libstdc++.so.6
    
    By bind mounting just that file out of /etc, we get it to work on
    such a system.
    
    Closes: #81
    f4dcb2f2
Name
Last commit
Last update
..
ChangeLog.pre-git Loading commit data...
default-input-sources.h Loading commit data...
gnome-bg-crossfade.c Loading commit data...
gnome-bg-crossfade.h Loading commit data...
gnome-bg-slide-show.c Loading commit data...
gnome-bg-slide-show.h Loading commit data...
gnome-bg.c Loading commit data...
gnome-bg.h Loading commit data...
gnome-datetime-source.c Loading commit data...
gnome-datetime-source.h Loading commit data...
gnome-desktop-3.0-uninstalled.pc.in Loading commit data...
gnome-desktop-3.0.pc.in Loading commit data...
gnome-desktop-thumbnail-script.c Loading commit data...
gnome-desktop-thumbnail-script.h Loading commit data...
gnome-desktop-thumbnail.c Loading commit data...
gnome-desktop-thumbnail.h Loading commit data...
gnome-idle-monitor.c Loading commit data...
gnome-idle-monitor.h Loading commit data...
gnome-languages.c Loading commit data...
gnome-languages.h Loading commit data...
gnome-pnp-ids.c Loading commit data...
gnome-pnp-ids.h Loading commit data...
gnome-rr-config.c Loading commit data...
gnome-rr-config.h Loading commit data...
gnome-rr-debug.c Loading commit data...
gnome-rr-output-info.c Loading commit data...
gnome-rr-private.h Loading commit data...
gnome-rr.c Loading commit data...
gnome-rr.h Loading commit data...
gnome-wall-clock.c Loading commit data...
gnome-wall-clock.h Loading commit data...
gnome-xkb-info.c Loading commit data...
gnome-xkb-info.h Loading commit data...
idle-monitor.xml Loading commit data...
meson.build Loading commit data...
meta-xrandr-shared.h Loading commit data...
test-desktop-thumbnail.c Loading commit data...
test-idle-monitor.c Loading commit data...
test-languages.c Loading commit data...
test-pnp-ids.c Loading commit data...
test-wall-clock.c Loading commit data...
test-xkb-info.c Loading commit data...
xrandr.xml Loading commit data...