From f0fff3c3c4b1281a1ce90c93ee67ce7440c9b35a Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Thu, 19 Dec 2019 15:41:31 -0800 Subject: [PATCH] Fixed yum error --- manylinux2010-x64/Dockerfile.in | 5 +++++ manylinux2010-x86/Dockerfile.in | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/manylinux2010-x64/Dockerfile.in b/manylinux2010-x64/Dockerfile.in index ce6841a..a92cbea 100644 --- a/manylinux2010-x64/Dockerfile.in +++ b/manylinux2010-x64/Dockerfile.in @@ -7,6 +7,11 @@ ENV DEFAULT_DOCKCROSS_IMAGE dockcross/manylinux2010-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 \ diff --git a/manylinux2010-x86/Dockerfile.in b/manylinux2010-x86/Dockerfile.in index b420bf5..9bb7bed 100644 --- a/manylinux2010-x86/Dockerfile.in +++ b/manylinux2010-x86/Dockerfile.in @@ -7,6 +7,11 @@ ENV DEFAULT_DOCKCROSS_IMAGE dockcross/manylinux2010-x86 #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/lib/libcurl.so.4 /usr/bin/yum "$@"' > /usr/local/bin/yum && chmod a+x /usr/local/bin/yum + ENV CROSS_TRIPLE i686-linux-gnu ENV CROSS_ROOT /opt/rh/devtoolset-7/root/usr/bin ENV AS=${CROSS_ROOT}/as \