Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynmically link openssl in vcpkg #1453

Closed
wants to merge 3 commits into from

Conversation

phoebusm
Copy link
Collaborator

Reference Issues/PRs

What does this implement or fix?

Any other comments?

Checklist

Checklist for code changes...
  • Have you updated the relevant docstrings, documentation and copyright notice?
  • Is this contribution tested against all ArcticDB's features?
  • Do all exceptions introduced raise appropriate error messages?
  • Are API changes highlighted in the PR description?
  • Is the PR labelled as enhancement or bug so it appears in autogenerated release notes?

@phoebusm phoebusm changed the title Try dynmically link openssl Dynmically link openssl Mar 22, 2024
@phoebusm phoebusm self-assigned this Mar 22, 2024
@phoebusm phoebusm added the enhancement New feature or request label Mar 22, 2024
@phoebusm phoebusm changed the title Dynmically link openssl Dynmically link openssl in vcpkg Mar 22, 2024
set(VCPKG_CMAKE_SYSTEM_NAME Linux)

if(${PORT} MATCHES "openssl")
set(VCPKG_LIBRARY_LINKAGE dynamic)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering shouldn't we require dynamic linking to the standard library as well in this case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think so but maybe not in the scope of this PR?


- name: Install dynamically linked library for tests
if: matrix.os == 'linux'
run: yum install -y https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/o/openssl11-1.1.1k-7.el7.x86_64.rpm
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why install it when we're building it with vcpkg?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because the wheel no longer bundle withopenssl library. Platform which runs arcticdb now requires openssl manually installed.

@poodlewars poodlewars marked this pull request as ready for review April 5, 2024 15:12
@phoebusm phoebusm marked this pull request as draft April 5, 2024 15:30
@phoebusm
Copy link
Collaborator Author

phoebusm commented Apr 5, 2024

The PR should be draft only for now as I am still testing the changes. Sorry for the time wasted on the review

@phoebusm phoebusm force-pushed the feature/openssl_dyn_linked_in_vcpkg branch from c307aaa to c4f9c4c Compare April 8, 2024 11:25
@phoebusm phoebusm marked this pull request as ready for review April 8, 2024 11:31
@poodlewars
Copy link
Collaborator

OpenSSL 1 is EOL so we can't require users to install it

@phoebusm
Copy link
Collaborator Author

phoebusm commented Apr 9, 2024

OpenSSL 1 is EOL so we can't require users to install it

Will upgrade to openssl v3, which aligns with our conda build too

@phoebusm phoebusm force-pushed the feature/openssl_dyn_linked_in_vcpkg branch from c4f9c4c to cae6960 Compare April 10, 2024 15:28
@phoebusm phoebusm force-pushed the feature/openssl_dyn_linked_in_vcpkg branch from 0da5a76 to cbba946 Compare April 11, 2024 06:40
@phoebusm
Copy link
Collaborator Author

The plan of dynmically linking openssl in scrapped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants