# HG changeset patch # User Chris Cannam # Date 1530436549 -3600 # Node ID 61ef30fb141c5d9420bdc22f78700cc7b854f6b7 # Parent 0bef3c4cab62333aeccec87575e20b7c394dcb2c Slightly different tack diff -r 0bef3c4cab62 -r 61ef30fb141c deploy/linux/deploy-appimage.sh --- a/deploy/linux/deploy-appimage.sh Fri Jun 29 20:49:37 2018 +0100 +++ b/deploy/linux/deploy-appimage.sh Sun Jul 01 10:15:49 2018 +0100 @@ -41,31 +41,36 @@ local binary="$1" - for lib in $(ldd "$binary" | egrep '=> (/usr)?(/local)?/lib/' | \ + echo "ldd $binary yields:" + ldd "$binary" + + for lib in $(ldd "$binary" | grep '=> [^ ]*/lib/' | \ sed 's/^.*=> //' | sed 's/ .*$//'); do base=$(basename "$lib") if grep -v '^#' sv-dependency-builds/linux/appimage/excludelist | grep -q "^$base$" ; then -# echo "excluding: $lib" + echo "excluding: $lib" continue fi + + target="$targetdir/usr/lib/$(basename $lib)" - mkdir -p "$targetdir/$(dirname $lib)" + mkdir -p "$(dirname $target)" - if [ ! -f "$targetdir/$lib" ]; then + if [ ! -f "$target" ]; then - cp -Lv "$lib" "$targetdir/$lib" - chmod +x "$targetdir/$lib" + cp -Lv "$lib" "$target" + chmod +x "$target" - # copy e.g. /usr/lib/pulseaudio/libpulsecommon-*.so up a - # level to something in the load path - last_element=$(basename $(dirname "$lib")) - case "$last_element" in - lib) ;; - *-gnu) ;; - *) cp -v "$targetdir/$lib" "$targetdir/$(dirname $(dirname $lib))" - esac +# # copy e.g. /usr/lib/pulseaudio/libpulsecommon-*.so up a +# # level to something in the load path +# last_element=$(basename $(dirname "$lib")) +# case "$last_element" in +# lib) ;; +# *-gnu) ;; +# *) cp -v "$targetdir/$lib" "$targetdir/$(dirname $(dirname $lib))" +# esac add_dependencies "$lib" @@ -74,8 +79,10 @@ } add_dependencies "$program" +add_dependencies "$checker" +add_dependencies "$piper" -cp -v "$targetdir/usr/local/lib/"* "$targetdir/usr/lib/" +#cp -v "$targetdir/usr/local/lib/"* "$targetdir/usr/lib/" qtplugins="gif icns ico jpeg tga tiff wbmp webp cocoa minimal offscreen xcb" qtlibdirs="/usr/lib/x86_64-linux-gnu/qt5 /usr/lib/x86_64-linux-gnu/qt /usr/lib/qt5 /usr/lib/qt" @@ -90,9 +97,10 @@ lib=$(find $libdir/plugins -name libq$plug.so -print 2>/dev/null || true) if [ -n "$lib" ]; then if [ -f "$lib" ]; then - mkdir -p "$targetdir/$(dirname $lib)" - cp -v "$lib" "$targetdir/$lib" - chmod +x "$targetdir/$lib" + target="$targetdir/usr/lib/qt5/plugins/$(basename $lib)" + mkdir -p "$(dirname $target)" + cp -v "$lib" "$target" + chmod +x "$target" add_dependencies "$lib" break fi