Skip to content

Commit 4375313

Browse files
authored
Merge pull request #128 from infosiftr/apply-canonical-backported-patch
Apply the canonical backported ebtree patch from upstream
2 parents 9081978 + 461dcbf commit 4375313

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

2.0/alpine/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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 \

Dockerfile-alpine.template

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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 \

update.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)