Skip to content

Commit a524938

Browse files
committed
Fix ssl and yum install problem
test=develop
1 parent d2c9ddb commit a524938

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

tools/manylinux1/build_scripts/build.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ CPYTHON_VERSIONS="3.7.0 3.6.0 3.5.1 2.7.11"
1313

1414
# openssl version to build, with expected sha256 hash of .tar.gz
1515
# archive
16-
OPENSSL_ROOT=openssl-1.0.2l
17-
OPENSSL_HASH=ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c
16+
OPENSSL_ROOT=openssl-1.1.0i
17+
OPENSSL_HASH=ebbfc844a8c8cc0ea5dc10b86c9ce97f401837f3fa08c17b2cdadc118253cf99
1818
EPEL_RPM_HASH=e5ed9ecf22d0c4279e92075a64c757ad2b38049bcf5c16c4f2b75d5f6860dc0d
1919
DEVTOOLS_HASH=a8ebeb4bed624700f727179e6ef771dafe47651131a00a78b342251415646acc
2020
PATCHELF_HASH=d9afdff4baeacfbc64861454f368b7f2c15c44d245293f7587bbf726bfe722fb
@@ -61,7 +61,7 @@ yum -y install bzip2 make git patch unzip bison yasm diffutils \
6161

6262
wget -q https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz && tar xzf cmake-3.5.2.tar.gz && \
6363
cd cmake-3.5.2 && ./bootstrap && \
64-
make -j4 && make install && cd .. && rm cmake-3.5.2.tar.gz
64+
make -j8 && make install && cd .. && rm cmake-3.5.2.tar.gz
6565

6666

6767
# Install newest autoconf
@@ -121,9 +121,8 @@ ln -s $PY35_BIN/auditwheel /usr/local/bin/auditwheel
121121
# final image
122122
yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme \
123123
avahi freetype bitstream-vera-fonts \
124-
${PYTHON_COMPILE_DEPS} > /dev/null 2>&1
125-
yum -y install ${MANYLINUX1_DEPS}
126-
yum -y clean all > /dev/null 2>&1
124+
${PYTHON_COMPILE_DEPS} > /dev/null 2>&1 || true
125+
yum -y install ${MANYLINUX1_DEPS} && yum -y clean all > /dev/null 2>&1 || true
127126
yum list installed
128127
# we don't need libpython*.a, and they're many megabytes
129128
find /opt/_internal -name '*.a' -print0 | xargs -0 rm -f

tools/manylinux1/build_scripts/build_utils.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ function do_cpython_build {
5252

5353
# NOTE --enable-shared for generating libpython shared library needed for
5454
# linking of some of the nupic.core test executables.
55-
CFLAGS="-Wformat" ./configure --prefix=${prefix} --enable-shared $unicode_flags > /dev/null
56-
make -j8 > /dev/null
5755
if [ $(lex_pyver $py_ver) -ge $(lex_pyver 3.7) ]; then
56+
CFLAGS="-Wformat" ./configure --prefix=${prefix} --with-openssl=/usr/local/ssl --enable-shared $unicode_flags > /dev/null
57+
make -j8 > /dev/null
5858
make altinstall > /dev/null
5959
else
60+
CFLAGS="-Wformat" ./configure --prefix=${prefix} --enable-shared $unicode_flags > /dev/null
61+
make -j8 > /dev/null
6062
make install > /dev/null
6163
fi
6264
popd
@@ -68,9 +70,6 @@ function do_cpython_build {
6870
if [ -e ${prefix}/bin/python3 ]; then
6971
ln -s python3 ${prefix}/bin/python
7072
fi
71-
if [ -e ${prefix}/bin/python3.6 ]; then
72-
ln -s python3.6 ${prefix}/bin/python
73-
fi
7473
if [ -e ${prefix}/bin/python3.7 ]; then
7574
ln -s python3.7 ${prefix}/bin/python
7675
fi

0 commit comments

Comments
 (0)