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.pyalready supports this whenUSE_SYSTEM_BROTLI=1is set in the environment, so no patches were needed. The extension module shrank from 882k to 39k.