mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #3773 from commodo/python-fix-host-build
python: don't use libressl for host build
This commit is contained in:
@@ -12,7 +12,7 @@ include ./files/python-version.mk
|
|||||||
|
|
||||||
PKG_NAME:=python
|
PKG_NAME:=python
|
||||||
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -859,7 +859,7 @@ class PyBuildExt(build_ext):
|
||||||
|
|
||||||
|
min_openssl_ver = 0x00907000
|
||||||
|
have_any_openssl = ssl_incs is not None and ssl_libs is not None
|
||||||
|
- have_usable_openssl = (have_any_openssl and
|
||||||
|
+ have_usable_openssl = cross_compiling and (have_any_openssl and
|
||||||
|
openssl_ver >= min_openssl_ver)
|
||||||
|
|
||||||
|
if have_any_openssl:
|
||||||
Reference in New Issue
Block a user