Bug 9307

Summary: python detects tkinter again
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Martin Jansa <Martin.Jansa>
Component: devtools / tool chainAssignee: Alejandro Hernandez <alejandro.hernandez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alejandro.hernandez, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Martin Jansa 2016-03-18 13:07:51 UTC
meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch is supposed to disable it

but since upgrade to 2.7.9 it doesn't do anything useful, the same problem is in python3

http://git.openembedded.org/openembedded-core/commit/?id=d4ad95f0d5f08891637c644e85b09da9c4585059
http://git.openembedded.org/openembedded-core/diff/meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch?id=d4ad95f0d5f08891637c644e85b09da9c4585059


It was reported few times by test-dependencies script:

WARN: python3: python3-tkinter rdepends on glibc, but it isn't a build dependency?
WARN: python3: python3-tkinter rdepends on libpython3, but it isn't a build dependency?
WARN: python3: python3-tkinter rdepends on tcl-lib, but it isn't a build dependency?

WARN: python: python-tkinter rdepends on glibc, but it isn't a build dependency?
WARN: python: python-tkinter rdepends on libpython2, but it isn't a build dependency?
WARN: python: python-tkinter rdepends on tcl-lib, but it isn't a build dependency?
Comment 1 Martin Jansa 2016-03-18 13:13:50 UTC
The upgrade basically reverted this change:
http://git.openembedded.org/openembedded-core/commit/?id=53ae544cfdac22c82af452b8c7ebe6664296bd9b

In old oe-classic days we even had DISTRO_FEATURE tk to enable/disable this module:
http://git.openembedded.org/openembedded/commit/?id=a7c752d20f6a2623470734a0054e078aea4400b4
Comment 2 Martin Jansa 2016-03-18 13:46:30 UTC
I have patch which restores these changes, will send it after next test-dependencies run confirms it works fine.
Comment 4 Martin Jansa 2016-04-21 18:56:26 UTC
It was already merged to oe-core:

commit 8cc5e36cd7978186d5ea1fe8af2f2bd6b3df8885
Author: Martin Jansa <martin.jansa@gmail.com>
Date:   Mon Mar 21 11:01:28 2016 +0100

    python(3): Disable tkinter