tAppImage: Copy libusb binary into image - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c3b92aa13a3a205cf55e5dc3bbf22ca804edd499 DIR parent e415c0d93036d351e406be4aaef5ef000703d969 HTML Author: Axel Gembe <derago@gmail.com> Date: Wed, 15 May 2019 19:01:39 +0200 AppImage: Copy libusb binary into image pkg2appimage excludes libusb-1.0.so by default for no good reason: https://github.com/AppImage/pkg2appimage/blob/83483c2971fcaa1cb0c1253acd6c731ef8404381/excludelist#L112 This can cause an issue when the AppImage loads the systems libusb but the systems libusb in turn loads libudev from the AppImage. The kernel ABI for libusb will not be changing so it is safe to bundle it into the AppImage. ----- ttaken from Electron-Cash/Electron-Cash@25d45fdcbfa335d83de876ff16e978a058d17e22 Diffstat: M contrib/build-linux/appimage/build… | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/contrib/build-linux/appimage/build.sh b/contrib/build-linux/appimage/build.sh t@@ -150,6 +150,10 @@ info "finalizing AppDir." mv usr/include.tmp usr/include ) +# copy libusb here because it is on the AppImage excludelist and it can cause problems if we use system libusb +info "Copying libusb" +cp -f /usr/lib/x86_64-linux-gnu/libusb-1.0.so "$APPDIR/usr/lib/libusb-1.0.so" || fail "Could not copy libusb" + info "stripping binaries from debug symbols." # "-R .note.gnu.build-id" also strips the build id