This repository was archived by the owner on Aug 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
[DO NOT MERGE]Fix OpenSSL 1.1.1k for manywheel/conda/libtorch #711
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,6 @@ FROM base as patchelf | |
ADD ./common/install_patchelf.sh install_patchelf.sh | ||
RUN bash ./install_patchelf.sh && rm install_patchelf.sh && cp $(which patchelf) /patchelf | ||
|
||
FROM base as openssl | ||
# Install openssl | ||
ADD ./common/install_openssl.sh install_openssl.sh | ||
RUN bash ./install_openssl.sh && rm install_openssl.sh | ||
|
||
FROM base as conda | ||
# Install Anaconda | ||
ADD ./common/install_conda.sh install_conda.sh | ||
|
@@ -75,6 +70,11 @@ FROM base as mnist | |
ADD ./common/install_mnist.sh install_mnist.sh | ||
RUN bash ./install_mnist.sh | ||
|
||
FROM base as openssl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I put if after MNIST because MNIST is not available |
||
# Install openssl | ||
ADD ./common/install_openssl.sh install_openssl.sh | ||
RUN bash ./install_openssl.sh && rm install_openssl.sh | ||
|
||
FROM base as all_cuda | ||
COPY --from=cuda9.2 /usr/local/cuda-9.2 /usr/local/cuda-9.2 | ||
COPY --from=cuda10.1 /usr/local/cuda-10.1 /usr/local/cuda-10.1 | ||
|
@@ -97,3 +97,19 @@ RUN chmod o+rw /usr/local | |
RUN touch /.condarc && \ | ||
chmod o+rw /.condarc && \ | ||
chmod -R o+rw /opt/conda | ||
|
||
COPY --from=openssl /usr/local/lib64/libcrypto.so.1.1 /usr/local/lib64/libcrypto.so.1.1 | ||
COPY --from=openssl /usr/local/lib64/libssl.so.1.1 /usr/local/lib64/libssl.so.1.1 | ||
COPY --from=openssl /usr/local/include/openssl/* /usr/local/include/openssl/ | ||
COPY --from=openssl /usr/local/lib64/libcrypto.a /usr/local/lib64/libcrypto.a | ||
COPY --from=openssl /usr/local/lib64/libssl.a /usr/local/lib64/libssl.a | ||
COPY --from=openssl /usr/local/lib64/pkgconfig/libcrypto.pc /usr/local/lib64/pkgconfig/libcrypto.pc | ||
COPY --from=openssl /usr/local/lib64/pkgconfig/libssl.pc /usr/local/lib64/pkgconfig/libssl.pc | ||
COPY --from=openssl /usr/local/lib64/pkgconfig/openssl.pc /usr/local/lib64/pkgconfig/openssl.pc | ||
COPY --from=openssl /usr/local/lib64/engines-1.1/afalg.so /usr/local/lib64/engines-1.1/afalg.so | ||
COPY --from=openssl /usr/local/lib64/engines-1.1/capi.so /usr/local/lib64/engines-1.1/capi.so | ||
COPY --from=openssl /usr/local/lib64/engines-1.1/padlock.so /usr/local/lib64/engines-1.1/padlock.so | ||
COPY --from=openssl /usr/local/bin/openssl /usr/local/bin/openssl | ||
COPY --from=openssl /usr/local/bin/c_rehash /usr/local/bin/c_rehash | ||
RUN ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/local/lib64/libcrypto.so | ||
RUN ln -s /usr/local/lib64/libssl.so.1.1 /usr/local/lib64/libssl.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ set -ex | |
# Python versions to be installed in /opt/$VERSION_NO | ||
CPYTHON_VERSIONS=${CPYTHON_VERSIONS:-"3.6.6 3.7.5 3.8.1 3.9.0"} | ||
|
||
# openssl version to build, with expected sha256 hash of .tar.gz | ||
# archive | ||
OPENSSL_ROOT=openssl-1.1.1k | ||
OPENSSL_HASH=892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5 | ||
DEVTOOLS_HASH=a8ebeb4bed624700f727179e6ef771dafe47651131a00a78b342251415646acc | ||
PATCHELF_HASH=d9afdff4baeacfbc64861454f368b7f2c15c44d245293f7587bbf726bfe722fb | ||
CURL_ROOT=curl-7.49.1 | ||
|
@@ -36,6 +40,10 @@ build_autoconf $AUTOCONF_ROOT $AUTOCONF_HASH | |
autoconf --version | ||
|
||
# Compile the latest Python releases. | ||
# (In order to have a proper SSL module, Python is compiled | ||
# against a recent openssl [see env vars above], which is linked | ||
# statically. We delete openssl afterwards.) | ||
build_openssl $OPENSSL_ROOT $OPENSSL_HASH | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CPython won't build without it:
|
||
mkdir -p /opt/python | ||
build_cpythons $CPYTHON_VERSIONS | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
# Helper utilities for build | ||
|
||
PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python | ||
OPENSSL_DOWNLOAD_URL=https://www.openssl.org/source/ | ||
# Ditto the curl sources | ||
CURL_DOWNLOAD_URL=http://curl.askapache.com/download | ||
|
||
|
@@ -90,8 +91,8 @@ function build_cpythons { | |
|
||
|
||
function do_openssl_build { | ||
./config -d '-Wl,--enable-new-dtags,-rpath,$(LIBRPATH)' > /dev/null | ||
make install > /dev/null | ||
./config no-ssl2 no-shared -fPIC --prefix=/usr/local/ssl > /dev/null | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CPython builds fail if it's not |
||
make install_sw > /dev/null # Only install the OpenSSL software components. | ||
} | ||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need man pages