Skip to content

API doc build fix#7888

Merged
yadvr merged 1 commit intoapache:4.18from
mlsorensen:4.18-macos-gnu-sed
Aug 22, 2023
Merged

API doc build fix#7888
yadvr merged 1 commit intoapache:4.18from
mlsorensen:4.18-macos-gnu-sed

Conversation

@mlsorensen
Copy link
Copy Markdown
Contributor

Description

This PR keeps the same sed flags as Linux build hosts, if the end user has installed GNU sed rather than the one shipping with MacOS.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Tested locally

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

looks good and from experience this is the difference. currently not working on a mac, so test from user needed.

Copy link
Copy Markdown
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

needs a manual testing

@yadvr yadvr added this to the 4.18.1.0 milestone Aug 22, 2023
@weizhouapache
Copy link
Copy Markdown
Member

@rohityadavcloud
can you manually test it ? thanks

# For macOS, use two parameters, if gnu sed is not set up
Darwin*)
if ! $(which sed | grep -q gnu); then
sedi='-i ""'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Gnu sed is installable via brew install gnu-sed which installs it on

   PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"

@yadvr yadvr merged commit 6cded7e into apache:4.18 Aug 22, 2023
@mlsorensen mlsorensen deleted the 4.18-macos-gnu-sed branch August 22, 2023 15:42
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.

4 participants