mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-95957: Add instructions for Tcl/Tk and OpenSSL on RHEL/CentOS 7 (#95964)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
bfc2028df0
commit
ab4d72954f
6 changed files with 46 additions and 6 deletions
|
|
@ -0,0 +1,2 @@
|
|||
What's New 3.11 now has instructions for how to provide compiler and
|
||||
linker flags for Tcl/Tk and OpenSSL on RHEL 7 and CentOS 7.
|
||||
19
Misc/rhel7/README.md
Normal file
19
Misc/rhel7/README.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# pkg-config overrides for RHEL 7 and CentOS 7
|
||||
|
||||
RHEL 7 and CentOS 7 do not provide pkg-config `.pc` files for Tcl/Tk. The
|
||||
OpenSSL 1.1.1 pkg-config file is named `openssl11.pc` and not picked up
|
||||
by Python's `configure` script.
|
||||
|
||||
To build Python with system Tcl/Tk libs and OpenSSL 1.1 package, first
|
||||
install the developer packages and the `pkgconfig` package with `pkg-config`
|
||||
command.
|
||||
|
||||
```shell
|
||||
sudo yum install pkgconfig 'tcl-devel >= 8.5.12' 'tk-devel >= 8.5.12' openssl11-devel
|
||||
```
|
||||
|
||||
The run `configure` with `PKG_CONFIG_PATH` environment variable.
|
||||
|
||||
```shell
|
||||
PKG_CONFIG_PATH=Misc/rhel7 ./configure -C
|
||||
```
|
||||
3
Misc/rhel7/openssl.pc
Normal file
3
Misc/rhel7/openssl.pc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Name: OpenSSL
|
||||
Version: 1.1.1k
|
||||
Requires: libssl11 libcrypto11
|
||||
4
Misc/rhel7/tcl.pc
Normal file
4
Misc/rhel7/tcl.pc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Name: Tool Command Language
|
||||
Version: 8.5.12
|
||||
Libs: -ltcl8.5 -ltclstub8.5
|
||||
# Libs.private: -ldl -lz -lpthread -lm
|
||||
5
Misc/rhel7/tk.pc
Normal file
5
Misc/rhel7/tk.pc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Name: The Tk Toolkit
|
||||
Version: 8.5.12
|
||||
Requires: tcl >= 8.5.12
|
||||
Libs: -ltk8.5 -ltkstub8.5
|
||||
# Libs.private: -lXft -lfontconfig -lfreetype -lfontconfig -lX11
|
||||
Loading…
Add table
Add a link
Reference in a new issue