Bug 278966 - security/py-cryptography fails with libressl
Summary: security/py-cryptography fails with libressl
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-14 05:18 UTC by jakub_lach
Modified: 2024-05-20 08:33 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Just proof of concept (480 bytes, patch)
2024-05-14 05:33 UTC, jakub_lach
no flags Details | Diff
patch for security/py-cryptography/files/ (423 bytes, patch)
2024-05-15 18:53 UTC, Bernard Spil
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jakub_lach 2024-05-14 05:18:43 UTC
<snip>

  cargo:rustc-cfg=libressl381
  cargo:rustc-cfg=libressl382
  cargo:rustc-cfg=libressl390
  cargo:libressl_version_number=3090200f

  --- stderr
  thread 'main' panicked at /usr/obj/usr/ports/security/py-cryptography/work-py39/cryptography-42.0.5/cargo-crates/openssl-sys-0.9.99/build/main.rs:334:5:


  This crate is only compatible with OpenSSL (version 1.0.1 through 1.1.1, or 3), or LibreSSL 2.5
  through 3.8.1, but a different version of OpenSSL was found. The build is now aborting
  due to this version mismatch.

<snip>

It would be very nice if we could keep in line security/libressl updates with lang/rust and security/py-cryptography...
Comment 1 jakub_lach 2024-05-14 05:33:32 UTC
Created attachment 250635 [details]
Just proof of concept
Comment 2 Bernard Spil freebsd_committer freebsd_triage 2024-05-15 18:53:50 UTC
Created attachment 250684 [details]
patch for security/py-cryptography/files/

This works for me. Please test and report back
Comment 3 jakub_lach 2024-05-15 18:58:29 UTC
(In reply to Bernard Spil from comment #2)

Thanks, though this is the same apart from one character to the one I've posted? It jut overrides/updates version check.
Comment 4 Bernard Spil freebsd_committer freebsd_triage 2024-05-15 19:02:29 UTC
(In reply to jakub_lach from comment #3)
Jeah, I see that now. Same thing.
Comment 5 jakub_lach 2024-05-19 20:11:01 UTC
Fixed with py-cryptography update. Thanks!
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-05-19 22:01:30 UTC
For the record, the compilation fix for LibreSSL 3.9.1 was added in cryptography 42.0.6. Updated to 42.0.7 in ports 3bf9691c0bfa436fa3e5679b2bf9de8efc7c43d4.
Comment 7 Bernard Spil freebsd_committer freebsd_triage 2024-05-20 08:33:31 UTC
(In reply to Po-Chuan Hsieh from comment #6)
Great, thanks!