Hi
It looks like the python and python3 recipe do not want to build with bluetooth socket support.
So in order to overcome this you would have to remove those configure statements for bluetooth.h. Additionally python needs to DEPEND on bluez, so that the header file is actually found by the configure script.
I would:
- Revert whatever you did, e.g. the
PACKAGES =+ " libbluetooth-dev "
in local.conf and follow the advise in the error message to wipe the tmp dir.
In our 2.8 BSP setup that would berm -rf tmp-glibc ../deploy
- Add a bbappend which adds bluez to DEPENDS and modifies the EXTRA_OECONF variable.
E.g. in your layer, add the file recipes-devtools/python/python3_3.5.3.bbappend with the following content:
DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES','bluetooth bluez5','bluez5','bluez4',d)}"
EXTRA_OECONF_remove = "ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no"
Note that for me this builds, i.e. bitbake python3 does not fail.
Max