From 0f27394f23fb6f0c2a0bd564454898c567f1de88 Mon Sep 17 00:00:00 2001 From: YellowJacketLinux Date: Sun, 6 Oct 2024 09:06:54 -0700 Subject: [PATCH] Disable OpenSSL in Python --- CH8Build/CH08-Master2.sh | 16 ++++++++++++++++ CH8Build/CH08.50-python.sh | 8 -------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/CH8Build/CH08-Master2.sh b/CH8Build/CH08-Master2.sh index d817bbc..402bf5d 100644 --- a/CH8Build/CH08-Master2.sh +++ b/CH8Build/CH08-Master2.sh @@ -152,6 +152,14 @@ else sleep 3 fi +# Disable OpenSSL +pushd /usr/include +mv openssl dis-openssl +popd +pushd /usr/lib/pkgconfig +mv libssl.pc dis-libssl.pc +popd + /bin/bash CH08.50-python.sh if [ $? -ne 0 ]; then @@ -162,6 +170,14 @@ else sleep 3 fi +# re-enable OpenSSL +pushd /usr/include +mv dis-openssl openssl +popd +pushd /usr/lib/pkgconfig +mv dis-libssl.pc libssl.pc +popd + /bin/bash CH08.51-flit-core.sh if [ $? -ne 0 ]; then diff --git a/CH8Build/CH08.50-python.sh b/CH8Build/CH08.50-python.sh index 0917746..d665a89 100644 --- a/CH8Build/CH08.50-python.sh +++ b/CH8Build/CH08.50-python.sh @@ -12,17 +12,9 @@ tar -Jxf ${python_tarball} cd Python-${python_version} -# if configure switch doesn't work, try: -#sed -i'' -e '1i\ -##error' ./Modules/_ssl.c -#sed -i'' -e '1i\ -##error' ./Modules/_hashopenssl.c - - ./configure --prefix=/usr \ --enable-shared \ --with-system-expat \ - --disable-ssl \ --enable-optimizations make