Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

rhel7 build with tkinter - not quite right; ends up 'missing' #118785

Copy link
Copy link
Open
@wdpartain

Description

@wdpartain
Issue body actions

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

No one assigned

    Labels

    buildThe build process and cross-buildThe build process and cross-buildtopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.