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 \
16
16
make \
17
17
openssl \
18
18
openssl-dev \
19
+ patch \
19
20
pcre2-dev \
20
21
readline-dev \
21
22
tar \
@@ -27,9 +28,10 @@ RUN set -x \
27
28
&& tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
28
29
&& rm haproxy.tar.gz \
29
30
# 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 \
33
35
\
34
36
&& makeOpts=' \
35
37
TARGET=linux-glibc \
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN set -x \
16
16
make \
17
17
openssl \
18
18
openssl-dev \
19
+ patch \
19
20
pcre2-dev \
20
21
readline-dev \
21
22
tar \
@@ -27,9 +28,10 @@ RUN set -x \
27
28
&& tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
28
29
&& rm haproxy.tar.gz \
29
30
# 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 \
33
35
\
34
36
&& makeOpts=' \
35
37
TARGET=linux-musl \
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ for version in "${versions[@]}"; do
71
71
else
72
72
sedExpr+='
73
73
/ebtree/d
74
+ /patch/d
74
75
'
75
76
fi
76
77
sed -r " $sedExpr " ' Dockerfile-debian.template' > " $version /Dockerfile"
You can’t perform that action at this time.
0 commit comments