Skip to content

[GLUTEN-10635][VL] bugfix: file INSTALL cannot set permissions#10638

Merged
philo-he merged 3 commits intoapache:mainfrom
beliefer:10635
Sep 9, 2025
Merged

[GLUTEN-10635][VL] bugfix: file INSTALL cannot set permissions#10638
philo-he merged 3 commits intoapache:mainfrom
beliefer:10635

Conversation

@beliefer
Copy link
Copy Markdown
Contributor

@beliefer beliefer commented Sep 5, 2025

What changes are proposed in this pull request?

This PR proposes to fix a building bug.
Fixes #10635

How was this patch tested?

GA tests.

@github-actions github-actions bot added the BUILD label Sep 5, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 5, 2025

#10635

@Zouxxyy
Copy link
Copy Markdown
Contributor

Zouxxyy commented Sep 7, 2025

I actually encountered this problem when running build_arrow on my Mac, and I was confused as to why arrow was installed in a fixed location like this cmake --install ./ --prefix /usr/local/. Instead of using INSTALL_PREFIX

if [[ "$(uname)" == "Darwin" ]]; then
    INSTALL_PREFIX=${INSTALL_PREFIX:-${VELOX_HOME}/deps-install}
else
    INSTALL_PREFIX=${INSTALL_PREFIX:-"/usr/local"}
fi

Maybe we need a fix? @zhouyuan

@philo-he
Copy link
Copy Markdown
Member

philo-he commented Sep 8, 2025

@Zouxxyy, MacOS was not properly considered in the Arrow installation. You can propose a fix to use a path more suitable for MacOS. Maybe, you can just replace /usr/local with $INSTALL_PREFIX in build_arrow.sh.

cmake --build "${BINARY_DIR}"
if [ -z "${SUDO}" ]; then
if command -v sudo >/dev/null 2>&1 && sudo -n true 2>/dev/null; then
SUDO="sudo"
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.

Can we just let user fix this issue by setting SUDO=sudo in the environment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you! I tried in this way. But it is still not working.

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.

Can you pease try to add this line in the beginning of this file?
https://github.com/apache/incubator-gluten/blob/main/dev/build_arrow.sh#L21

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

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.

It seems line 21 should be changed to SUDO="${SUDO:-""}", where all letters are capitalized. Then, I assume setting SUDO=sudo in the environment should work.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It seems line 21 should be changed to SUDO="${SUDO:-""}", where all letters are capitalized. Then, I assume setting SUDO=sudo in the environment should work.

I tried this way, it works well. But I don't know if it will affect other OS.

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.

@beliefer, I suggest to just fix this line, and let users explicitly set the environment variable if they meet such permission issue.

@Zouxxyy
Copy link
Copy Markdown
Contributor

Zouxxyy commented Sep 8, 2025

@Zouxxyy, MacOS was not properly considered in the Arrow installation. You can propose a fix to use a path more suitable for MacOS. Maybe, you can just replace /usr/local with $INSTALL_PREFIX in build_arrow.sh.

Sure, can you have a look at #10650, thanks

@beliefer beliefer requested a review from philo-he September 8, 2025 07:20
Copy link
Copy Markdown
Member

@philo-he philo-he left a comment

Choose a reason for hiding this comment

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

Thanks.

@philo-he philo-he merged commit baaa782 into apache:main Sep 9, 2025
9 checks passed
@beliefer
Copy link
Copy Markdown
Contributor Author

beliefer commented Sep 9, 2025

@philo-he @zhouyuan Thank you!

wForget pushed a commit to wForget/gluten that referenced this pull request Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VL] file INSTALL cannot set permissions

4 participants