python3: make readline, gzip, bzip2 and xz really optional
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 7 Mar 2017 23:00:31 +0000 (00:00 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 9 Mar 2017 21:35:43 +0000 (22:35 +0100)
commitbdddc0195edff70f6906a540e8a1c84991923f23
tree36cab372cd0ae8f76703f97ba0293f3ffdae01e8
parent5b17d9f5f7e7968e4eddebfd9d06b76027bc8ef4
python3: make readline, gzip, bzip2 and xz really optional

The BR2_PACKAGE_PYTHON3_{READLINE,ZLIB,BZIP2,XZ} options were so far
only bringing in the necessary dependencies, relying on the Python
build system to automatically detect them.

However, this means that even if one of those option was disabled, if
their dependency was found, Python would build the corresponding module,
which is really not what the user would expect.

For example, if you have:

  BR2_PACKAGE_READLINE=y
  # BR2_PACKAGE_PYTHON3_READLINE is not set

Then you would still get the readline Python module built and installed.

This commit fixes that by adding new --{enable,disable} options, and use
them in python3.mk.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python3/0032-Add-an-option-to-disable-the-readline-module.patch [new file with mode: 0644]
package/python3/0033-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch [new file with mode: 0644]
package/python3/python3.mk