Skip to content

Record and explain build prefix relocation - #23666

Closed
MikeMcQuaid wants to merge 1 commit into
relocate-build-prefix-hardeningfrom
relocation-observability
Closed

Record and explain build prefix relocation#23666
MikeMcQuaid wants to merge 1 commit into
relocate-build-prefix-hardeningfrom
relocation-observability

Conversation

@MikeMcQuaid

Copy link
Copy Markdown
Member

No description provided.

- `HOMEBREW_RELOCATE_BUILD_PREFIX` was read straight from `ENV` in two
  places; it is now a hidden `env_config` boolean so it is typed and
  testable while staying undocumented until the feature is hardened.
- A bottle poured with its build prefix patched in place now records
  `relocated_build_prefix` and `relocated_files` in its tab, so a
  relocated keg can be told apart from a pristine one when diagnosing
  bug reports. `Keg#relocate_build_prefix` returns the patched files
  to make that possible.
- The "building from source" warning for a bottle built for another
  prefix now states how many characters longer or shorter the local
  prefix is than the bottle's, which decides whether in-place
  patching could ever apply, without mentioning the hidden variable.

This change is part of [`plans/relocatable-bottles.md`](https://github.com/Homebrew/brew/blob/HEAD/Library/Homebrew/plans/relocatable-bottles.md)
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your pull request. This has been closed because it appears to be missing the pull request template, perhaps because this was written by an AI not a human. We require humans to read and fill in these templates.

Please edit this pull request to fill in the current pull request template. This workflow will reopen this pull request automatically once the template is complete. Do not open a new pull request for this.

@github-actions github-actions Bot closed this Aug 26, 2026
@request-info

request-info Bot commented Aug 26, 2026

Copy link
Copy Markdown

Please provide a better issue/pull request title and/or description!

@request-info request-info Bot added the needs response Needs a response from the issue/PR author label Aug 26, 2026
@MikeMcQuaid

MikeMcQuaid commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

Apologies, bug in (manually initiated) tooling. Trying to teach my tools how to open stacked PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs response Needs a response from the issue/PR author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant