This repository was archived by the owner on Jul 21, 2026. It is now read-only.
pcre2: publish the Unicode regex dependency root - #37
Merged
Conversation
This was referenced Jul 11, 2026
brandonpayton
force-pushed
the
migrate/pcre2-dependency-root
branch
from
July 11, 2026 23:09
40ad3b5 to
adb2364
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Replace the source-only registry entry with a first-class Kandelo Homebrew PCRE2 10.44 formula.
The formula builds through the normal Kandelo SDK and publishes the actual development and tool surface: 8-, 16-, and 32-bit static libraries, the POSIX wrapper, public headers, pkg-config metadata, pcre2-config, pcre2grep, and pcre2test.
Registry reconciliation
packages/registry/pcre2-source/package.toml is authoritative for:
The downloaded source archive matches that digest. The Homebrew package is named pcre2 because it now publishes built, consumer-visible artifacts rather than an unpacked source cache.
Formula contract
Platform and bottle gates
The source formula may merge independently after formula review. Bottle construction and publication must wait until the applicable platform gates are green:
The pthread fork-continuation fix and ABI 18 transition from #867 are merged.
The deterministic-instrumentation gate is fully isolated. Immutable uninstrumented pcre2grep input SHA-256 6d3a835bf6cca612c4b722c8b60291e30f07b51bf51eaf6288c355efbf6592bb and exact instrumenter SHA-256 4f25fdc47f546ded0b042ceff337ac976bd456fbaa42df973eeb8bd258f064d4 produced two same-size outputs:
The specific cause is crates/fork-instrument/src/instrument.rs in instrument_one_function_nested_switch: iterating the regions HashMap keys while building pending carryover plans randomizes subsequent module.locals.add allocation order. That changes only synthetic local indices in the Code section. Section sizes, function/export/data/name ordering, and normalized instructions are identical. Sorting that allocation loop made two outputs byte-identical in an isolated proof; sorting only the later body-parameter loop did not.
No formula workaround or bottle hash is proposed. #888 fixes the tool at its allocation-order root cause; CI must rebuild this formula after that platform change lands and the remaining publisher gates are green.
Validation
Functional validation used scripts/dev-shell.sh, ABI 18 platform artifacts, the #882 ABI parser, and exact formula head 40ad3b52e47a7e44125e31a9a070c49beb573404. The branch was then rebased semantic-preservingly onto current tap main at adb2364. Commit 11d291f subsequently changed only shared-support loading and the pkgconf test dependency; the four artifact-producing commits retain identical stable patch IDs and artifact logic:
brew style, Homebrew Ruby syntax, formula-support tests, andgit diff --check: passed.brew style, a literal formula load throughTap.fetch, formula-support tests (21 runs, 186 assertions), andgit diff --checkpassed through Kandelo's dev shell.No bottle block or PCRE2 sidecar is included.