-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |