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

Add support for OpenSSL 3.0.0 #86529

Merged
merged 2 commits into from
Jun 29, 2021
Merged

Add support for OpenSSL 3.0.0 #86529

merged 2 commits into from
Jun 29, 2021

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Jun 22, 2021

This updates the openssl and openssl-sys crates to support building
the toolchain with system libraries up to OpenSSL 3.0.0. This does not
affect the static version used via openssl-src in CI builds.

ref: sfackler/rust-openssl#1264

This updates the `openssl` and `openssl-sys` crates to support building
the toolchain with system libraries up to OpenSSL 3.0.0. This does not
affect the static version used via `openssl-src` in CI builds.

ref: sfackler/rust-openssl#1264
@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 22, 2021
@cuviper
Copy link
Member Author

cuviper commented Jun 22, 2021

For a concrete use, CentOS Stream 9 is upgrading OpenSSL already:
https://kojihub.stream.centos.org/koji/packageinfo?packageID=1415

@Mark-Simulacrum
Copy link
Member

r=me presuming this doesn't bump minimum version requirements anywhere. It may be a good idea to bump the openssl version referenced in src/tools/rustc-workspace-hack/Cargo.toml or elsewhere to try to avoid this being accidentally reverted (though it's not entirely likely that will happen).

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 28, 2021
@cuviper
Copy link
Member Author

cuviper commented Jun 28, 2021

r=me presuming this doesn't bump minimum version requirements anywhere.

Correct, it only adds more support, not taking anything away.

It may be a good idea to bump the openssl version referenced in src/tools/rustc-workspace-hack/Cargo.toml or elsewhere to try to avoid this being accidentally reverted (though it's not entirely likely that will happen).

Good idea, done!

r=Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jun 28, 2021

📌 Commit 92eedb2 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 28, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 29, 2021
Rollup of 7 pull requests

Successful merges:

 - rust-lang#86059 (Add new tool to check HTML)
 - rust-lang#86529 (Add support for OpenSSL 3.0.0)
 - rust-lang#86657 (Fix `future_prelude_collision` false positive)
 - rust-lang#86661 (Editon 2021 enables precise capture)
 - rust-lang#86671 (Turn non_fmt_panic into a future_incompatible edition lint.)
 - rust-lang#86673 (Make disjoint_capture_migration an edition lint.)
 - rust-lang#86678 (Fix garbled suggestion for missing lifetime specifier)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit c9ac096 into rust-lang:master Jun 29, 2021
@rustbot rustbot added this to the 1.55.0 milestone Jun 29, 2021
@cuviper cuviper deleted the ssl3 branch September 21, 2021 16:43
petr-muller added a commit to petr-muller/cincinnati that referenced this pull request May 5, 2023
Resolves:

```
warning: build/expando.c:4:24: error: pasting "RUST_VERSION_OPENSSL_" and "(" does not give a valid preprocessing token
warning:     4 | #define VERSION2(n, v) RUST_VERSION_##n##_##v
warning:       |                        ^~~~~~~~~~~~~
warning: build/expando.c:5:23: note: in expansion of macro 'VERSION2'
warning:     5 | #define VERSION(n, v) VERSION2(n, v)
warning:       |                       ^~~~~~~~
warning: build/expando.c:10:1: note: in expansion of macro 'VERSION'
warning:    10 | VERSION(OPENSSL, OPENSSL_VERSION_NUMBER)
warning:       | ^~~~~~~
error: failed to run custom build command for `openssl-sys v0.9.63`
```

From https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_cincinnati/786/pull-ci-openshift-cincinnati-master-customrust-images/1653741007713341440#1:build-log.txt%3A3892-3900

I was inspecting that CI job and found out that bumping to CentOS Stream 9
contains a bump to OpenSSL 3.0.0 which needed special support in the
`openssl` package:

- https://bugzilla.redhat.com/show_bug.cgi?id=1948976
- sfackler/rust-openssl#1264
- rust-lang/rust#86529
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants