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

Initial support for OpenSSL 3.0.0-alpha17 #1264

Merged
merged 68 commits into from
Jun 19, 2021
Merged

Initial support for OpenSSL 3.0.0-alpha17 #1264

merged 68 commits into from
Jun 19, 2021

Conversation

sfackler
Copy link
Owner

Closes #1263

@sfackler
Copy link
Owner Author

Test failures are due to openssl/openssl#12543.

@sfackler sfackler changed the title Initial support for OpenSSL 3.0.0-alpha1 Initial support for OpenSSL 3.0.0-alpha5 Jul 30, 2020
@sfackler sfackler changed the title Initial support for OpenSSL 3.0.0-alpha5 Initial support for OpenSSL 3.0.0-alpha6 Sep 12, 2020
@sfackler sfackler changed the title Initial support for OpenSSL 3.0.0-alpha6 Initial support for OpenSSL 3.0.0-alpha7 Oct 26, 2020
@sfackler sfackler changed the title Initial support for OpenSSL 3.0.0-alpha7 Initial support for OpenSSL 3.0.0-alpha8 Nov 13, 2020
@wongsyrone
Copy link

OpenSSL migration guide merged into the master branch: https://github.com/openssl/openssl/blob/master/doc/man7/migration_guide.pod

@sfackler sfackler merged commit 4722f97 into master Jun 19, 2021
@sfackler sfackler deleted the openssl-300 branch June 19, 2021 00:13
@satya-rajesh
Copy link

In which release will openssl 3.0.0 support added ?

@sfackler
Copy link
Owner Author

The release made yesterday.

cuviper added a commit to cuviper/rust that referenced this pull request 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
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jun 28, 2021
Add support for OpenSSL 3.0.0

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
divanorama added a commit to divanorama/nixpkgs that referenced this pull request Nov 16, 2022
Upstream package didn't have recent releases. Currently build fails with something like
```
  running: "/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/nix/store/f95kxwhnr2bazy7nl6wzwjiak02dlp9v-openssl-3.0.7-dev/include" "-Wall" "-Wextra" "-E" "build/expando.c"
  cargo:warning=build/expando.c:4:24: error: pasting "RUST_VERSION_OPENSSL_" and "(" does not give a valid preprocessing token
  cargo:warning=    4 | #define VERSION2(n, v) RUST_VERSION_##n##_##v
  cargo:warning=      |                        ^~~~~~~~~~~~~
  cargo:warning=build/expando.c:5:23: note: in expansion of macro 'VERSION2'
  cargo:warning=    5 | #define VERSION(n, v) VERSION2(n, v)
  cargo:warning=      |                       ^~~~~~~~
  cargo:warning=build/expando.c:10:1: note: in expansion of macro 'VERSION'
  cargo:warning=   10 | VERSION(OPENSSL, OPENSSL_VERSION_NUMBER)
  cargo:warning=      | ^~~~~~~
  exit status: 1
```
which looks like sfackler/rust-openssl#1030
and should be fixed in a transitive dependency by sfackler/rust-openssl#1264

But rather than trying to bump transitive dependency let's downgrade
openssl used by this package.

ZHF: NixOS#199919
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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support OpenSSL 3.0.0
5 participants