Skip to content

ORC-1807: Native support for vcpkg - #2076

Closed
deshanxiao wants to merge 4 commits into
apache:mainfrom
deshanxiao:deshan/orc-1807
Closed

deshanxiao wants to merge 4 commits into
apache:mainfrom
deshanxiao:deshan/orc-1807

Conversation

@deshanxiao

@deshanxiao deshanxiao commented Nov 27, 2024 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR is aimed to add native support for vcpkg.

And the PR in vcpkg is still on going. All tests are passed.
https://github.com/deshanxiao/vcpkg/tree/deshan/remove-patch

Why are the changes needed?

Currently, we rely on vcpkg's patch mechanism to support vcpkg. Every time a new version is released, the patch needs to be regenerated, which is very inconvenient.

We do not need to regenerate the patch any more after the PR.

How was this patch tested?

Test with vcpkg local branch:

vcpkg_from_git(
  URL git@github.com:deshanxiao/orc.git
  OUT_SOURCE_PATH SOURCE_PATH
  HEAD_REF deshan/vcpkg
)

Then execute cmake with vcpkg

(base) deshanxiao@deshanxiao-Virtual-Machine:~/orc/conan/all/test_package$ cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake .
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /home/deshanxiao/vcpkg/installed/x64-linux/lib/libz.a (found version "1.3.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Protobuf: /home/deshanxiao/vcpkg/installed/x64-linux/tools/protobuf/protoc (found version "28.3.0")
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /home/deshanxiao/orc/conan/all/test_package

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

No

@github-actions github-actions Bot added the BUILD label Nov 27, 2024
@deshanxiao
deshanxiao marked this pull request as draft November 27, 2024 06:24

@dongjoon-hyun dongjoon-hyun left a comment

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.

Thank you.

cc @wgtmac , @williamhyun

@deshanxiao
deshanxiao marked this pull request as ready for review November 27, 2024 06:39
Comment thread CMakeLists.txt Resolved
elseif (ORC_PACKAGE_KIND STREQUAL "vcpkg")
find_package(Snappy CONFIG REQUIRED)
add_library (orc_snappy INTERFACE IMPORTED)
target_link_libraries(orc_snappy INTERFACE Snappy::snappy)

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 doesn't need to call target_include_directories because Snappy::snappy already exported the headers?

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.

@wgtmac Actually, we don't call target_include_directories here, right?

Comment thread cmake_modules/ThirdpartyToolchain.cmake Resolved
Comment thread cmake_modules/ThirdpartyToolchain.cmake Resolved
@deshanxiao

Copy link
Copy Markdown
Contributor Author

For vcpkg repo changes, we rely on the ORC release which includes this PR and then I can make a PR there.

@wgtmac wgtmac left a comment

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.

+1 Thanks!

@wgtmac

wgtmac commented Nov 28, 2024

Copy link
Copy Markdown
Member

which includes this PR and then I can make a P

Should we backport it to branch-2.0? This does not involve code change so I believe is safe.

@deshanxiao

Copy link
Copy Markdown
Contributor Author

Sure, we can.

@deshanxiao

Copy link
Copy Markdown
Contributor Author

Hi @wgtmac I tried to do the backport in branch-2.0 and found many conflicts due to the commit:

4131417#diff-6c9de59647d8013be967b7259ce33ba22923a7c340383bbf9a55ec1aa4d03c03

Shall we backport it first?

@wgtmac

wgtmac commented Nov 28, 2024

Copy link
Copy Markdown
Member

No, let's release them together in 2.1.0 then.

@wgtmac

wgtmac commented Nov 29, 2024

Copy link
Copy Markdown
Member

Feel free to merge it when ready. @deshanxiao

@deshanxiao

Copy link
Copy Markdown
Contributor Author

Merged to main and target for v2.1.0. Thanks @wgtmac and @dongjoon-hyun !

@deshanxiao deshanxiao added this to the 2.1.0 milestone Nov 29, 2024
@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you so much! And, +1 for the decision to put this on v2.1.0.

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