Skip to content

Commit 209becd

Browse files
committed
fix: Pin CMake to 3.24.4 in Docker build for libmysqlclient compatibility
CMake 3.29+ removed support for CMake < 3.5 syntax, breaking libmysqlclient (mariadb-connector-c v3.0.8) builds. Pin to CMake 3.24.4 to maintain backward compatibility while supporting current toolchains.
1 parent df9d7e3 commit 209becd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ml_metadata/tools/docker_build/Dockerfile.manylinux2010

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,13 @@
1616

1717
# This docker image is essentially pypa/manylinux2010 + bazel.
1818
FROM gcr.io/tfx-oss-public/manylinux2014-bazel:bazel-6.5.0
19+
20+
# Install CMake 3.24 for compatibility with older CMake projects (libmysqlclient)
21+
RUN yum remove -y cmake cmake3 && \
22+
curl -L https://github.com/Kitware/CMake/releases/download/v3.24.4/cmake-3.24.4-linux-x86_64.tar.gz | tar -xz -C /opt && \
23+
ln -sf /opt/cmake-3.24.4-linux-x86_64/bin/cmake /usr/local/bin/cmake && \
24+
ln -sf /opt/cmake-3.24.4-linux-x86_64/bin/ctest /usr/local/bin/ctest && \
25+
ln -sf /opt/cmake-3.24.4-linux-x86_64/bin/cpack /usr/local/bin/cpack
26+
1927
WORKDIR /build
2028
CMD ["ml_metadata/tools/docker_build/build_manylinux.sh"]

0 commit comments

Comments
 (0)