From nobody Sun Apr 03 07:37:58 2022 X-Original-To: dev-commits-ports-all@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 2F58C1A417F5; Sun, 3 Apr 2022 07:37:59 +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 4KWQjz0LY0z4T8d; Sun, 3 Apr 2022 07:37:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648971479; 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=i6ceVMSJn9BowqpGIo1VtTWCoEFs/hUXfd2d8Na/xuw=; b=qgeSOoe3eW9+uJIzDuzNlbubzXb+oxVVbnB+jmqlj8EtDPFJrXNmqcSIRKrT/bsSi+ggDP uopby7oXXvcWQvURsYueLUqHiPypcappOCDFXwoysSD5tpsCCSBRE5KVI1ZZ/8hPhyU56O PXhCW+WCgnS+IkWNwEiGciofNo1GpMbD29IS6onHsjA/A08oq5TTuUEt2CX94xLPtGVeHT exKFIKDdlBXpZUYq1nC5nAe3IW2+gz446tBJEVdB749o0/bZgIDipsbfjBaGuf7rTBSG+7 N1GiZHH/HE1vEwTWBjsKfZW3/cgWxoXejdfPf1Miy/Y78tdt5SOuTw1umcUYXw== 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 BF4401969E; Sun, 3 Apr 2022 07:37:58 +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 2337bw0a063357; Sun, 3 Apr 2022 07:37:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2337bwE1063356; Sun, 3 Apr 2022 07:37:58 GMT (envelope-from git) Date: Sun, 3 Apr 2022 07:37:58 GMT Message-Id: <202204030737.2337bwE1063356@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: 16f0acba590a - main - print/ghostscript9-agpl-base: Fix build on armv7 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 16f0acba590a9b850c9a23759ed37427507910bd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648971479; 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=i6ceVMSJn9BowqpGIo1VtTWCoEFs/hUXfd2d8Na/xuw=; b=biyRABMdym/xj78AqSD15E2ExvYquIP0gOMxX6AE43xLEjjasGmb1uqSGHCh2vqY2HvZU2 p7FS+aFBF3h3NoZgbfaM3t/KpW8o9+OEYBM4H4KpwNkoqYP+8V8PRFo+Gw3I+CtbJFx2ku Cl18ZeqdXnkbSuDgrjgesFfsbCpIpGetFcm4uzMsOkMgg9su/QFoIbbP4wf1tVdjRd8emk e2CGdv7SHeSjYFH3dP01VlZcnjjxuzUeCmUxgAlyABJ/wvIqXzBr2953Tnb6fa06vHpPWz 7P1qFzPkLiZ8Yta3D9Wacqfct8n1LfqTGqvOVH/zjZ96lblJIN2ZY5caeLcOOQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648971479; a=rsa-sha256; cv=none; b=SnHqC9QvyzxbXk79MspUcc6OiY1R7iYr1R3LhhIUOeyKjZc/enG9v4wTTO+DIV1GYH+KS1 lVLK7KVOmo76/SsVhbdjQ7A570j0UqzWTifgiRnpDKaUqNUWguQQafqAL3UemF15XFSi1c wVGcN3XHyhLaxFYc+z9NJbkU9OJ5d/sky1D9Zg32LPbpvRo4HBKeWdcOWukmLm2ltO4yfH 05/0jXQ6jULqIdlpSsbtapxG1Ir3bBsvy5bwvHg3QyvVp2Np4zCA/BqSGKECbP9NxtPIUg D5B1kR8r4BDL11gCSW4iJhox+i84ir+b3m02HKvDYN8wzl/HTzmNORD4ZGmOeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=16f0acba590a9b850c9a23759ed37427507910bd commit 16f0acba590a9b850c9a23759ed37427507910bd Author: Robert Clausecker AuthorDate: 2022-04-02 12:51:22 +0000 Commit: Mikael Urankar CommitDate: 2022-04-03 07:37:54 +0000 print/ghostscript9-agpl-base: Fix build on armv7 The bundled version of tesseract requires the header to detect the availability of NEON instructions on armv7. This issue has already been reported to up stream. Reported upstream: https://github.com/tesseract-ocr/tesseract/pull/3782 PR: 263003 Approved by: portmgr (build fix blanket) --- .../files/patch-tesseract_src_arch_simddetect.cpp | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/print/ghostscript9-agpl-base/files/patch-tesseract_src_arch_simddetect.cpp b/print/ghostscript9-agpl-base/files/patch-tesseract_src_arch_simddetect.cpp new file mode 100644 index 000000000000..85afcf5d10f9 --- /dev/null +++ b/print/ghostscript9-agpl-base/files/patch-tesseract_src_arch_simddetect.cpp @@ -0,0 +1,34 @@ +--- tesseract/src/arch/simddetect.cpp.orig 2021-09-27 07:44:02 UTC ++++ tesseract/src/arch/simddetect.cpp +@@ -40,10 +40,13 @@ + #if defined(HAVE_NEON) && !defined(__aarch64__) + #ifdef ANDROID + #include +-#else ++#elif defined(__linux__) + /* Assume linux */ + #include + #include ++#elif defined(__FreeBSD__) ++#include ++#include + #endif + #endif + +@@ -188,9 +191,15 @@ SIMDDetect::SIMDDetect() { + neon_available_ = (android_getCpuFeatures() & + ANDROID_CPU_ARM_FEATURE_NEON); + } +-#else ++#elif defined(__linux__) + /* Assume linux */ + neon_available_ = getauxval(AT_HWCAP) & HWCAP_NEON; ++#elif defined(__FreeBSD__) ++ unsigned long hwcap = 0; ++ elf_aux_info(AT_HWCAP, &hwcap, sizeof hwcap); ++ neon_available_ = hwcap & HWCAP_NEON; ++#else ++ neon_available_ = 0; + #endif + #endif +