mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 14:34:32 +04:00
python3: Update to 3.7.10, refresh patches
Includes fixes for: * CVE-2021-3177 - ctypes: Buffer overflow in PyCArg_repr * CVE-2021-23336 - urllib parse_qsl(): Web cache poisoning - semicolon as a query args separator Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
# Note: keep in sync with setuptools & pip
|
# Note: keep in sync with setuptools & pip
|
||||||
PYTHON3_VERSION_MAJOR:=3
|
PYTHON3_VERSION_MAJOR:=3
|
||||||
PYTHON3_VERSION_MINOR:=7
|
PYTHON3_VERSION_MINOR:=7
|
||||||
PYTHON3_VERSION_MICRO:=9
|
PYTHON3_VERSION_MICRO:=10
|
||||||
|
|
||||||
PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR)
|
PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR)
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
|||||||
|
|
||||||
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)
|
||||||
PKG_HASH:=91923007b05005b5f9bd46f3b9172248aea5abc1543e8a636d59e629c3331b01
|
PKG_HASH:=f8d82e7572c86ec9d55c8627aae5040124fd2203af400c383c821b980306ee6b
|
||||||
|
|
||||||
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=Python/2.0
|
PKG_LICENSE:=Python/2.0
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ https://git.alpinelinux.org/aports/tree/main/python2/musl-find_library.patch
|
|||||||
+ from glob import glob
|
+ from glob import glob
|
||||||
+ musl_ldso = glob('/lib/ld-musl-*.so.1')
|
+ musl_ldso = glob('/lib/ld-musl-*.so.1')
|
||||||
|
|
||||||
def _findLib_gcc(name):
|
def _is_elf(filename):
|
||||||
# Run GCC's linker with the -t (aka --trace) option and examine the
|
"Return True if the given file is an ELF file"
|
||||||
@@ -252,6 +254,57 @@ elif os.name == "posix":
|
@@ -265,6 +267,57 @@ elif os.name == "posix":
|
||||||
def find_library(name, is64 = False):
|
def find_library(name, is64 = False):
|
||||||
return _get_soname(_findLib_crle(name, is64) or _findLib_gcc(name))
|
return _get_soname(_findLib_crle(name, is64) or _findLib_gcc(name))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user