Skip to content

Document required fuse dep/build instructions & fix it to work with fuse3-dev package on alpine

Tried to build this code on alpine:edge container (disorderfs not packaged in alpine), it worked with: (build by: podman build --rm -t disorderfs -f Containerfile)

Containerfile:

FROM alpine:edge

RUN set -ex; \
    apk update; \
    apk add --no-cache \
        make \
        g++ \
        fuse-dev; \
    adduser -D appuser;

USER appuser

RUN set -ex; \
    cd /home/appuser/; \
    wget https://salsa.debian.org/reproducible-builds/disorderfs/-/archive/master/disorderfs-master.zip; \
    unzip disorderfs-master.zip; \
    rm disorderfs-master.zip; \
    cd disorderfs-master; \
    make;
    
WORKDIR /home/appuser/disorderfs-master/

but it will fail if fuse3-dev installed instead of fuse-dev (which for some reason I found first when looking for package that contains fuse) with error:

disorderfs.cpp:26:10: fatal error: fuse.h: No such file or directory 26 | #include <fuse.h>

The file fuse.h will just be in other location at: /usr/include/fuse3/fuse.h

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information