Repository navigation
RHEL-258303: build: Exclude bundled PCRE2 sources from vendor tarballs - #2495
Merged
cgwalters merged 1 commit intoSep 26, 2026
Merged
Conversation
cgwalters
approved these changes
Sep 24, 2026
| exclude-crate-paths = [ { name = "libz-sys", exclude = "src/zlib" }, | ||
| { name = "libz-sys", exclude = "src/zlib-ng" }, | ||
| # Use the system PCRE2 library instead of vendoring its bundled sources. | ||
| { name = "pcre2-sys", exclude = "upstream" }, |
Member
There was a problem hiding this comment.
Yeah in the future we should really have an allowlist for *.[ch] in vendor-filterer...I'll file a design issue for that.
For now though, we could magic that up as a followup to this PR as e.g. cargo xtask package that wraps vendor-filterer and inspects the resulting tarball and has a denylist that makes sure that pcre2-sys doesn't include any .[ch] say?
cgwalters
force-pushed
the
build/exclude-pcre2-vendor-sources
branch
from
September 24, 2026 21:52
0f99408 to
03b8fc8
Compare
The release vendor archive need not ship a second copy of PCRE2 when builds link against the system library. This reduces the archive size and keeps the system PCRE2 dependency explicit for downstream packagers. Assisted-by: AI Generated-by: AI Signed-off-by: Colin Walters <[email protected]>
cgwalters-bot
force-pushed
the
build/exclude-pcre2-vendor-sources
branch
from
September 26, 2026 02:33
03b8fc8 to
a8968b9
Compare
Contributor
Author
|
Rebased onto main; 1 commit, no content change. Generated-by: https://github.com/cgwalters/#llms |
cgwalters-bot
added a commit
to cgwalters-bot/homegit
that referenced
this pull request
Sep 26, 2026
A commit cgwalters rewrote and pushed himself (authored as him, with a Generated-by trailer from his own tooling) trips the "bot work made with plain git" heuristic as soon as the bot rebases it, which blocked a plain rebase of bootc-dev/bootc#2495. With a published head to pair against, a commit whose author, message and patch-id are unchanged was judged when it was published; the rebase didn't make it, so it only gets a note. Generated-by: AI
cgwalters-bot
added a commit
to cgwalters-bot/homegit
that referenced
this pull request
Sep 26, 2026
cgwalters had to point out that bootc-dev/bootc#2495 only needed a rebase to pick up a CI fix from main. That's mechanical enough for the loop to do by itself, so give it one safe command: it only touches PRs the bot opened whose commits are the bot's or his, refuses on conflicts (exit 10, with the paths, for a worker) or when a commit turns out to be upstream already, and leaves an approved fork PR to promote, since a push would void his approval. A conflict-free rebase changes nothing he signed off, so it keeps his sign-off through 'bot-git rework' and gates the push on 'bot-git check' against the pushed head, then force-pushes with a lease. Upstream PRs get a one-line comment saying whether any patch changed at all; fork PRs don't need one. Generated-by: AI
cgwalters-bot
added a commit
to cgwalters-bot/homegit
that referenced
this pull request
Sep 26, 2026
bootc-dev/bootc#2495 sat with red CI until cgwalters noticed that a rebase onto main would fix it. The listing and the command exist now, but nothing acts on them unless the loop does: each tick the coordinator rebases a few conflict-free ones whose failures don't look like the PR's own, and sends conflicting ones to a worker. Generated-by: AI
cgwalters-bot
added a commit
to cgwalters-bot/homegit
that referenced
this pull request
Sep 26, 2026
A commit cgwalters rewrote and pushed himself (authored as him, with a Generated-by trailer from his own tooling) trips the "bot work made with plain git" heuristic as soon as the bot rebases it, which blocked a plain rebase of bootc-dev/bootc#2495. With a published head to pair against, a commit whose author, message and patch-id are unchanged was judged when it was published; the rebase didn't make it, so it only gets a note. Generated-by: AI
cgwalters-bot
added a commit
to cgwalters-bot/homegit
that referenced
this pull request
Sep 26, 2026
cgwalters had to point out that bootc-dev/bootc#2495 only needed a rebase to pick up a CI fix from main. That's mechanical enough for the loop to do by itself, so give it one safe command: it only touches PRs the bot opened whose commits are the bot's or his, refuses on conflicts (exit 10, with the paths, for a worker) or when a commit turns out to be upstream already, and leaves an approved fork PR to promote, since a push would void his approval. A conflict-free rebase changes nothing he signed off, so it keeps his sign-off through 'bot-git rework' and gates the push on 'bot-git check' against the pushed head, then force-pushes with a lease. Upstream PRs get a one-line comment saying whether any patch changed at all; fork PRs don't need one. Generated-by: AI
cgwalters-bot
added a commit
to cgwalters-bot/homegit
that referenced
this pull request
Sep 26, 2026
bootc-dev/bootc#2495 sat with red CI until cgwalters noticed that a rebase onto main would fix it. The listing and the command exist now, but nothing acts on them unless the loop does: each tick the coordinator rebases a few conflict-free ones whose failures don't look like the PR's own, and sends conflicting ones to a worker. Generated-by: AI
cgwalters
approved these changes
Sep 26, 2026
cgwalters
marked this pull request as ready for review
September 26, 2026 11:37
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The release vendor archive does not need the bundled PCRE2 C sources when downstream builds link against system PCRE2. Keep the Rust
pcre2-syscrate but exclude itsupstream/directory. This makes the system PCRE2 development dependency necessary for builds from the filtered vendor archive.Testing:
cargo metadata --format-version=1 --no-depsandgit diff --checkpassed. An equivalent explicitcargo vendor-filtererinvocation for x86_64 GNU/Linux produced an archive withoutpcre2-sys/upstream; the filtered crate built against systemlibpcre2-8. A config-driven vendor run is blocked by a local Rust 1.97.1 LLVM target-machine error while probing tier-2 MIPS targets.Generated-by: AI
Human review of this change and PR text is pending.
Generated-by: https://github.com/cgwalters/#llms