[Bug 263004] graphics/tesseract: fix build on armv6/armv7

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 02 Apr 2022 13:58:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263004

            Bug ID: 263004
           Summary: graphics/tesseract: fix build on armv6/armv7
           Product: Ports & Packages
           Version: Latest
          Hardware: arm
               URL: https://github.com/tesseract-ocr/tesseract/pull/2978
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkubaj@FreeBSD.org
          Reporter: fuz@fuz.su
                CC: pkubaj@FreeBSD.org
             Flags: maintainer-feedback?(pkubaj@FreeBSD.org)
          Assignee: pkubaj@FreeBSD.org
 Attachment #232893 maintainer-approval?(pkubaj@FreeBSD.org)
             Flags:
             Flags: merge-quarterly?
                CC: pkubaj@FreeBSD.org

Created attachment 232893
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232893&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.