@@ -33,8 +33,13 @@ MANYLINUX2010_DEPS="glibc-devel libstdc++-devel glib2-devel libX11-devel libXext
33
33
# Get build utilities
34
34
source $MY_DIR /build_utils.sh
35
35
36
- # See https://unix.stackexchange.com/questions/41784/can-yum-express-a-preference-for-x86-64-over-i386-packages
37
- echo " multilib_policy=best" >> /etc/yum.conf
36
+ # Prerequisite for architecture
37
+ case $AUDITWHEEL_ARCH in
38
+ x86_64)
39
+ # See https://unix.stackexchange.com/questions/41784/can-yum-express-a-preference-for-x86-64-over-i386-packages
40
+ echo " multilib_policy=best" >> /etc/yum.conf
41
+ ;;
42
+ esac
38
43
39
44
# https://hub.docker.com/_/centos/
40
45
# "Additionally, images with minor version tags that correspond to install
@@ -46,19 +51,42 @@ echo "multilib_policy=best" >> /etc/yum.conf
46
51
# Decided not to clean at this point: https://github.com/pypa/manylinux/pull/129
47
52
yum -y update
48
53
49
- # Software collection (for devtoolset-8) and EPEL support (for cmake28 & yasm)
50
- yum -y install centos-release-scl https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
54
+ # EPEL support (for cmake28 & yasm)
55
+ yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
56
+
57
+ case $AUDITWHEEL_ARCH in
58
+ x86_64)
59
+ # Install devtoolset-8
60
+ yum -y install centos-release-scl
61
+ yum -y install \
62
+ devtoolset-8-binutils \
63
+ devtoolset-8-gcc \
64
+ devtoolset-8-gcc-c++ \
65
+ devtoolset-8-gcc-gfortran \
66
+ ;;
67
+ i686)
68
+ # Install devtoolset-7 (binutils, gcc, gcc-c++, gcc-gfortran)
69
+ devtoolset7s=(
70
+ " devtoolset-7-runtime-7.1-4.el6.i686.rpm"
71
+ " devtoolset-7-binutils-2.28-11.el6.i686.rpm"
72
+ " devtoolset-7-gcc-7.3.1-5.10.el6.i686.rpm"
73
+ " devtoolset-7-libstdc++-devel-7.3.1-5.10.el6.i686.rpm"
74
+ " devtoolset-7-gcc-c++-7.3.1-5.10.el6.i686.rpm"
75
+ " devtoolset-7-libquadmath-devel-7.3.1-5.10.el6.i686.rpm"
76
+ " devtoolset-7-gcc-gfortran-7.3.1-5.10.el6.i686.rpm"
77
+ )
78
+ for rpm in " ${devtoolset7s[@]} " ; do
79
+ yum install -y " https://www.repo.cloudlinux.com/cloudlinux/6.10/sclo/devtoolset-7/i386/$rpm "
80
+ done
81
+ ;;
82
+ esac
51
83
52
84
# Development tools and libraries
53
85
yum -y install \
54
86
automake \
55
87
bison \
56
88
bzip2 \
57
89
cmake28 \
58
- devtoolset-8-binutils \
59
- devtoolset-8-gcc \
60
- devtoolset-8-gcc-c++ \
61
- devtoolset-8-gcc-gfortran \
62
90
diffutils \
63
91
gettext \
64
92
file \
@@ -183,9 +211,9 @@ find /opt/_internal -depth \
183
211
# Fix libc headers to remain compatible with C99 compilers.
184
212
find /usr/include/ -type f -exec sed -i ' s/\bextern _*inline_*\b/extern __inline __attribute__ ((__gnu_inline__))/g' {} +
185
213
186
- # remove useless things that have been installed by devtoolset-8
187
- rm -rf /opt/rh/devtoolset-8/root /usr/share/man
188
- find /opt/rh/devtoolset-8/root /usr/share/locale -mindepth 1 -maxdepth 1 -not \( -name ' en*' -or -name ' locale.alias' \) | xargs rm -rf
214
+ # remove useless things that have been installed by devtoolset
215
+ rm -rf $DEVTOOLSET_ROOTPATH /usr/share/man
216
+ find $DEVTOOLSET_ROOTPATH /usr/share/locale -mindepth 1 -maxdepth 1 -not \( -name ' en*' -or -name ' locale.alias' \) | xargs rm -rf
189
217
rm -rf /usr/share/backgrounds
190
218
# if we updated glibc, we need to strip locales again...
191
219
localedef --list-archive | grep -v -i ^en_US.utf8 | xargs localedef --delete-from-archive
@@ -194,4 +222,3 @@ build-locale-archive
194
222
find /usr/share/locale -mindepth 1 -maxdepth 1 -not \( -name ' en*' -or -name ' locale.alias' \) | xargs rm -rf
195
223
find /usr/local/share/locale -mindepth 1 -maxdepth 1 -not \( -name ' en*' -or -name ' locale.alias' \) | xargs rm -rf
196
224
rm -rf /usr/local/share/man
197
-
0 commit comments