diff mbox series

[meta-python,3/5] python3-brotli: Upgrade 1.1.0 -> 1.2.0

Message ID 20260106094259.36870-3-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python,1/5] python3-pyro5: Upgrade 5.15 -> 5.16 | expand

Commit Message

Leon Anavi Jan. 6, 2026, 9:42 a.m. UTC
Upgrade to release 1.2.0:

SECURITY

- python: added Decompressor::can_accept_more_data method and optional
  output_buffer_limit argument Decompressor::process;
  that allows mitigation of unexpectedly large output;
  reported by Charles Chan (https://github.com/charleswhchan)

Added

- decoder/encoder: added static initialization to reduce binary size
- python: allow limiting decoder output (see SECURITY section)
- CLI: brcat alias; allow decoding concatenated brotli streams
- kt: pure Kotlin decoder
- cgo: support "raw" dictionaries
- build: Bazel modules

Removed

- java: dropped finalize() for native entities

Fixed

- java: in compress pass correct length to native encoder

Improved

- build: install man pages
- build: updated / fixed / refined Bazel buildfiles
- encoder: faster encoding
- cgo: link via pkg-config
- python: modernize extension / allow multi-phase module
  initialization

Changed

- decoder / encoder: static tables use "small" model (allows 2GiB+
  binaries)

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 ...python3-brotli_1.1.0.bb => python3-brotli_1.2.0.bb} | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-brotli_1.1.0.bb => python3-brotli_1.2.0.bb} (62%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-brotli_1.1.0.bb b/meta-python/recipes-devtools/python/python3-brotli_1.2.0.bb
similarity index 62%
rename from meta-python/recipes-devtools/python/python3-brotli_1.1.0.bb
rename to meta-python/recipes-devtools/python/python3-brotli_1.2.0.bb
index 5676d4ef97..f4cdab65b6 100644
--- a/meta-python/recipes-devtools/python/python3-brotli_1.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-brotli_1.2.0.bb
@@ -4,14 +4,18 @@  SECTION = "devel/python"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=941ee9cd1609382f946352712a319b4b"
 
-PYPI_PACKAGE = "Brotli"
+PYPI_PACKAGE = "brotli"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
 
 CVE_PRODUCT = "brotli"
 
-SRC_URI[sha256sum] = "81de08ac11bcb85841e440c13611c00b67d3bf82698314928d0b676362546724"
+SRC_URI[sha256sum] = "e310f77e41941c13340a95976fe66a8a95b01e783d430eeaf7a2f87e0a57dd0a"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi pkgconfig python_setuptools_build_meta
+
+DEPENDS += " \
+	python3-pkgconfig-native \
+"
 
 RDEPENDS:${PN} += " \
 	python3-cffi \