Created attachment 232892 [details] print/ghostscript9-agpl-base: fix build on armv6/armv7 The bundled version of tesseract requires the <asm/hwcap.h> header to detect the availability of NEON instructions on armv7. This issue has already been reported to up stream. I am going to file a similar PR with graphics/tesseract shortly. Please also consider unbundling tesseract or at least to make it optional in accordance with the general ports policies. Please MFH this change as otherwise no arm packages of this port can be produced for 2022Q2.
See also bug #263004.
OCR support is indeed optional, disable using --without-tesseract in CONFIGURE_ARGS
(In reply to Charlie Li from comment #2) Yes, making it an option is also important. But even if OCR support is selected, it should come from graphics/tesseract, not the bundled copy.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=16f0acba590a9b850c9a23759ed37427507910bd commit 16f0acba590a9b850c9a23759ed37427507910bd Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2022-04-02 12:51:22 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2022-04-03 07:37:54 +0000 print/ghostscript9-agpl-base: Fix build on armv7 The bundled version of tesseract requires the <asm/hwcap.h> 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) .../patch-tesseract_src_arch_simddetect.cpp (new) | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+)
A commit in branch 2022Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3ab0c8c9a420bc144618ec4e3d97c611f36cacd9 commit 3ab0c8c9a420bc144618ec4e3d97c611f36cacd9 Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2022-04-02 12:51:22 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2022-04-03 15:24:13 +0000 print/ghostscript9-agpl-base: Fix build on armv7 The bundled version of tesseract requires the <asm/hwcap.h> 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) (cherry picked from commit 16f0acba590a9b850c9a23759ed37427507910bd) .../patch-tesseract_src_arch_simddetect.cpp (new) | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+)