Created attachment 232893 [details] graphics/tesseract: fix build on armv6/armv7 Tesseract requires the <asm/hwcap.h> header to detect the availability of NEON instructions on armv7. This commit adds a patch to use the appropriate FreeBSD interface for this purpose. This issue has already been reported to up stream. See also: https://github.com/tesseract-ocr/tesseract/pull/3782 See also: bug #263003 Tested with Poudriere on armv7 FreeBSD 13. Please MFH this fix.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=31efc7fa161a0da4982f5a3bf687e6bee405395f commit 31efc7fa161a0da4982f5a3bf687e6bee405395f Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2022-04-02 13:54:54 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2022-04-03 07:37:54 +0000 graphics/tesseract: Fix build on armv6/armv7 Tesseract requires the <asm/hwcap.h> header to detect the availability of NEON instructions on armv7. This commit adds a patch to use the appropriate FreeBSD interface for this purpose. This issue has already been reported to up stream. See also: https://github.com/tesseract-ocr/tesseract/pull/3782 See also: PR #263003 PR: 263004 Approved by: portmgr (build fix blanket) .../files/patch-src_arch_simddetect.cpp (new) | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+)
A commit in branch 2022Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8fce874533efe8c9a17678089076c5d1ab41d133 commit 8fce874533efe8c9a17678089076c5d1ab41d133 Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2022-04-02 13:54:54 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2022-04-03 15:24:19 +0000 graphics/tesseract: Fix build on armv6/armv7 Tesseract requires the <asm/hwcap.h> header to detect the availability of NEON instructions on armv7. This commit adds a patch to use the appropriate FreeBSD interface for this purpose. This issue has already been reported to up stream. See also: https://github.com/tesseract-ocr/tesseract/pull/3782 See also: PR #263003 PR: 263004 Approved by: portmgr (build fix blanket) (cherry picked from commit 31efc7fa161a0da4982f5a3bf687e6bee405395f) .../files/patch-src_arch_simddetect.cpp (new) | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+)