package/python3: allow to enable ssl support for host package too
PATCH 1/2 package/python3: allow to enable ssl support for host package too
Some python scripts may be ran in the custom scripts a user can define in the config.
If any of those require ssl, they will fail with no possible fix. This patch allows to enable ssl support for host python3 in the config, defaulting to it being disable to conform to the previous behaviour.
Signed-off-by Nicolas Carrier <[email protected]>
--- package/Config.in.host | 1 + package/python3/Config.in.host | 17 +++++++++++++++++ package/python3/python3.mk | 9 +++++++-- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 package/python3/Config.in.host
package/Config.in.host +1 -0
@@ -55,6 +55,7 @@ menu "Host utilities" source "package/python-lxml/Config.in.host" source "package/python-six/Config.in.host" source "package/python-xlrd/Config.in.host" + source "package/python3/Config.in.host" source "package/qemu/Config.in.host" source "package/raspberrypi-usbboot/Config.in.host" source "package/rauc/Config.in.host"
package/python3/Config.in.host new file +17 -0
@@ -0,0 +1,17 @@ +config BR2_PACKAGE_HOST_PYTHON3 + bool "host python3" + help + The python language interpreter. Host package. + + http://www.python.org/ + +if BR2_PACKAGE_HOST_PYTHON3 + +config BR2_PACKAGE_HOST_PYTHON3_SSL + bool "ssl" + select BR2_PACKAGE_HOST_OPENSSL + help + _ssl module for host Python3. + +endif +
package/python3/python3.mk +7 -2
@@ -26,8 +26,7 @@ HOST_PYTHON3_CONF_OPTS += \ --enable-unicodedata \ --disable-test-modules \ --disable-idle3 \ - --disable-ossaudiodev \ - --disable-openssl + --disable-ossaudiodev # Make sure that LD_LIBRARY_PATH overrides -rpath. # This is needed because libpython may be installed at the same time that
@@ -42,6 +41,12 @@ PYTHON3_DEPENDENCIES = host-python3 libffi HOST_PYTHON3_DEPENDENCIES = host-expat host-zlib host-libffi +ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SSL),y) +HOST_PYTHON3_DEPENDENCIES += host-openssl +else +HOST_PYTHON3_CONF_OPTS += --disable-openssl +endif + PYTHON3_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_PYTHON3_READLINE),y)
Signature · 1 line
2.20.1
PATCH 2/2 package/python: allow to enable ssl support for host package too
Some python scripts may be ran in the custom scripts a user can define in the config.
If any of those require ssl, they will fail with no possible fix. This patch allows to enable ssl support for host python2 in the config, defaulting to it being disable to conform to the previous behaviour.
Signed-off-by Nicolas Carrier <[email protected]>
--- package/Config.in.host | 1 + package/python/Config.in.host | 17 +++++++++++++++++ package/python/python.mk | 7 ++++++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 package/python/Config.in.host
package/Config.in.host +1 -0
@@ -51,6 +51,7 @@ menu "Host utilities" source "package/pkgconf/Config.in.host" source "package/pru-software-support/Config.in.host" source "package/pwgen/Config.in.host" + source "package/python/Config.in.host" source "package/python-cython/Config.in.host" source "package/python-lxml/Config.in.host" source "package/python-six/Config.in.host"
package/python/Config.in.host new file +17 -0
@@ -0,0 +1,17 @@ +config BR2_PACKAGE_HOST_PYTHON + bool "host python" + help + The python language interpreter. Host package. + + http://www.python.org/ + +if BR2_PACKAGE_HOST_PYTHON + +config BR2_PACKAGE_HOST_PYTHON_SSL + bool "ssl" + select BR2_PACKAGE_HOST_OPENSSL + help + _ssl module for host Python. + +endif +
package/python/python.mk +6 -1
@@ -32,7 +32,6 @@ HOST_PYTHON_CONF_OPTS += \ --disable-bsddb \ --disable-test-modules \ --disable-bz2 \ - --disable-ssl \ --disable-ossaudiodev \ --disable-pyo-build
@@ -58,6 +57,12 @@ PYTHON_DEPENDENCIES = host-python libffi $(TARGET_NLS_DEPENDENCIES) HOST_PYTHON_DEPENDENCIES = host-expat host-zlib +ifeq ($(BR2_PACKAGE_HOST_PYTHON_SSL),y) +HOST_PYTHON_DEPENDENCIES += host-openssl +else +HOST_PYTHON_CONF_OPTS += --disable-ssl +endif + PYTHON_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_PYTHON_READLINE),y)
Signature · 1 line
2.20.1