Skip to content

[stable34] fix: replace sed -i with perl -pi for macOS compatibility#15348

Merged
skjnldsv merged 1 commit into
stable34from
backport/14990/stable34
Jul 21, 2026
Merged

[stable34] fix: replace sed -i with perl -pi for macOS compatibility#15348
skjnldsv merged 1 commit into
stable34from
backport/14990/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Jul 21, 2026

Copy link
Copy Markdown

Backport of PR #14990

macOS BSD sed requires a backup extension with -i (e.g. sed -i ''),
while GNU sed does not accept an empty extension. The merge-folders
target used sed -i -e which fails on macOS with:

  sed: 1: "<file>": invalid command code .

Replace with perl -pi -e which is portable across both platforms.

Fixes #13186

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

🔍 Open preview →

No RST documentation pages changed in this PR.

Last updated: Tue, 21 Jul 2026 09:35:32 GMT

@skjnldsv
skjnldsv merged commit 0f7d7cc into stable34 Jul 21, 2026
25 checks passed
@skjnldsv
skjnldsv deleted the backport/14990/stable34 branch July 21, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant