Skip to content

[Velox][Build][MIRROR] Skip sudo on macOS when staging Velox Arrow patches#12129

Open
jackylee-ch wants to merge 1 commit into
apache:mainfrom
jackylee-ch:fix-skip-sudo-macos-velox-arrow-patches
Open

[Velox][Build][MIRROR] Skip sudo on macOS when staging Velox Arrow patches#12129
jackylee-ch wants to merge 1 commit into
apache:mainfrom
jackylee-ch:fix-skip-sudo-macos-velox-arrow-patches

Conversation

@jackylee-ch
Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

apply_compilation_fixes in ep/build-velox/src/get-velox.sh always
calls sudo cp when staging the two Arrow patch files into
$VELOX_HOME/CMake/resolve_dependency_modules/arrow/. On macOS the
target directory is user-owned, so the sudo triggers an interactive
password prompt on every build with no functional benefit.

Introduce a SUDO_CMD variable that resolves to sudo on Linux and
an empty string elsewhere; behavior on Linux is unchanged.

How was this patch tested?

  • macOS 14 arm64: dev/builddeps-veloxbe.sh no longer prompts for a
    password when re-running apply_compilation_fixes. The two patch
    files land in $VELOX_HOME/CMake/resolve_dependency_modules/arrow/
    with the user's own ownership.
  • Linux x86_64: SUDO_CMD=sudo, identical to the previous behavior.

Was this patch authored or co-authored using generative AI tooling?

co-auth: Claude (Sonnet/Opus) via Claude Code 1.x

…tches

apply_compilation_fixes copies two Arrow patch files into VELOX_HOME's
resolve_dependency_modules/arrow/ directory. The script always uses
`sudo cp`, which on macOS triggers an interactive password prompt every
time the build is run, even though VELOX_HOME is normally a user-owned
directory.

Introduce a SUDO_CMD variable that resolves to `sudo` on Linux and an
empty string elsewhere, so the cp invocations work as the regular user
on macOS while preserving the existing behavior on Linux.
@jackylee-ch
Copy link
Copy Markdown
Contributor Author

cc @zhouyuan

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