From owner-dev-commits-ports-main@freebsd.org Fri Sep 24 17:32:13 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0264267121E; Fri, 24 Sep 2021 17:32:13 +0000 (UTC) (envelope-from git@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 4HGJxm5pLgz3PTC; Fri, 24 Sep 2021 17:32:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 A87C21A9F3; Fri, 24 Sep 2021 17:32:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18OHWCgV009404; Fri, 24 Sep 2021 17:32:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18OHWCNZ009403; Fri, 24 Sep 2021 17:32:12 GMT (envelope-from git) Date: Fri, 24 Sep 2021 17:32:12 GMT Message-Id: <202109241732.18OHWCNZ009403@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Tobias C. Berner" Subject: git: 51a8c14d5209 - main - editors/libreoffice: fix build against freetype2-2.11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tcberner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 51a8c14d5209368d6223649b7a3a919c9eccf8d4 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2021 17:32:13 -0000 The branch main has been updated by tcberner: URL: https://cgit.FreeBSD.org/ports/commit/?id=51a8c14d5209368d6223649b7a3a919c9eccf8d4 commit 51a8c14d5209368d6223649b7a3a919c9eccf8d4 Author: Tobias C. Berner AuthorDate: 2021-09-24 16:54:57 +0000 Commit: Tobias C. Berner CommitDate: 2021-09-24 17:32:01 +0000 editors/libreoffice: fix build against freetype2-2.11 - Build was broken by the update of freetype2 to 2.11. This was not caught by the exp-run as libreoffice was updated after the exp-run had been done, but prior to the commit. Obtained from: https://github.com/archlinux/svntogit-packages/commit/1db0f16aa08d3d7c13ecca8fd1c2c20c4b255504 PR: 251512 Reported by: jrm --- editors/libreoffice/Makefile | 1 + .../patch-external_skia_UnpackedTarball__skia.mk | 6 ++-- editors/libreoffice/files/skia-freetype2.11.patch | 38 ++++++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile index 07f8c3c63e42..a9e56764468c 100644 --- a/editors/libreoffice/Makefile +++ b/editors/libreoffice/Makefile @@ -329,6 +329,7 @@ post-patch: pre-configure: @${TOUCH} ${WRKSRC}/autogen.lastrun + ${CP} ${FILESDIR}/skia-freetype2.11.patch ${WRKSRC}/external/skia post-configure: @${TOUCH} ${WRKSRC}/src.downloaded diff --git a/editors/libreoffice/files/patch-external_skia_UnpackedTarball__skia.mk b/editors/libreoffice/files/patch-external_skia_UnpackedTarball__skia.mk index a7214fab3033..f8239e909752 100644 --- a/editors/libreoffice/files/patch-external_skia_UnpackedTarball__skia.mk +++ b/editors/libreoffice/files/patch-external_skia_UnpackedTarball__skia.mk @@ -1,9 +1,11 @@ ---- external/skia/UnpackedTarball_skia.mk.orig 2021-02-05 14:00:19 UTC +--- external/skia/UnpackedTarball_skia.mk.orig 2021-09-08 17:53:20 UTC +++ external/skia/UnpackedTarball_skia.mk -@@ -39,6 +39,7 @@ skia_patches := \ +@@ -39,6 +39,8 @@ skia_patches := \ fast-png-write.patch.1 \ skia_sk_cpu_sse_level_0_by_default.patch.1 \ fix-warnings.patch.1 \ + gfx-skia-skia-src-core-SkCpu.cpp.patch.0 \ ++ skia-freetype2.11.patch \ $(eval $(call gb_UnpackedTarball_set_patchlevel,skia,1)) + diff --git a/editors/libreoffice/files/skia-freetype2.11.patch b/editors/libreoffice/files/skia-freetype2.11.patch new file mode 100644 index 000000000000..aabdb1f8c6e1 --- /dev/null +++ b/editors/libreoffice/files/skia-freetype2.11.patch @@ -0,0 +1,38 @@ +--- skia/src/ports/SkFontHost_FreeType_common.cpp.orig 2021-03-01 15:53:09.178606791 +0100 ++++ skia/src/ports/SkFontHost_FreeType_common.cpp 2021-08-12 17:48:32.358901987 +0200 +@@ -665,8 +665,13 @@ + canvas->drawPaint(paint); + break; + } ++#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11 ++ case FT_COLR_PAINTFORMAT_TRANSFORM: { ++ SkMatrix transform = ToSkMatrix(colrv1_paint.u.transform.affine); ++#else + case FT_COLR_PAINTFORMAT_TRANSFORMED: { + SkMatrix transform = ToSkMatrix(colrv1_paint.u.transformed.affine); ++#endif + + canvas->concat(transform); + break; +@@ -760,12 +765,20 @@ + traverse_result = colrv1_start_glyph(canvas, palette, face, paint.u.colr_glyph.glyphID, + FT_COLOR_NO_ROOT_TRANSFORM); + break; ++#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11 ++ case FT_COLR_PAINTFORMAT_TRANSFORM: ++#else + case FT_COLR_PAINTFORMAT_TRANSFORMED: ++#endif + canvas->saveLayer(nullptr, nullptr); + // Traverse / draw operation will apply transform. + colrv1_draw_paint(canvas, palette, face, paint); + traverse_result = ++#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11 ++ colrv1_traverse_paint(canvas, palette, face, paint.u.transform.paint); ++#else + colrv1_traverse_paint(canvas, palette, face, paint.u.transformed.paint); ++#endif + canvas->restore(); + break; + case FT_COLR_PAINTFORMAT_ROTATE: +