From nobody Tue Apr 26 19:51:09 2022 X-Original-To: office@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BF2961AAA351 for ; Tue, 26 Apr 2022 19:51:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KnsvL3gMgz3w6C for ; Tue, 26 Apr 2022 19:51:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5683715A2F for ; Tue, 26 Apr 2022 19:51:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23QJpAuh069695 for ; Tue, 26 Apr 2022 19:51:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23QJpAna069694 for office@FreeBSD.org; Tue, 26 Apr 2022 19:51:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: [Bug 263596] editors/libreoffice: make robust against __cxa_exception ABI changes Date: Tue, 26 Apr 2022 19:51:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tijl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: office@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc dependson flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Office applications on FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-office List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-office@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651002670; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NqRe/fyFZ8KGR13n3IVe+L5Rq6AVqO4UFS5aAcolelI=; b=lYVcwuD6MNxfoK2oHExGJPcEyLlqnZo8Eq4WXTEV+FNeyENJfUxfEd9hG9oIuYfdr/jFE7 L5hc6DjrIgZvsvORowTW/kgaJa1pgKCtw/mTMWijsyrD4y5Gz40e51zHPrCRCfZw5wFmXo +EzZTZ5ls3HmLxsYSglFu7hl/YQiC+/2jl4XaOZK1YEHywpaPcm3AZC7VmHS16oBJkrctp e62quHZbeoGA17KsQFs9jhHTj3ipdOGuTg/OLtwj1vCyf5in93nNbYY1vG9pooS5khOYJu c3jJESYlt0lxRUg0uQAxr3R4puUqsdYOngF5fVG84qKYtXadgbFVlOlPQNCAwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651002670; a=rsa-sha256; cv=none; b=aFPo0TL6+PTCpvIJ/9eskdUrC9AwJvoB8T2WiGy3DvuaBHj9OODgTRAk2TYJfDQw86CkbI qH6hyqiQxvcpRcPhY8oQY9+93SiTifeIk2u3GcePZsEXPSZ4RV255CGowfPNya3TGx5mWS gUDS6aZvZB9jEPtg94r++messbBgYdbCjLb9LModhte3URGA5ckw4+EfxFVoaLtTNSPPxX AuO8zJCgRrhrUGAEMoHbx+AYaRzklmpKsGsuRBxkR7TxZGKL5S3objamDM0lBCPZSoxPmY /F14zuefdAM7CshXkfpTzbdp+zDi7bKWV4Pl4lgGBDBw+Jrb1cy01qJaPMnWXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263596 Bug ID: 263596 Summary: editors/libreoffice: make robust against __cxa_exception ABI changes Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: office@FreeBSD.org Reporter: tijl@FreeBSD.org CC: dim@FreeBSD.org, emaste@freebsd.org, pkubaj@FreeBSD.org Depends on: 263370 Flags: maintainer-feedback?(office@FreeBSD.org) Assignee: office@FreeBSD.org Created attachment 233519 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D233519&action= =3Dedit patch Patch libreoffice 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 libreoffice to detect this so packages built on 13.0 still work on 13.1. Change the LIB_DEPENDS on libunwind to a BUILD_DEPENDS because we only need unwind.h (for FreeBSD 13.0 and older where that header is hidden in /usr/include/c++/v1). I've build and run tested on i386 and I'll test on amd64 as well but it wou= ld be nice if others could test aarch64 and powerpc. Note that this patch dep= ends on the one in bug 263370. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263370 [Bug 263370] devel/libunwind: unwind.h incompatible with base unwind.h --=20 You are receiving this mail because: You are the assignee for the bug.=