From 58aaa9e3eb5235942d2d387889c5284966a7091c Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Tue, 31 Mar 2020 18:53:35 -0400 Subject: [PATCH] manylinux2014-x64: Add yum libcurl workaround Based on the manylinux2010 workaround. --- manylinux2014-x64/Dockerfile.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manylinux2014-x64/Dockerfile.in b/manylinux2014-x64/Dockerfile.in index 03be359..c440339 100644 --- a/manylinux2014-x64/Dockerfile.in +++ b/manylinux2014-x64/Dockerfile.in @@ -7,6 +7,11 @@ ENV DEFAULT_DOCKCROSS_IMAGE dockcross/manylinux2014-x64 #include "common.docker" +# Override yum to work around the problem with newly built libcurl.so.4 +# https://access.redhat.com/solutions/641093 +RUN echo $'#!/bin/bash\n\ +LD_PRELOAD=/usr/lib64/libcurl.so.4 /usr/bin/yum "$@"' > /usr/local/bin/yum && chmod a+x /usr/local/bin/yum + ENV CROSS_TRIPLE x86_64-linux-gnu ENV CROSS_ROOT /opt/rh/devtoolset-8/root/usr/bin ENV AS=${CROSS_ROOT}/as \