BSD Ports

archivers/brotli 1.2.1,1 MidnightBSD

Generic-purpose lossless compression algorithm

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
387b48040f
License
mit
Categories
archivers, devel

Description

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in RFC 7932.

In the other systems

The newest version among them is 1.2.1, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDarchivers/brotli1.2.1,1 newestno data-[email protected]2026-10-22
FreeBSDarchivers/brotli1.2.1,1 newestnone known-[email protected]2026-10-23
OpenBSDarchivers/brotli1.2.0 behind since 2026-10-22no data-Pascal Stumpf <[email protected]>2026-10-23
NetBSDarchivers/brotli1.2.0 behind since 2026-10-22none known-[email protected]2026-10-22
DragonFlyarchivers/brotli1.1.0,1 behind since 2026-10-051 known-[email protected]-
HardenedBSDarchivers/brotli1.2.0,1 behind since 2026-10-22no data-[email protected]-
GhostBSDarchivers/brotli1.2.0,1 behind since 2026-10-22no data-[email protected]-
OPNsensearchivers/brotli1.2.0,1 behind since 2026-10-22no data-[email protected]-

Compare across BSDs

Version history 2

  1. 1.2.1 387b48040f
  2. 1.2.0 8b2ede4be8

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install brotli

From mports:

cd /usr/mports/archivers/brotli && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	brotli>0:archivers/brotli
LIB_DEPENDS=	libbrotlicommon.so:archivers/brotli

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Configuration

Options name: archivers_brotli

OptionDefaultDescription
STATICoff
USES
cmake:testing cpe pathfix pkgconfig
Service scripts
none

Files

Manual pages 5
  • brotli(1)
  • constants.h(3)
  • decode.h(3)
  • encode.h(3)
  • types.h(3)
pkg-plist 26
  • bin/brotli
  • include/brotli/decode.h
  • include/brotli/encode.h
  • include/brotli/port.h
  • include/brotli/shared_dictionary.h
  • include/brotli/types.h
  • lib/libbrotlicommon.a
  • lib/libbrotlicommon.so
  • lib/libbrotlicommon.so.1
  • lib/libbrotlicommon.so.
  • lib/libbrotlidec.a
  • lib/libbrotlidec.so
  • lib/libbrotlidec.so.1
  • lib/libbrotlidec.so.
  • lib/libbrotlienc.a
  • lib/libbrotlienc.so
  • lib/libbrotlienc.so.1
  • lib/libbrotlienc.so.
  • libdata/pkgconfig/libbrotlicommon.pc
  • libdata/pkgconfig/libbrotlidec.pc
  • libdata/pkgconfig/libbrotlienc.pc
  • share/man/man1/brotli.1.gz
  • share/man/man3/constants.h.3.gz
  • share/man/man3/decode.h.3.gz
  • share/man/man3/encode.h.3.gz
  • share/man/man3/types.h.3.gz
distinfo 1
FileSizeSHA256
google-brotli-v1.2.1_GH0.tar.gz64659898d35d11a78dc453aebb7d10c3748f3f73ff78c8267c0dc697b8631f67bf7e8f

Commit history 2

DateCommitCreditsLog message
387b48040f Lucas Holt archivers/brotli: update to 1.2.1 [security] (#1871)
## Summary Update archivers/brotli from 1.2.0 to 1.2.1. This fixes CVE-2026-111497, an out-of-bounds write in the Brotli decoder that permits remote code execution. Google released it on 2026-10-21. Node.js lists the same CVE in its [October 21 security release](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases). 1.2.1 contains only two commits on top of 1.2.0: the fix (google/brotli 0ed4268a, "Detect and report invalid stream earlier") and the release preparation. The fix adds a new decoder error code, `BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH`. www/node24 at 24.22.1 uses that constant and builds with `--shared-brotli`, so it needs this update to compile (separate PR). ## Changes - `Makefile`: - DISTVERSION is now 1.2.1. …
8b2ede4be8 Lucas Holt archivers/brotli: update to 1.2.0 (#1710)