Page MenuHomeFreeBSD

databases/mysql80-server: Fix build with libressl
ClosedPublic

Authored by zirias on Dec 6 2023, 12:06 PM.
Tags
None
Referenced Files
F156911041: D42922.diff
Sun, May 17, 7:18 AM
F156881255: D42922.id131306.diff
Sun, May 17, 1:32 AM
Unknown Object (File)
Fri, May 15, 3:03 PM
Unknown Object (File)
Fri, May 15, 9:31 AM
Unknown Object (File)
Fri, May 15, 8:15 AM
Unknown Object (File)
Thu, May 14, 8:01 PM
Unknown Object (File)
Thu, May 14, 4:37 PM
Unknown Object (File)
Tue, May 12, 7:14 AM
Subscribers
None

Details

Summary

Upstream commit d737d2a [1] introduced three code paths for OpenSSL
<1.1, >=3.0 and between, none of which currently works with LibreSSL.
3.x APIs are not yet supported, and the code path for <1.1 directly
accesses struct members that were made opaque in LibreSSL as well.
Finally, the code path for >=1.1 uses DH_new_by_nid() which is missing
from LibreSSL.

Therefore add a patch introducing a fourth code path, doing essentially
the same as the version for OpenSSL <1.1, but using the accessor methods
instead of directly accessing struct members.

Also remove patches for viossl[factories].cc, which aren't needed any
more for current LibreSSL.

[1] https://github.com/mysql/mysql-server/commit/d737d2a3ef6fc82d933a2345769835e8c2e4f700

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zirias created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Dec 13 2023, 10:57 AM
This revision was automatically updated to reflect the committed changes.