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

Build failure on Mariner (azurelinux) because of unsupported cipher chacha20_poly1305 #12258

Open
GalBr opened this issue Jan 9, 2025 · 1 comment

Comments

@GalBr
Copy link

GalBr commented Jan 9, 2025

When trying to build cryptography from source on Mariner (azurelinux), the build fails:

  error[E0599]: no function or associated item named `chacha20_poly1305` found for struct `openssl::cipher::Cipher` in the current scope
     --> src/backend/aead.rs:459:50
      |
  459 |                         openssl::cipher::Cipher::chacha20_poly1305(),
      |                                                  ^^^^^^^^^^^^^^^^^ function or associated item not found in `Cipher`

Apparently Mariner doesn't support chaha20_poly1305. It seems that Azure patched the problematic code in order to work around this issue. (source)
The package was installed with pip install --no-binary ":all:".
Is this a known issue? Are there plans to integrate something more robust to the build? Some way to avoid this issue aside from changing the source code or using a wheel?

@alex
Copy link
Member

alex commented Jan 9, 2025

Is the OpenSSL that mariner has built with OPENSSL_NO_CHACHA? We don't currently support that build configuration, but we'd accept a patch to build correctly with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants