File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN set -x \
1616 make \
1717 openssl \
1818 openssl-dev \
19+ patch \
1920 pcre2-dev \
2021 readline-dev \
2122 tar \
@@ -27,9 +28,10 @@ RUN set -x \
2728 && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
2829 && rm haproxy.tar.gz \
2930# https://github.com/haproxy/haproxy/issues/760 ("ebtree/ebtree.c:43:2: error: unknown type name 'ssize_t'; did you mean 'size_t'?")
30- && ! grep -qF 'unistd.h' /usr/src/haproxy/ebtree/ebtree.c \
31- && awk '$1 == "#include" && !inc { print "#include <unistd.h>"; inc = 1 } { print }' /usr/src/haproxy/ebtree/ebtree.c > ebtree.c \
32- && mv ebtree.c /usr/src/haproxy/ebtree/ebtree.c \
31+ # ebtree patch/fix: https://git.haproxy.org/?p=haproxy-2.0.git;a=commit;h=5df32b51bb0c3c89b503d04cd7d31bdd77932370
32+ && wget -O ebtree.patch 'https://git.haproxy.org/?p=haproxy-2.0.git;a=patch;h=5df32b51bb0c3c89b503d04cd7d31bdd77932370' \
33+ && patch -p1 --input="$PWD/ebtree.patch" --directory=/usr/src/haproxy \
34+ && rm ebtree.patch \
3335 \
3436 && makeOpts=' \
3537 TARGET=linux-glibc \
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN set -x \
1616 make \
1717 openssl \
1818 openssl-dev \
19+ patch \
1920 pcre2-dev \
2021 readline-dev \
2122 tar \
@@ -27,9 +28,10 @@ RUN set -x \
2728 && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
2829 && rm haproxy.tar.gz \
2930# https://github.com/haproxy/haproxy/issues/760 ("ebtree/ebtree.c:43:2: error: unknown type name 'ssize_t'; did you mean 'size_t'?")
30- && ! grep -qF 'unistd.h' /usr/src/haproxy/ebtree/ebtree.c \
31- && awk '$1 == "#include" && !inc { print "#include <unistd.h>"; inc = 1 } { print }' /usr/src/haproxy/ebtree/ebtree.c > ebtree.c \
32- && mv ebtree.c /usr/src/haproxy/ebtree/ebtree.c \
31+ # ebtree patch/fix: https://git.haproxy.org/?p=haproxy-2.0.git;a=commit;h=5df32b51bb0c3c89b503d04cd7d31bdd77932370
32+ && wget -O ebtree.patch 'https://git.haproxy.org/?p=haproxy-2.0.git;a=patch;h=5df32b51bb0c3c89b503d04cd7d31bdd77932370' \
33+ && patch -p1 --input="$PWD/ebtree.patch" --directory=/usr/src/haproxy \
34+ && rm ebtree.patch \
3335 \
3436 && makeOpts=' \
3537 TARGET=linux-musl \
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ for version in "${versions[@]}"; do
7171 else
7272 sedExpr+='
7373 /ebtree/d
74+ /patch/d
7475 '
7576 fi
7677 sed -r " $sedExpr " ' Dockerfile-debian.template' > " $version /Dockerfile"
You can’t perform that action at this time.
0 commit comments