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.

(cherry picked from commit 88045c0549d90ad92d5fc630580705107a3f89f2)

Details

Provenance
tijlAuthored on Apr 27 2022, 8:17 PM
Parents
R11:a53915e59054: x11-toolkits/gtk40: update to 4.6.3
Branches
Unknown
Tags
Unknown