Not unbundling Zstandard from py-zstandard

Written early in the morning in English • Tags: , , ,

After archivers/py-brotli turned out to need just one environment variable to stop compiling its own copy of Brotli, I tried the same with archivers/py-zstandard. That took some effort and ended somewhere else. (more…)

»
While tracking CVE-2026-111497 I noticed that archivers/py-brotli compiles its own copy of the Brotli library, so I changed it to link against the one from archivers/brotli instead. The upstream setup.py already supports this when USE_SYSTEM_BROTLI=1 is set in the environment, so no patches were needed. The extension module shrank from 882k to 39k. (0)