Page MenuHomeFreeBSD

Unbreak usr.bin/dc with OpenSSL 3
ClosedPublic

Authored by ngie on Aug 10 2023, 8:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 11, 4:47 PM
Unknown Object (File)
Dec 24 2024, 4:40 PM
Unknown Object (File)
Dec 22 2024, 11:56 PM
Unknown Object (File)
Nov 22 2024, 1:36 PM
Unknown Object (File)
Nov 16 2024, 12:16 PM
Unknown Object (File)
Nov 16 2024, 11:58 AM
Unknown Object (File)
Sep 27 2024, 2:34 PM
Unknown Object (File)
Sep 24 2024, 4:26 AM

Details

Summary

OpenSSL's BN_zero API has had a void return value since 1.1.x: chase the
change to unbreak the build on OpenSSL 3.x with MK_GH_BC == no.

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie requested review of this revision.Aug 10 2023, 8:37 PM

The patch seems correct, but this dc implementation is not built by default on FreeBSD-13 or later, and thus only relevant for STABLE-12 (unless WITHOUT_GH_BC is defined, preventing the build of Gavin D. Howards much improved bc and dc programs). It is therefore definitely relevant for STABLE-12, but a NOP on STABLE-13 and CURRENT built with default options.

In D41410#942912, @se wrote:

The patch seems correct, but this dc implementation is not built by default on FreeBSD-13 or later, and thus only relevant for STABLE-12 (unless WITHOUT_GH_BC is defined, preventing the build of Gavin D. Howards much improved bc and dc programs). It is therefore definitely relevant for STABLE-12, but a NOP on STABLE-13 and CURRENT built with default options.

I agree, but what's the point of shipping software with FreeBSD that doesn't compile?

+1, if we're still offering it as a build knob we need to either fix it or remove it.

This revision is now accepted and ready to land.Aug 10 2023, 11:01 PM
This revision was automatically updated to reflect the committed changes.