[yocto] Building one package needs header from another

Paul D. DeRocco pderocco at ix.netcom.com
Fri Aug 23 12:52:54 PDT 2013


> > On Tuesday 20 August 2013 16:06:54 Paul D. DeRocco wrote:
> > 
> > I've been trying to figure out how the setup.py/setup.cfg 
> > (and distutils)
> > stuff works. The setup.cfg file lists only one possible 
> > option for adding
> > directories, which is basedirlist, but setting that to foo adds
> > foo/include to the include directories and foo/lib to the library
> > directories, so that's not appropriate. 

> From: Paul Eggleton
> 
> Could you just send it ${STAGING_DIR_HOST}/${prefix} ? We do 
> do that elsewhere with similar-behaving configure scripts.

I think I've figured out what's going on. The whole distutils.bbclass
interface to the Python distutils package involves the writing of a
setup.py script to perform all the packaging and unpackaging processes.
The setup.py script for matplotlib has to deal with the fact that
matplotlib depends upon a varying set of libraries depending upon how you
configure it. In this case, because I want to build the GTK rendering
backend, it depends upon the pygtk library. It cleverly uses the
pkg-config command to interrogate each dependent library to find out what
compiler options are needed to compile modules that refer to the library,
but unfortunately, pygtk-2.0 is not a "library" that can be searched by
pkg-config, so the do_compile script coughs up the following nonfatal
error message:

    pkg-config: looking for pygtk-2.0 gtk+-2.0
        * Package pygtk-2.0 was not found in the pkg-config
        * search path. Perhaps you should add the directory
        * containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
        * environment variable No package 'pygtk-2.0' found

I think I'm just going to have to patch the setup.py file (actually a
subsidiary setupext.py file) to hack the additional pygtk-2.0 include
subdirectory into it. However, setupext.py and setup.py both already have
small patches in the original matplotlib recipe. If I add another patch in
my bbappend, will it always be applied after the one in the original
recipe? Or should I just replace the patch file with one containing its
fixes and my fix?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com 




More information about the yocto mailing list