Open
Description
Bug report
Bug description:
As I understand it, the blessed way to build python 3.12.3 [from the tarball] on rhel7 (CentOS 7 in my case) with tkinter is to do:
PKG_CONFIG_PATH=Misc/rhel7 ./configure ...
make ... etc
But the pkg-config stuff doesn't work, because of "errors" in the .pc files; witness:
$ PKG_CONFIG_PATH=Misc/rhel7 pkg-config --print-errors tcl
Package 'tcl' has no Description: field
$ echo $?
1
$ PKG_CONFIG_PATH=Misc/rhel7 pkg-config --print-errors tk
Package 'tk' has no Description: field
$ echo $?
1
I made slightly-fiddled files tcl85.pc and tk85.pc in Misc/rhel7 (below); and witness:
$ PKG_CONFIG_PATH=Misc/rhel7 pkg-config --print-errors tcl85
$ echo $?
0
$ PKG_CONFIG_PATH=Misc/rhel7 pkg-config --print-errors tk85
$ echo $?
0
With those *.pc files in place, the 'configure' etc proceeds as expected (and tkinter gets included and works).
tcl85.pc:
Name: tcl85
Description: Tool Command Language
Version: 8.5.13
Libs: -ltcl8.5 -ltclstub8.5
# Libs.private: -ldl -lz -lpthread -lm
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
The build process and cross-buildThe build process and cross-buildAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error