Skip to content

Commit 6305240

Browse files
committed
Temporarily apply Alpine's patch for process substitution hang
Hopefully upstream will release an updated patchset at some point that also fixes this and we can remove this. Fixes #4
1 parent 81f17ba commit 6305240

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

4.4/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ RUN set -ex; \
7979
rmdir bash-patches; \
8080
fi; \
8181
\
82+
# temporarily apply Alpine's patch to fix process substitution hanging in 4.4
83+
# see https://github.com/tianon/docker-bash/issues/4
84+
# and https://lists.gnu.org/archive/html/bug-bash/2017-12/msg00025.html
85+
# and https://github.com/alpinelinux/aports/commit/3239e62fb1c7968e923016358345a4dcc7e2f87d
86+
wget -O alpine-fix-jobs.patch 'https://github.com/alpinelinux/aports/raw/3239e62fb1c7968e923016358345a4dcc7e2f87d/main/bash/fix-jobs.patch'; \
87+
echo '0e1a1d0f9d1ec90188beb99e5c6c5c92a2baeb26f9d4f147b4c9e0a2b697d2d13ff3210985b8ebf849f916af1cc124f655bd026b28f37d5abd51be7b9672da9a *alpine-fix-jobs.patch' | sha512sum -c -; \
88+
patch --directory=/usr/src/bash --input="$PWD/alpine-fix-jobs.patch" --strip=1; \
89+
rm alpine-fix-jobs.patch; \
90+
\
8291
cd /usr/src/bash; \
8392
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
8493
# update "config.guess" and "config.sub" to get more aggressively inclusive architecture support

0 commit comments

Comments
 (0)