[OE-core] [PATCH] libxml2: make dependencies on python conditional

Burton, Ross ross.burton at intel.com
Mon Apr 3 13:42:25 UTC 2017


On 3 April 2017 at 14:12, Dmitry Rozhkov <dmitry.rozhkov at linux.intel.com>
wrote:

> The library libxml2 can provide its own bindings for python2 in addition
> to the third party python-lxml and python3-lxml packages if this
> functionality is enabled in PACKAGECONFIG.
>
> But in case the functionality is disabled there's no need to depend
> on python2.
>
> Make the dependency on python2 enabled only if the python feature
> is added to PACKAGECONFIG. Also don't produce the binary
> package libxml2-python if it's not needed.
>

| ERROR: oe_runmake failed
| cc1: warning: include location "/usr/include/python3.4m" is unsafe for
cross-compilation [-Wpoison-system-directories]
| cc1: warning: include location "/usr/include/python3.4m" is unsafe for
cross-compilation [-Wpoison-system-directories]
| cc1: warning: include location "/usr/include/python3.4m" is unsafe for
cross-compilation [-Wpoison-system-directories]
| In file included from /usr/include/python3.4m/Python.h:8:0,
|                  from ../../libxml2-2.9.4/python/libxml2-py.c:3:
| /usr/include/python3.4m/pyconfig.h:3:52: fatal error:
x86_64-linux-gnu/python3.4m/pyconfig.h: No such file or directory
|  #  include <x86_64-linux-gnu/python3.4m/pyconfig.h>
|                                                     ^
| In file included from /usr/include/python3.4m/Python.h:8:0,
|                  from ../../libxml2-2.9.4/python/libxml_wrap.h:1,
|                  from ../../libxml2-2.9.4/python/types.c:9:
| /usr/include/python3.4m/pyconfig.h:3:52: fatal error:
x86_64-linux-gnu/python3.4m/pyconfig.h: No such file or directory
|  #  include <x86_64-linux-gnu/python3.4m/pyconfig.h>
|                                                     ^
| compilation terminated.
| compilation terminated.
| Makefile:625: recipe for target 'types.lo' failed
| make[4]: *** [types.lo] Error 1
| make[4]: *** Waiting for unfinished jobs....
| Makefile:625: recipe for target 'libxml2-py.lo' failed
| make[4]: *** [libxml2-py.lo] Error 1
| In file included from /usr/include/python3.4m/Python.h:8:0,
|                  from ../../libxml2-2.9.4/python/libxml.c:14:
| /usr/include/python3.4m/pyconfig.h:3:52: fatal error:
x86_64-linux-gnu/python3.4m/pyconfig.h: No such file or directory
|  #  include <x86_64-linux-gnu/python3.4m/pyconfig.h>
|                                                     ^
| compilation terminated.
| Makefile:625: recipe for target 'libxml.lo' failed

Something went wrong...  Promise it built before I applied the patch.  Also
the PACKAGES change shouldn't be required as an empty package won't be
generated.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170403/86b9ead7/attachment-0002.html>


More information about the Openembedded-core mailing list