Skip to content

[VL] Install Flex under /usr in CentOS 7 vcpkg images#12627

Open
baibaichen wants to merge 1 commit into
apache:mainfrom
baibaichen:fix/centos7-flex-prefix
Open

[VL] Install Flex under /usr in CentOS 7 vcpkg images#12627
baibaichen wants to merge 1 commit into
apache:mainfrom
baibaichen:fix/centos7-flex-prefix

Conversation

@baibaichen

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

This is a prerequisite for #12625.

Install the source-built Flex 2.6.4 under /usr in the CentOS 7 vcpkg build environment. PR #12625 isolates vcpkg builds from /usr/local, while the current image places flex and FlexLexer.h under that ignored prefix.

CentOS 7's packaged Flex 2.5.37 is not compatible with the current Velox YyFlexLexerShim, so this keeps Flex 2.6.4 and only changes its installation prefix. Once the image is rebuilt, #12625 can remove its temporary Flex path workaround.

How was this patch tested?

  • Ran bash -n dev/vcpkg/setup-build-depends.sh.
  • In [GLUTEN-7139][VL] Manage Velox Arrow through vcpkg #12625 CI, confirmed that CentOS 7 Flex 2.5.37 is found under /usr but fails to compile the current Velox YyFlexLexerShim.
  • Confirmed that Flex 2.6.4 with matching executable and headers completes both x86 and Enhanced native builds.

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

Generated-by: GitHub Copilot CLI 1.0.75

Keep the required Flex 2.6.4 build while placing its executable and headers outside the /usr/local prefix isolated by vcpkg builds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 81cd27bb-c736-4cf5-b65f-2aeb9f954996
Copilot AI review requested due to automatic review settings July 26, 2026 10:40
@github-actions github-actions Bot added the BUILD label Jul 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the CentOS 7 vcpkg build-dep bootstrap script so the source-built Flex 2.6.4 is installed under /usr (instead of the default /usr/local), aligning with upcoming work to isolate vcpkg builds from /usr/local while keeping a Flex version compatible with Velox’s lexer shim.

Changes:

  • Change the Flex 2.6.4 ./configure invocation to install under /usr on CentOS 7.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 114 to +116
cd /tmp/flex
./autogen.sh
./configure
./configure --prefix=/usr
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.

3 participants