Skip to content

Commit

Permalink
Add patch for MIPS compilation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Aug 20, 2021
1 parent 350ed43 commit 82c3cf0
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 3 deletions.
13 changes: 12 additions & 1 deletion Dockerfile-builder.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN set -eux; \
linux-headers \
make \
musl-dev \
patch \
tzdata \
;
{{ ) else ( -}}
Expand All @@ -24,6 +25,7 @@ RUN set -eux; \
gcc \
gnupg dirmngr \
make \
patch \
; \
rm -rf /var/lib/apt/lists/*
{{ ) end -}}
Expand All @@ -38,7 +40,6 @@ RUN set -eux; \
cpio \
dpkg-dev \
g++ \
patch \
perl \
python \
rsync \
Expand Down Expand Up @@ -229,6 +230,16 @@ RUN set -eux; \
rm busybox.tar.bz2*

WORKDIR /usr/src/busybox
{{ if .version == "1.34.0" then ( -}}

# https://bugs.busybox.net/show_bug.cgi?id=14156
# https://git.busybox.net/busybox/commit/?id=29b53ef03fc7ddd3ba27898d77a900a2f184aa0d
RUN set -eux; \
curl -fL -o mips.patch 'https://git.busybox.net/busybox/patch/?id=29b53ef03fc7ddd3ba27898d77a900a2f184aa0d'; \
echo '1fb4b9669cd6e86e04408a86483eb6e2dc4e72ea026b07926eaf50bb2349801e *mips.patch' | sha256sum -c -; \
patch --strip=1 --input=mips.patch; \
rm mips.patch
{{ ) else "" end -}}

RUN set -eux; \
\
Expand Down
1 change: 1 addition & 0 deletions stable/glibc/Dockerfile.builder

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions stable/musl/Dockerfile.builder

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion stable/uclibc/Dockerfile.builder

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions unstable/glibc/Dockerfile.builder

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions unstable/musl/Dockerfile.builder

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion unstable/uclibc/Dockerfile.builder

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82c3cf0

Please sign in to comment.