Skip to content

Commit

Permalink
v1.13.6 -> v1.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
actualben committed Nov 1, 2023
1 parent b69451f commit 246a0eb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 18 deletions.
40 changes: 22 additions & 18 deletions wimlib-imagex/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,50 +1,54 @@
FROM alpine:3.13 as builder
FROM alpine:edge as builder

# for updates, see: https://wimlib.net/downloads/index.html
ARG TAG="v1.13.6"
ARG TAG="v1.14.3"

RUN set -x \
&& apk add --no-cache \
RUN set -eux; \
apk add --no-cache \
autoconf \
automake \
file \
fuse-dev \
fuse3-dev \
gcc \
git \
libtool \
libxml2-dev \
linux-headers \
make \
musl-dev \
ntfs-3g-dev \
openssl-dev \
pkgconf \
&& true
;


WORKDIR /build
RUN git clone "git://wimlib.net/wimlib" /build

RUN set -x \
&& git clone "git://wimlib.net/wimlib" . \
&& ( [ -z "$TAG" ] || git checkout "tags/${TAG}" -b "$TAG" ) \
&& ./bootstrap \
&& ( ./configure --prefix=/usr --disable-dependency-tracking || ( cat "config.log"; false ) ) \
&& make install
COPY patch /patch/
RUN set -eux; \
( [ -z "$TAG" ] || git checkout "tags/${TAG}" -b "$TAG" ); \
find /patch -type f -print | xargs -r -t -n 1 git apply; \
./bootstrap; \
( ./configure --prefix=/usr --disable-dependency-tracking || ( cat "config.log"; false ) ); \
make install

FROM alpine:edge
LABEL maintainer="Backplane BV <[email protected]>"

RUN set -x \
&& apk add --no-cache \
fuse \
RUN set -eux; \
apk add --no-cache \
fuse3 \
libxml2 \
ntfs-3g \
xz-libs \
&& true
;

COPY --from=builder /usr/bin/wimlib-imagex /usr/bin/mkwinpeimg /usr/bin/
COPY --from=builder /usr/lib/libwim.so.?? /usr/lib/

RUN set -x \
&& for name in \
RUN set -eux; \
for name in \
wimappend \
wimapply \
wimcapture \
Expand Down
19 changes: 19 additions & 0 deletions wimlib-imagex/patches/musl-renameat2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/src/mount_image.c b/src/mount_image.c
index 4702d60d..0ee04742 100644
--- a/src/mount_image.c
+++ b/src/mount_image.c
@@ -33,6 +33,14 @@

#ifdef WITH_FUSE

+/* musl libc support */
+#ifndef RENAME_NOREPLACE
+ #define RENAME_NOREPLACE 0x1
+#endif
+#ifndef RENAME_EXCHANGE
+ #define RENAME_EXCHANGE 0x2
+#endif
+
#ifdef _WIN32
# error "FUSE mount not supported on Windows! Please configure --without-fuse"
#endif

0 comments on commit 246a0eb

Please sign in to comment.