Bug 263004 - graphics/tesseract: fix build on armv6/armv7
Summary: graphics/tesseract: fix build on armv6/armv7
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Mikael Urankar
URL: https://github.com/tesseract-ocr/tess...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-02 13:58 UTC by Robert Clausecker
Modified: 2022-04-03 15:26 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (pkubaj)
fuz: merge-quarterly?


Attachments
graphics/tesseract: fix build on armv6/armv7 (2.19 KB, patch)
2022-04-02 13:58 UTC, Robert Clausecker
fuz: maintainer-approval? (pkubaj)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker freebsd_committer freebsd_triage 2022-04-02 13:58:17 UTC
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.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-04-03 07:38:24 UTC
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(+)
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-04-03 15:24:40 UTC
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(+)