Bug 236812 - [PATCH] graphics/tesseract: Make sure the port links against libthr.so
Summary: [PATCH] graphics/tesseract: Make sure the port links against libthr.so
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Raphael Kubo da Costa
URL:
Keywords:
Depends on:
Blocks: 236141
  Show dependency treegraph
 
Reported: 2019-03-26 22:09 UTC by Raphael Kubo da Costa
Modified: 2019-03-27 20:02 UTC (History)
3 users (show)

See Also:
pkubaj: maintainer-feedback+


Attachments
Proposed patch (1.24 KB, patch)
2019-03-26 22:09 UTC, Raphael Kubo da Costa
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa freebsd_committer 2019-03-26 22:09:01 UTC
Created attachment 203171 [details]
Proposed patch

This fixes the build in HEAD after lld received support for --no-allow-shlib-undefined in base r345349.

Upstream looks for libpthread in sem_init(3), which is part of libc on FreeBSD. Look for a symbol that's in libpthread to make sure we link against it.

See also: https://github.com/tesseract-ocr/tesseract/issues/2344
Comment 1 Piotr Kubaj freebsd_committer 2019-03-27 07:07:09 UTC
(In reply to Raphael Kubo da Costa from comment #0)
Looks good, accepted.
Comment 2 commit-hook freebsd_committer 2019-03-27 07:51:22 UTC
A commit references this bug:

Author: rakuco
Date: Wed Mar 27 07:50:52 UTC 2019
New revision: 496936
URL: https://svnweb.freebsd.org/changeset/ports/496936

Log:
  Make sure the port links against libthr.so

  This fixes the build in HEAD after lld received support for
  --no-allow-shlib-undefined in base r345349.

  Upstream looks for libpthread in sem_init(3), which is part of libc on
  FreeBSD. Look for a symbol that's in libpthread to make sure we link
  against it.

  See also: https://github.com/tesseract-ocr/tesseract/issues/2344

  PR:		236812
  Approved by:	Piotr Kubaj <pkubaj@anongoth.pl> (maintainer)

Changes:
  head/graphics/tesseract/Makefile
  head/graphics/tesseract/files/
  head/graphics/tesseract/files/patch-configure.ac