From nobody Sat Mar 05 22:58:15 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 A10AE19FA5A2 for ; Sat, 5 Mar 2022 22:58:16 +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 4KB0WD2Z2vz4ngS for ; Sat, 5 Mar 2022 22:58:16 +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 384B0DDB for ; Sat, 5 Mar 2022 22:58:16 +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 225MwGHT087637 for ; Sat, 5 Mar 2022 22:58:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 225MwGoJ087636 for office@FreeBSD.org; Sat, 5 Mar 2022 22:58:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: maintainer-approval requested: [Bug 262008] editors/libreoffice failed to build : [Attachment 232274] Fix build with PDFIUM and LTO enabled. Date: Sat, 05 Mar 2022 22:58:15 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: office@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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=1646521096; 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: in-reply-to:in-reply-to:references:references; bh=p/dbiGWxe9jV3OXkdXr5P4w84zJcnDk+xzmfxbLWI6A=; b=m2myzS1D42WptNQ2QIR2hUAmAZvWkztMzG5IRyTSc1HjqvnRX6XPGsb6L/GIrxNAWX7DMT 5vSjyer+2tk6pbiON04Rcw3y/FbEZE5SSsStRBUG153IozysACaMCUmhyVR/H0i1cqQIlF 7emohtWc0zdSa68daTXR97jmiWD4ru1YZ+IDewnQRlzaah++ZrAirB3pwNbj1Vce4jGxOQ mortPj6VX1g7eJ2W6ES6j3e+abso7ZA9VvRypjEZQ8IZkCpXw/cln1rW5EU7jLko/Sxmz8 3azKRP+58o1xBCAp87dLTopoG/tMW8UMOkSa2+iu75HJlxp8QcGPmoQtH+N1GA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646521096; a=rsa-sha256; cv=none; b=pfQvM+BtaYf3gnfW/YiG8NCjJKXW/XkwPrOWG3xi3Elcz5hxKY7FJjQpeHf48hPIQpGM3V AV6+9WhXjjyXsQ7VMz/u6i21/6yp9F4RZltg0EME4bX0z0S7Il7+XQRRAqeLETrb6N24cb 8Oh3c9q9KIWwk16KEMA4+1FU3mlqh23zv9XTnGx1Z89xT3NaAvDDv5LmaKV85Fbra48M8L 0B4QrxNFo+iEPJ59gcF93c0sOe4NIea7MCtm3Y8W/gNTV96er8bE0B4d3+7KS9E9qAK6Ou QnmI3Cwyy9Gs+nMm+57EN/1Gti+orZF9XzmRDqLEwW+t9Vra/vVYHipb+cJQSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Florian Walpen has asked FreeBSD Office Team for maintainer-approval: Bug 262008: editors/libreoffice failed to build https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262008 Attachment 232274: Fix build with PDFIUM and LTO enabled. https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232274&action=3Dedit --- Comment #46 from Florian Walpen --- Created attachment 232274 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232274&action= =3Dedit Fix build with PDFIUM and LTO enabled. This supposedly fixes the build failure with PDFIUM and LTO enabled: When libvcllo.so is linked together with libpdfiumlo.so, it also needs libopenjp2.so from graphics/openjpeg, since pdfium depends on that. Building with LTO exposes this as an error, complaining about undefined references to openjpeg library functions. This patch adds the missing linker flag "-lopenjp2". Tested on 13.0-RELEASE-p7, successfully opened some documents. What puzzles me is that the LTO package seems to use more disk space than t= he one without LTO. But I don't have time to investigate now.