Skip to content

Commit

Permalink
Build static libfuse3
Browse files Browse the repository at this point in the history
With patch for #10
  • Loading branch information
probonopd committed Jul 1, 2023
1 parent 7804775 commit d52ef2f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,21 @@ fi
apk update
apk add alpine-sdk util-linux strace file autoconf automake libtool

# Build static libfuse3 with patch for https://github.com/AppImage/type2-runtime/issues/10
apk add eudev-dev gettext-dev linux-headers meson # From https://git.alpinelinux.org/aports/tree/main/fuse3/APKBUILD
wget -c -q "https://github.com/libfuse/libfuse/releases/download/fuse-3.15.0/fuse-3.15.0.tar.xz"
tar xf fuse-3.*.tar.xz
cd fuse-3.*/
wget "https://github.com/probonopd/libfuse/commit/bb5e23bb6d7ccb3a1f456fd35b716f6c3a9557c4.diff" # FIXME: Store diff locally
patch -p1 < bb5e23bb6d7ccb3a1f456fd35b716f6c3a9557c4.diff
mkdir build
cd build
meson configure --default-library static
ninja install -v
cd ../../

# Build static squashfuse
apk add fuse3-dev fuse3-static zstd-dev zlib-dev zlib-static # fuse-static fuse-dev
apk add zstd-dev zlib-dev zlib-static # fuse3-dev fuse3-static fuse-static fuse-dev
find / -name "libzstd.*" 2>/dev/null || true
wget -c -q "https://github.com/vasi/squashfuse/archive/e51978c.tar.gz"
tar xf e51978c.tar.gz
Expand Down

0 comments on commit d52ef2f

Please sign in to comment.