From nobody Wed Oct 04 20:03:04 2023 X-Original-To: dev-commits-ports-main@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 4S15GJ6Y3tz4w4gt; Wed, 4 Oct 2023 20:03:04 +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 4S15GJ5TvVz4H2c; Wed, 4 Oct 2023 20:03:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696449784; 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=VQlfAwmI/LeAQ9sXAIV8qGaxKuvYPu0Sj+lcoUUs//Q=; b=IA7P/iVjMnP3uy+thPUUziK4TGXzAePZHlAiaKAALQhgeLWB2I4IsI+D4hxXMcMqFCJbm1 b3Xea/TTq/I1OQl+ACHJT3HFlgZs0Tr+2J3rbQv6551rw4dVrxmjNyF6z4xxH6vFy95yeK dtmo0YLNX/2iU1wO1vF4XwW4n2949d2GQbtBmjCCBityn7cEvilPqjUTGaCpztYOgwH+tJ SxADRVnZkYb7ivTQ20ldrh0ZYVxxf9EsAim/3PgtORQyzUVgnncWXWRRqceOpIqiQ6qcke xYAtv7U+DCxCERT4tJJngjskUHWtiKFlmxMwr98cBXC2FmksB77nCfIX2yAJNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696449784; a=rsa-sha256; cv=none; b=Sgnc9I5gWKPdndK1YVAKKNok0RC0CRXv5K+j6E70bmIZcT+G5kpoCUe7zcP7CU/G06B6II IVDChMIyMJ6VvLCahwXthOjsJfjrQ+p8gM+DmHQvm/z/ZC7iRaR0Jz1S0zJ8Y6/rLFG5zF GiY3+DKuluQ4hUqxcRly5+nh7S+zNArKc2hQsE3irgFSj8VaomN4D9fHqww6NzFuKAHolL arIoxTsKQrolnynTa7/zNY3Ht2G3ItJEHQJMco+4hhhYjprdWm1I+Lgd6ScZRPZ2iiTLzj 1djXzOHPVvfRb6+tatCSzkBGmdMZw4+lmOaoRpZ47iwehtP7B6k8KIHW+xpMZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696449784; 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=VQlfAwmI/LeAQ9sXAIV8qGaxKuvYPu0Sj+lcoUUs//Q=; b=S+OcvRjx/bxBwteQTcwntjSDc9ih6NqghU891w80FKlryMolBWvfbuk0G/K+3NSSgaOdnD TWxrCKR7i7GFNsi76h1RRZUYRSI7i0dOp0ue+dym/I+/HcqhjWRom6EVpRCXIA4jqkbKEw g2FOniyjH44NqWNaCdYJa2wwEhSB5HjpQGtYanFgimJHiUsZejAQehZAgFUp7zFuOajK+i PlKAY/oaPn9NvMJDtKt+lZFe6jncu6byOMSlmlhthJV46+fqa6EksZ3R6rN5b5DkwASe4i LuwmxlYtUieAAb4up9NEnXBLKUjcJ8DxxcJyTInDI2qQAwZFDUnZguO2q67thg== 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 4S15GJ3wwdzrbd; Wed, 4 Oct 2023 20:03:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 394K34tp056502; Wed, 4 Oct 2023 20:03:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 394K34kC056499; Wed, 4 Oct 2023 20:03:04 GMT (envelope-from git) Date: Wed, 4 Oct 2023 20:03:04 GMT Message-Id: <202310042003.394K34kC056499@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 6e1435185574 - main - converters/wkhtmltopdf: fix build on armv7 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e1435185574836bea45bf9dab35b81b64fc158f Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=6e1435185574836bea45bf9dab35b81b64fc158f commit 6e1435185574836bea45bf9dab35b81b64fc158f Author: Robert Clausecker AuthorDate: 2023-10-03 23:40:18 +0000 Commit: Robert Clausecker CommitDate: 2023-10-04 20:01:38 +0000 converters/wkhtmltopdf: fix build on armv7 Import an old QT4 patch to fix the build. Obtained from: b0d780b0342270fef8bd26b4ae301d18467f5d04 MFH: 2023Q4 --- converters/wkhtmltopdf/Makefile | 1 - ...orm_graphics_filters_arm_FEGaussianBlurNEON.cpp | 11 ++++++++ ...latform_graphics_filters_arm_FELightingNEON.cpp | 16 ++++++++++++ .../files/patch-src_gui_kernel_qx11embed__x11.cpp | 29 ++++++++++++++++++++++ 4 files changed, 56 insertions(+), 1 deletion(-) diff --git a/converters/wkhtmltopdf/Makefile b/converters/wkhtmltopdf/Makefile index 95a2d2c62c0f..1fcd2ec5c1fc 100644 --- a/converters/wkhtmltopdf/Makefile +++ b/converters/wkhtmltopdf/Makefile @@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE DEPRECATED= Upstream abandoned the project EXPIRATION_DATE= 2024-06-30 BROKEN_armv6= fails to build: error: Not supported ARM architecture -BROKEN_armv7= fails to build: error: invalid operand for instruction BROKEN_mips64= fails to link: undefined reference to __sync_add_and_fetch_4 RUN_DEPENDS= webfonts>=0:x11-fonts/webfonts diff --git a/converters/wkhtmltopdf/files/patch-src_3rdparty_webkit_Source_WebCore_platform_graphics_filters_arm_FEGaussianBlurNEON.cpp b/converters/wkhtmltopdf/files/patch-src_3rdparty_webkit_Source_WebCore_platform_graphics_filters_arm_FEGaussianBlurNEON.cpp new file mode 100644 index 000000000000..ded07e4bb198 --- /dev/null +++ b/converters/wkhtmltopdf/files/patch-src_3rdparty_webkit_Source_WebCore_platform_graphics_filters_arm_FEGaussianBlurNEON.cpp @@ -0,0 +1,11 @@ +--- src/3rdparty/webkit/Source/WebCore/platform/graphics/filters/arm/FEGaussianBlurNEON.cpp.orig 2023-10-03 22:33:30 UTC ++++ src/3rdparty/webkit/Source/WebCore/platform/graphics/filters/arm/FEGaussianBlurNEON.cpp +@@ -285,7 +285,7 @@ TOSTRING(neonDrawAlphaChannelGaussianBlur) ":" NL + "vmov.u32 " REMAINING_STRIDES_R ", " REMAINING_STRIDES_S0 NL + // Early return for 0 strides. + "cmp " REMAINING_STRIDES_R ", #0" NL +- "ldmeqia sp!, {r4-r8, r10, r11, pc}" NL ++ "ldmiaeq sp!, {r4-r8, r10, r11, pc}" NL + + // Initialize the sum variable. + "vmov.u32 " SUM_Q ", #0" NL diff --git a/converters/wkhtmltopdf/files/patch-src_3rdparty_webkit_Source_WebCore_platform_graphics_filters_arm_FELightingNEON.cpp b/converters/wkhtmltopdf/files/patch-src_3rdparty_webkit_Source_WebCore_platform_graphics_filters_arm_FELightingNEON.cpp new file mode 100644 index 000000000000..4397f3ac2e80 --- /dev/null +++ b/converters/wkhtmltopdf/files/patch-src_3rdparty_webkit_Source_WebCore_platform_graphics_filters_arm_FELightingNEON.cpp @@ -0,0 +1,16 @@ +--- src/3rdparty/webkit/Source/WebCore/platform/graphics/filters/arm/FELightingNEON.cpp.orig 2023-10-03 22:30:40 UTC ++++ src/3rdparty/webkit/Source/WebCore/platform/graphics/filters/arm/FELightingNEON.cpp +@@ -398,11 +398,11 @@ TOSTRING(neonDrawLighting) ":" NL + "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL + "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL + "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL +- "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL ++ "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL + // The color values are stored in-place. + "strb r2, [" PIXELS_R ", #-11]" NL + "strb r3, [" PIXELS_R ", #-10]" NL +- "vmov.u32 r2, " TMP3_S2 NL ++ "vmov r2, " TMP3_S2 NL + "strb r2, [" PIXELS_R ", #-9]" NL + + // Continue to the next pixel. diff --git a/converters/wkhtmltopdf/files/patch-src_gui_kernel_qx11embed__x11.cpp b/converters/wkhtmltopdf/files/patch-src_gui_kernel_qx11embed__x11.cpp new file mode 100644 index 000000000000..7091bedefde3 --- /dev/null +++ b/converters/wkhtmltopdf/files/patch-src_gui_kernel_qx11embed__x11.cpp @@ -0,0 +1,29 @@ +--- src/gui/kernel/qx11embed_x11.cpp.orig 2023-10-03 21:02:05 UTC ++++ src/gui/kernel/qx11embed_x11.cpp +@@ -483,7 +483,7 @@ QX11EmbedWidget::QX11EmbedWidget(QWidget *parent) + | ExposureMask | StructureNotifyMask + | SubstructureNotifyMask | PropertyChangeMask); + +- long data[] = {XEMBED_VERSION, XEMBED_MAPPED}; ++ long data[] = {static_cast(XEMBED_VERSION), XEMBED_MAPPED}; + XChangeProperty(x11Info().display(), internalWinId(), ATOM(_XEMBED_INFO), + ATOM(_XEMBED_INFO), 32, PropModeReplace, + (unsigned char*) data, 2); +@@ -1578,7 +1578,7 @@ void QX11EmbedContainer::showEvent(QShowEvent *) + { + Q_D(QX11EmbedContainer); + if (d->client) { +- long data[] = {XEMBED_VERSION, XEMBED_MAPPED}; ++ long data[] = {static_cast(XEMBED_VERSION), XEMBED_MAPPED}; + XChangeProperty(x11Info().display(), d->client, ATOM(_XEMBED_INFO), ATOM(_XEMBED_INFO), 32, + PropModeReplace, (unsigned char *) data, 2); + } +@@ -1594,7 +1594,7 @@ void QX11EmbedContainer::hideEvent(QHideEvent *) + { + Q_D(QX11EmbedContainer); + if (d->client) { +- long data[] = {XEMBED_VERSION, XEMBED_MAPPED}; ++ long data[] = {static_cast(XEMBED_VERSION), XEMBED_MAPPED}; + XChangeProperty(x11Info().display(), d->client, ATOM(_XEMBED_INFO), ATOM(_XEMBED_INFO), 32, + PropModeReplace, (unsigned char *) data, 2); + }