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)
Wed, May 8, 6:51 AM
Unknown Object (File)
Apr 28 2024, 12:13 PM
Unknown Object (File)
Apr 26 2024, 6:09 AM
Unknown Object (File)
Apr 26 2024, 3:13 AM
Unknown Object (File)
Apr 25 2024, 10:08 PM
Unknown Object (File)
Jan 10 2024, 2:54 PM
Unknown Object (File)
Dec 20 2023, 6:20 AM
Unknown Object (File)
Dec 7 2023, 7:11 PM

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.