mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 09:55:57 -04:00

Building the current master branch fails with: #8 4.712 ninja: job failed: cc -Ilib/libfuse3.a.p -Ilib -I../lib -Iinclude -I../include -I. -I.. -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_REENTRANT -DHAVE_LIBFUSE_PRIVATE_CONFIG_H -Wno-sign-compare -D_FILE_OFFSET_BITS=64 -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -fno-strict-aliasing -Wno-unused-result -DHAVE_SYMVER_ATTRIBUTE -fPIC -pthread -DFUSE_USE_VERSION=317 '-DFUSERMOUNT_DIR="/usr/bin"' -MD -MQ lib/libfuse3.a.p/fuse_signals.c.o -MF lib/libfuse3.a.p/fuse_signals.c.o.d -o lib/libfuse3.a.p/fuse_signals.c.o -c ../lib/fuse_signals.c #8 4.713 ../lib/fuse_signals.c:19:10: fatal error: execinfo.h: No such file or directory #8 4.713 19 | #include <execinfo.h> #8 4.713 | ^~~~~~~~~~~~ #8 4.713 compilation terminated. #8 13.65 ninja: subcommand failed Use the latest stable version, which is 3.16.2 Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
24 lines
681 B
Plaintext
24 lines
681 B
Plaintext
FROM alpine
|
|
WORKDIR /build
|
|
RUN apk add git make gcc libc-dev musl-dev glib-static gettext eudev-dev \
|
|
linux-headers automake autoconf cmake meson ninja clang go-md2man
|
|
|
|
RUN git clone https://github.com/libfuse/libfuse -b fuse-3.16.2 && \
|
|
cd libfuse && \
|
|
mkdir build && \
|
|
cd build && \
|
|
LDFLAGS="-lpthread -s -w -static" meson --prefix /usr -D default_library=static .. && \
|
|
ninja && \
|
|
ninja install
|
|
|
|
COPY . /build/fuse-overlayfs
|
|
RUN cd fuse-overlayfs && \
|
|
./autogen.sh && \
|
|
LIBS="-ldl" LDFLAGS="-s -w -static" ./configure --prefix /usr && \
|
|
make clean && \
|
|
make && \
|
|
make install
|
|
|
|
USER nobody
|
|
ENTRYPOINT ["/usr/bin/fuse-overlayfs","-f"]
|