python,python3: define config option for bluetooth support 5197/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 30 Nov 2017 14:44:48 +0000 (16:44 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 10 Dec 2017 17:49:23 +0000 (19:49 +0200)
commit59f0506622e7df5e6c4fe10f279a3f70e2366d37
tree2c8e54b7c11414076c00498260ed2a4edb54e239
parent00bb46866ba946fcb6d1dcd3d3cc83833f234c39
python,python3: define config option for bluetooth support

It was reported via
https://github.com/openwrt/packages/pull/5122#issuecomment-347395472
that if bluez-libs is selected as an installable package,
then the error below will show up:
```
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for python-light:
 * bluez-libs *
 * opkg_install_cmd: Cannot install package python-light.
```

This looks like a limitation in the design of package deps,
and maybe a misuse of conditional deps (i.e. PACKAGE_bluez-libs:bluez-libs).

So, to fix this, an idea we're adding an extra symbol
that enfoces installation of bluez-libs if selected.

We also need to add a way to disable bluetooth build
if PYTHON(3)_BLUETOOTH_SUPPORT is de-selected.
Otherwise, bluetooth is installed and the socket
module is broken due to linker errors.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/python/Config-python-light.in [new file with mode: 0644]
lang/python/python/Makefile
lang/python/python3/Config-python3-light.in [new file with mode: 0644]
lang/python/python3/Makefile