This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Some instructions in the "Using Python on Unix platforms" document do no work on CentOS 7
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: christian.heimes, docs@python, lukasz.langa, miss-islington, pablogsal, zhanpon
Priority: normal Keywords: patch

Created on 2021-09-26 10:58 by zhanpon, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28566 merged zhanpon, 2021-09-26 11:04
PR 28616 merged miss-islington, 2021-09-29 10:55
Messages (7)
msg402657 - (view) Author: Yiyang Zhan (zhanpon) * Date: 2021-09-26 10:58
The instructions in "Custom OpenSSL" section of "Using Python on Unix platforms" do not work on CentOS 7: https://github.com/python/cpython/blob/v3.10.0rc2/Doc/using/unix.rst#custom-openssl.

CPython's ./configure script assumes the OpenSSL's library resides in "$ssldir/lib". This isn't guaranteed with the current instruction, because OpenSSL might create for example lib64 for the .so files. See https://github.com/openssl/openssl/blob/openssl-3.0.0/INSTALL.md#libdir:

> Some build targets have a multilib postfix set in the build configuration. For these targets the default libdir is lib<multilib-postfix>. Please use --libdir=lib to override the libdir if adding the postfix is undesirable.

Therefore it's better to explicitly set --libdir=lib.
msg402846 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-09-29 10:55
New changeset bc4cde40339dd372960f27401d8fdaa4dab0f469 by zhanpon in branch 'main':
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566)
https://github.com/python/cpython/commit/bc4cde40339dd372960f27401d8fdaa4dab0f469
msg402851 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-09-29 11:41
New changeset 02fdd73a19464bafe9e5f98ecd17fd0a634c3f20 by Miss Islington (bot) in branch '3.10':
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
https://github.com/python/cpython/commit/02fdd73a19464bafe9e5f98ecd17fd0a634c3f20
msg402852 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-09-29 11:42
Thanks, Yiyang Zhan! ✨ 🍰 ✨
msg402916 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-09-29 21:50
Thanks! 

The documentation was not up to date for OpenSSL 3.0.0. The default for --libdir was changed late in the development cycle.
msg402932 - (view) Author: Yiyang Zhan (zhanpon) * Date: 2021-09-30 03:24
Thank you for reviewing the pull request 😄
msg403154 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-10-04 19:18
New changeset 63c4d42e6ea68104561c853b065c004b200eba68 by Pablo Galindo (Miss Islington (bot)) in branch '3.10':
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
https://github.com/python/cpython/commit/63c4d42e6ea68104561c853b065c004b200eba68
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89454
2021-10-04 19:18:42pablogsalsetnosy: + pablogsal
messages: + msg403154
2021-09-30 03:24:50zhanponsetmessages: + msg402932
2021-09-29 21:50:24christian.heimessetstatus: open -> closed


messages: + msg402916
nosy: + christian.heimes
2021-09-29 11:42:01lukasz.langasetresolution: fixed
stage: patch review -> resolved
messages: + msg402852
versions: + Python 3.11
2021-09-29 11:41:30lukasz.langasetmessages: + msg402851
2021-09-29 10:55:26lukasz.langasetnosy: + lukasz.langa
messages: + msg402846
2021-09-29 10:55:08miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request26987
2021-09-26 11:04:10zhanponsetkeywords: + patch
stage: patch review
pull_requests: + pull_request26950
2021-09-26 10:58:45zhanponcreate