Skip to content

Commit 7e3c8e3

Browse files
committed
Fix dependencies in Dockerfiles
1 parent fab2e46 commit 7e3c8e3

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

ci/Dockerfile.bionic-i386

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@ RUN apt-get update && \
66
apt-get install -y \
77
gcc g++ clang make cmake libxpm-dev git libcurl4-openssl-dev libssl-dev wget zlib1g-dev libc6-dev bsdmainutils pkgconf libgcrypt11-dev
88

9+
COPY ./install-gtest.sh /
10+
RUN bash /install-gtest.sh
11+
912
RUN wget https://artifacts.assassinate-you.net/prebuilt-cmake/continuous/cmake-v3.25.2-ubuntu_bionic-i386.tar.gz -O- | \
1013
tar xz -C /usr/local --strip-components=1
1114

1215
COPY libgcrypt.pc /usr/lib/i386-linux-gnu/pkgconfig/libgcrypt.pc
1316
RUN sed -i 's|x86_64|i386|g' /usr/lib/i386-linux-gnu/pkgconfig/libgcrypt.pc
1417

18+
# work around bug in FindCURL.cmake, which does not parse the pkg-config provided protocols and features into lists causing
19+
# the comparison in the loop to yield false negative results
20+
RUN rm /usr/lib/i386-linux-gnu/pkgconfig/libcurl.pc
21+
1522
ARG UID
1623
RUN adduser --system --group --uid "$UID" build
1724
USER build

ci/Dockerfile.bionic-x86_64

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ RUN apt-get update && \
66
apt-get install -y \
77
gcc g++ clang make cmake libxpm-dev git libcurl4-openssl-dev libssl-dev wget zlib1g-dev libc6-dev bsdmainutils pkgconf libgcrypt11-dev
88

9-
RUN wget https://artifacts.assassinate-you.net/prebuilt-cmake/continuous/cmake-v3.25.2-ubuntu_bionic-x86_64.tar.gz -O- | \
9+
COPY ./install-gtest.sh /
10+
RUN bash /install-gtest.sh
11+
12+
RUN wget https://artifacts.assassinate-you.net/prebuilt-cmake/continuous/cmake-v3.20.0-ubuntu_bionic-x86_64.tar.gz -O- | \
1013
tar xz -C /usr/local --strip-components=1
1114

1215
COPY libgcrypt.pc /usr/lib/x86_64-linux-gnu/pkgconfig/libgcrypt.pc
1316

17+
# work around bug in FindCURL.cmake, which does not parse the pkg-config provided protocols and features into lists causing
18+
# the comparison in the loop to yield false negative results
19+
RUN rm /usr/lib/x86_64-linux-gnu/pkgconfig/libcurl.pc
20+
1421
ARG UID
1522
RUN adduser --system --group --uid "$UID" build
1623
USER build

0 commit comments

Comments
 (0)