From nobody Tue Apr 26 19:51:09 2022 X-Original-To: ports-bugs@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 BE3251AAA350 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 4KnsvL2Qtjz3wMJ 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 33EE8157F4 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 23QJpA9W069687 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 23QJpAEo069686 for ports-bugs@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: ports-bugs@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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@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=QcOG14fqimM6XSZf61z6m5FB/ywOmacAA+vpdc9xNiDNkScJMfIqsNctfKUzv1WFxBPA6T 9atj+YxgPKwFWEOuukcsYn6vlALFJYwK0NXoSenT5Dx1KB+TQRaBG6D22CRY4ZXqxm+yzS 9yorenko4potZk6Qo49RC9e70R0WcV/4aU+VBUbXqL+XpReXBMichGrnVAmXSAuho8lZo0 zZSYIxZXMVNEYI1uz6EHV7+vPdFhppdTPoa4iDLdJ+dxLaXRC2bhd7+Yor0jYnwvCIQCr/ 8b79EHxbCI4dw1vqGfxMFpVOVEOhJuGtknm1htbtCGPsO1MUcHTPnxQLvj9JcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651002670; a=rsa-sha256; cv=none; b=uKcgUM+DcVtt3hs0p4hgiKRQb1yOlZJpHun7GFCfAlrr4x5bpE7yEMsu0OGLItFEPItcym PvyGMXop6+3NZqe3/NAhwDurJugOrioeSMGwN3ZFQBBmwpT5oBhfRlmCQQ1h3zSGXNa/oV /LaONLo+D7pGwnm/mJ/mQ/Ye7myOYEXlu47AWc79ozQJY/CGqFFxDs5zdxweqGWgQnsdlb ja3xr+O51+cNN7coSvPJYAzCJT7AUoke3D2WaAtABaKAO/PMJb9jMi7U8QN6T5golqadUV yMJXqLda66dG1cKSh9gavQgExVrbLR1T7Q5GK7xE7UE8jp1SMnmMAFdyQpG3fQ== 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.=