https://github.com/google/brotli/blob/v1.2.0/CHANGELOG.md Adds the following security hardening: python: added Decompressor::can_accept_more_data method and optional output_buffer_limit argument Decompressor::process; that allows mitigation of unexpectedly large output Which is needed to complete the security fixes in python-urllib3 2.6.0. Added dependency to host-python-pkgconfig to fix build error which would be introduced by this bump. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> [Peter: mark as security bump, describe the relation with urllib3] Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit fe5dcf402c0075b6ab86a92733ec75135f9dd760) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
24 lines
759 B
Makefile
24 lines
759 B
Makefile
################################################################################
|
|
#
|
|
# python-brotli
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_BROTLI_VERSION = 1.2.0
|
|
PYTHON_BROTLI_SOURCE = brotli-$(PYTHON_BROTLI_VERSION).tar.gz
|
|
PYTHON_BROTLI_SITE = https://files.pythonhosted.org/packages/f7/16/c92ca344d646e71a43b8bb353f0a6490d7f6e06210f8554c8f874e454285
|
|
PYTHON_BROTLI_SETUP_TYPE = setuptools
|
|
PYTHON_BROTLI_LICENSE = MIT
|
|
PYTHON_BROTLI_LICENSE_FILES = LICENSE
|
|
PYTHON_BROTLI_DEPENDENCIES = host-python-pkgconfig
|
|
|
|
PYTHON_BROTLI_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
|
PYTHON_BROTLI_CFLAGS += -O0
|
|
endif
|
|
|
|
PYTHON_BROTLI_ENV = CFLAGS="$(PYTHON_BROTLI_CFLAGS)"
|
|
|
|
$(eval $(python-package))
|