mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 18:05:58 -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>
22 lines
676 B
Plaintext
22 lines
676 B
Plaintext
FROM registry.fedoraproject.org/fedora:latest
|
|
WORKDIR /build
|
|
RUN dnf update -y && \
|
|
dnf install -y git make automake autoconf gcc glibc-static meson ninja-build clang
|
|
|
|
RUN git clone https://github.com/libfuse/libfuse -b fuse-3.16.2 && \
|
|
cd libfuse && \
|
|
mkdir build && \
|
|
cd build && \
|
|
LDFLAGS="-lpthread" meson --prefix /usr -D default_library=static .. && \
|
|
ninja && \
|
|
ninja install
|
|
|
|
RUN git clone https://github.com/containers/fuse-overlayfs && \
|
|
cd fuse-overlayfs && \
|
|
sh autogen.sh && \
|
|
LIBS="-ldl" LDFLAGS="-static" ./configure --prefix /usr && \
|
|
make && \
|
|
make install
|
|
USER 1000
|
|
ENTRYPOINT ["/usr/bin/fuse-overlayfs","-f"]
|