commit b3c0231b2b32b27cd4dbb417d0e400f0a72aac4b parent 5f4162deaa20c5415ebee3844a28575c08275a21 Author: SomberNight <somber.night@protonmail.com> Date: Tue, 24 Dec 2019 03:30:26 +0100 appimage build: add notes re investigating reproducibility failure Diffstat:
M | contrib/build-linux/appimage/README.md | | | 17 | +++++++++++++++++ |
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/contrib/build-linux/appimage/README.md b/contrib/build-linux/appimage/README.md @@ -47,3 +47,20 @@ see [issue #5159](https://github.com/spesmilo/electrum/issues/5159). ### How can I see what is included in the AppImage? Execute the binary as follows: `./electrum*.AppImage --appimage-extract` + +### How to investigate diff between binaries if reproducibility fails? +``` +cd dist/ +./electrum-*-x86_64.AppImage1 --appimage-extract +mv squashfs-root/ squashfs-root1/ +./electrum-*-x86_64.AppImage2 --appimage-extract +mv squashfs-root/ squashfs-root2/ +$(cd squashfs-root1; find -type f -exec sha256sum '{}' \; > ./../sha256sum1) +$(cd squashfs-root2; find -type f -exec sha256sum '{}' \; > ./../sha256sum2) +diff sha256sum1 sha256sum2 > d +cat d +``` + +Useful binary comparison tools: +- vbindiff +- diffoscope