Skip to content

Preserve dylib use-command flags when renaming - #1031

Merged
p-linnane merged 1 commit into
Homebrew:mainfrom
alebcay:dylib-use-command-flags
Sep 7, 2026
Merged

Preserve dylib use-command flags when renaming#1031
p-linnane merged 1 commit into
Homebrew:mainfrom
alebcay:dylib-use-command-flags

Conversation

@alebcay

@alebcay alebcay commented Sep 7, 2026

Copy link
Copy Markdown
Member
  • Preserve LC_DYLIB_USE_COMMAND flags during dylib renames.
  • Keep the original dylib use-command type instead of converting it to LC_LOAD_DYLIB.
  • Add regression coverage for delayed-initialization and weak-link flags.

Copilot AI balanced review requested due to automatic review settings September 7, 2026 04:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃煝 Approval recommended

All reviewed changes are covered by regression tests with no unresolved issues.

Pull request overview

Preserves dylib use-command metadata when renaming install names.

Changes:

  • Retains command types and flags during replacement.
  • Adds regression tests for weak-link and delayed-initialization flags.
File summaries
File Description
lib/macho/macho_file.rb Preserves existing dylib-use flags in replacement commands.
test/test_macho.rb Verifies command types, versions, and flags remain intact.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Signed-off-by: Caleb Xu <calebcenter@live.com>
Assisted-by: OpenCode (GPT-5.6 Terra)
@alebcay
alebcay force-pushed the dylib-use-command-flags branch from 9f82814 to 6528c5a Compare September 7, 2026 04:51

@p-linnane p-linnane left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement.

@p-linnane
p-linnane merged commit 5eb2c69 into Homebrew:main Sep 7, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants