-
Notifications
You must be signed in to change notification settings - Fork 598
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
feat(build): link openssl statically #2984
Conversation
Basically, enabling statically linked openssl is as easy as
However, this change involves too many other changes, like enabling cert discovery by ourselves. So I'd close this and see if we really need statically link openssl in the future. Indeed, we can use rustls instead. |
|
Tested and works with s3. However, unit test OOM. We should have a flag to enable / disable statically linked openssl... |
Signed-off-by: Alex Chi <iskyzh@gmail.com>
eabeb84
to
685bb84
Compare
There're still bugs with cargo-hakari that prevents setting the feature flag. Need to report to upstream 😇 |
Signed-off-by: Alex Chi <iskyzh@gmail.com>
Signed-off-by: Alex Chi <iskyzh@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has totally checked 821 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
819 | 1 | 1 | 0 |
Click to see the invalid file list
- src/utils/static-link/src/lib.rs
src/utils/static-link/src/lib.rs
Outdated
@@ -0,0 +1,8 @@ | |||
#[cfg(test)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[cfg(test)] | |
// Copyright 2022 Singularity Data | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
// See the License for the specific language governing permissions and | |
// limitations under the License. | |
#[cfg(test)] |
Also a bug with rustc. It seems that compile RisingWave 1. with static-link 2. and then without it will cause linker to panic. Anyway, |
Codecov Report
@@ Coverage Diff @@
## main #2984 +/- ##
=======================================
Coverage 72.97% 72.97%
=======================================
Files 720 721 +1
Lines 96471 96472 +1
=======================================
+ Hits 70400 70401 +1
Misses 26071 26071
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Signed-off-by: Alex Chi iskyzh@gmail.com
What's changed and what's your intention?
Statically link openssl.
Need to test if works with s3.
Checklist
./risedev check
(or alias,./risedev c
)Refer to a related PR or issue link (optional)
close #2973