[GLUTEN-8232][VL] Allow to enable dynamic openssl link in VCPKG packaging#11444
[GLUTEN-8232][VL] Allow to enable dynamic openssl link in VCPKG packaging#11444zhouyuan wants to merge 11 commits into
Conversation
ce8f244 to
b55532a
Compare
9febdcd to
5079457
Compare
philo-he
left a comment
There was a problem hiding this comment.
Two comments. Please check if they make sense. Thanks.
| run: | | ||
| docker pull apache/gluten:vcpkg-centos-7 | ||
| docker run -v $GITHUB_WORKSPACE:/work -w /work apache/gluten:vcpkg-centos-7 bash -c " | ||
| docker pull apache/gluten:vcpkg-centos-9 |
There was a problem hiding this comment.
Suggest setting container field with centos 9 image, which is a standard way. I assume it's compatible with GHA checkout.
| endif() | ||
|
|
||
| if(PORT STREQUAL "openssl") | ||
| set(VCPKG_LIBRARY_LINKAGE dynamic) |
There was a problem hiding this comment.
Can we use dynamic link only when FIPS is enabled?
My understanding is that FIPS is not a requirement for many users. Then, the current static link for openssl may be good for them.
There was a problem hiding this comment.
only enable this when VCPKG_DYNAMIC_OPENSSL is on
aabd20e to
2f47e7d
Compare
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
This PR was auto-closed because it has been stalled for 10 days with no activity. Please feel free to reopen if it is still valid. Thanks. |
|
FYI. From what I recall based on my previous investigation, the preferred approach is to dynamically link OpenSSL installed in user's environment to use the FIPS feature, rather than going through vcpkg. |
I see. Since we didn't specify an absolute path for link, the difference here is only the openssl version liked to Gluten. FIPS is transparent at link time. |
Signed-off-by: Yuan <yuanzhou@apache.org> fix Signed-off-by: Yuan <yuanzhou@apache.org> install libcrypto/libssl Signed-off-by: Yuan <yuanzhou@apache.org> fix Signed-off-by: Yuan <yuanzhou@apache.org>
73d297a to
44b6235
Compare
Signed-off-by: Yuan <yuanzhou@apache.org>
Signed-off-by: Yuan <yuanzhou@apache.org>
eb17800 to
30980cd
Compare
This reverts commit 30980cd.
Signed-off-by: Yuan <yuanzhou@apache.org>
Signed-off-by: Yuan <yuanzhou@apache.org>
This reverts commit baf5225.
|
with this feature the libvelox.so will link dynamically |
What changes are proposed in this pull request?
This patch enabled dynamic openssl to include FIPS feature in vcpkg build.
The feature is off by default, it can be enabled by set env
VCPKG_DYNAMIC_OPENSSLtoONIn the runtime user will need to ensure the libssl.so & libcrypt.so are available otherwise Gluten will fail to run
How was this patch tested?
pass GHA
Related issue: #8232