Created attachment 243071 [details] Patch to fix build against OpenSSL 3.0 in 14.0-CURRENT Patch to allow building in FreeBSD 14.0-CURRENT (OpenSSL 3.0.9). Fixes : - detection of OpenSSL version (a bit hacky IMHO) - changes breaking compilation Doesn't cover the replacement of obsoleted functions (specially the move from engines to providers) which is way above my paygrade. I submitted the patch upstream as a PR (https://github.com/openca/libpki/pull/74). Builds with poudriere on FreeBSD 13.2-p1 and 14.0-CURRENT (arch x86_64).
Hello, I'm getting a lot of (negative) feedback from pkg-fallout asking for a PR... is there something I should do ? Bruno
Hi, Can you send me a git formatted patch please? This patch does not apply cleanly.
Created attachment 243924 [details] git diff from ports tree root Hello, Thanks for quick answer ! I made a git diff from the ports tree root, could this be better ? Bruno
Perfect. Will land in my next batch of commits.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a07283aae1c15d460641ec311f4e5a3c6c122151 commit a07283aae1c15d460641ec311f4e5a3c6c122151 Author: Bruno Damour <bruno@ruomad.net> AuthorDate: 2023-08-07 14:15:13 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-07 15:24:45 +0000 security/libpki: Fix build with openssl3 Fixes : - detection of OpenSSL version (a bit hacky IMHO) - changes breaking compilation Doesn't cover the replacement of obsoleted functions (specially the move from engines to providers) which is way above my paygrade. This patch has been upstream as a PR (https://github.com/openca/libpki/pull/74). PR: 272280 Approved by: bruno@ruomad.net (submitter is maintainer) security/libpki/Makefile | 7 +- security/libpki/distinfo | 2 +- security/libpki/files/patch-acinclude.m4 (new) | 16 ++++ .../patch-src-drivers-engine-engine_hsm.c (new) | 12 +++ ...ch-src-drivers-openssl-openssl_hsm_pkey.c (new) | 59 ++++++++++++++ .../files/patch-src-libpki-prqp-prqp_asn1.h (new) | 53 +++++++++++++ .../files/patch-src-openssl-pki_ocsp_resp.c (new) | 14 ++++ .../files/patch-src-openssl-pki_x509_cert.c (new) | 26 ++++++ .../files/patch-src-openssl-pki_x509_req.c (new) | 14 ++++ security/libpki/files/patch-src-pki_init.c (new) | 13 +++ security/libpki/files/patch-src-pki_x509.c (new) | 92 ++++++++++++++++++++++ 11 files changed, 304 insertions(+), 4 deletions(-)