HomeFreeBSD

editors/openoffice-4: make robust against __cxa_exception ABI changes

Description

editors/openoffice-4: make robust against __cxa_exception ABI changes

Patch openoffice to replace cxa_get_globals()->caughtExceptions,
which is a pointer to the start of a struct
cxa_exception, with
cxa_current_primary_exception(), which is a pointer to the end. This
allows struct
cxa_exception to be extended at the start as was
recently done in FreeBSD main and stable/13 on 64-bit architectures.

Recently on FreeBSD main and stable/13 attribute((aligned)) was
added to struct _Unwind_Exception which changes its size on 32-bit
architectures, and that of __cxa_exception as well. Patch openoffice
to detect this so packages built on 13.0 still work on 13.1.

Add a build dependency on a recent version of devel/libunwind so we
always build with an unwind.h that has the right definition of
_Unwind_Exception.

Details

Provenance
tijlAuthored on Apr 27 2022, 8:17 PM
Parents
R11:678d3ec07f8b: sysutils/kubectl: Update to 1.23.6
Branches
Unknown
Tags
Unknown