felipepessoto commented on code in PR #13665:
URL: https://github.com/apache/gluten/pull/13665#discussion_r4607472563
##########
ep/build-velox/src/get-velox.sh:
##########
@@ -137,6 +137,16 @@ function prepare_velox_source_code {
git submodule update --init --recursive
}
+function apply_flex_lexer_patch {
+ local patch_name="${CURRENT_DIR}/flex-lexer-yyread.patch"
+ if git -C "$VELOX_HOME" apply --reverse --check "$patch_name" > /dev/null
2>&1; then
+ echo "Flex lexer compatibility patch already applied"
+ else
+ echo "Applying Flex lexer compatibility patch..."
+ git -C "$VELOX_HOME" apply "$patch_name"
Review Comment:
Fixed in 27d2acbb8. Source preparation already enters the Velox checkout, so
both commands now run `git apply` there instead of resolving `VELOX_HOME` again.
Reproduced the failure for relative paths with both fresh and existing
checkouts. Absolute and relative paths now pass in both cases, repeated
application safely skips the patch, and incompatible source still fails
explicitly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]