-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_tkinter build issue on Centos7 due changing TK/TCL detection by configure script. #95957
Comments
We are not going to add detection for TCL/TK to configure for several reasons:
I have created a PR with additional documentation and some pkg-config overrides. Some people may find it useful to build Python with RHEL 7 / CentOS 7's OpenSSL 1.1 package instead of building their own OpenSSL, too. |
openssl11-devel is provided pkg-config part. I have in spec the next thing:
But anyway in require patch for aclocal.m4:
(part of spec file)
I've repo with SCL for python3.10 and I suppose that I'll provide for 3.11 too, when it's going to release. |
The By the way, you should neither set CFLAGS nor patch |
Yes, but in SPEC files I often see (like here for example)
thank you, updated, removed a lot of FLAGS, one patch and etc in SPEC file:
|
…S 7 (pythonGH-95964) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> (cherry picked from commit ab4d729) Co-authored-by: Christian Heimes <christian@python.org>
…95964) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
@tiran is anything left to do here? |
Nope, thanks! |
Bug report
I'm trying to build python
3.11rc1
and faced with issue with correct importing_tkinter
module due RPM build.Connected issues 90005 and pull request 31698.
I've installed
tk-devel
andtcl-devel
packages on Centos7, but they are quite old (2015 year), but still usable and should be supported by python3.11. It doesn't contain needed.pc
files forpkg-config
, so during compilation correct flags aren't added.During compilation and building debug environment I've got:
It seems that I need correct
TCLTK_CFLAGS
andTCLTK_LIBS
, but it's quite problematic to find it manually and it's better than on Centos7 it will be detected automatically.Adding in SPEC file the next string:
export TCLTK_LIBS="-ltk8.5 -ltcl8.5"
solves the issue.
Your environment
docker with mock inside, devtoolset-9 is present, openssl11.
The text was updated successfully, but these errors were encountered: