[oe] [yocto] python tkinter dependencies

Martin Jansa martin.jansa at gmail.com
Thu Jul 10 22:30:30 UTC 2014


On Thu, Jul 10, 2014 at 04:11:29PM -0400, Jate S wrote:
> - Python-tkinter requires the tk recipe in meta-oe, so you must add
> this layer for your build.
> - I am on dora. I found that I needed commit "tk: make multilib build
> compatible and fix library install" made on 12/5/2013
> (1ca29d1cda0d007c4e6a28fe1a4037b4029ad7ae).
> - I created a bbappend for python. In this I added
> DEPENDS_class-target on tk, and RDEPENDS_class-target on tk and
> tk-lib. Also, I did a SRC_URI replace to eliminate the
> avoid_warning_about_tkinter.patch file.
> 
> I was able to build and use python-tkinter successfully.
> 
> The question now is if this should go into meta-oe or oe-core. And how.
> 
> The tcl recipe is in oe-core, but not tk. I'm not yet sure why this
> is. Does anybody know?

You can use PACKAGECONFIG for optional dependencies like tk, that way
patch adding PACKAGECONFIG can go to oe-core and only people with
meta-oe and tk available will enable it.

> 
> - Jate S.
> 
> On Wed, Jul 2, 2014 at 1:51 AM, Jens Lucius <jenslucius at freenet.de> wrote:
> > Hi
> >
> > It worked for me in my build env after trying several things.
> >
> > I did setup a new yocto some while ago and actually had the same problems
> > again.
> >
> > There is a patch in python about tkinter (03-fix-tkinter-detection.patch).
> >
> > I removed that, did a fresh rebuild of python (-c clean) and did a rebuild
> > of my image (as no new image was written by building my image after
> > rebuilding python).
> >
> > Either of these did work for me, maybe somebody knows exactly which step :-)
> >
> > Jens
> >
> > Am 02.07.2014 05:41, schrieb Jate S:
> >
> >> The python-tkinter module requires _tkinter. A result from a websearch
> >> suggested that I needed to make sure tk (from meta-oe/meta-oe) and tcl
> >> were installed before compiling python.
> >>
> >> I added a DEPENDS on the tk and tcl recipes to both python and
> >> python-tkinter in a python_2.7.3.bbappend. It did not work and was
> >> never built.
> >>
> >> I'm looking for tips to figure out what is going on. Thanks.
> >>
> >>
> >> - Jate S.
> >
> >
> -- 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20140711/065582a9/attachment-0002.sig>


More information about the Openembedded-devel mailing list