Bug 236812

Summary: [PATCH] graphics/tesseract: Make sure the port links against libthr.so
Product: Ports & Packages Reporter: Raphael Kubo da Costa <rakuco>
Component: Individual Port(s)Assignee: Raphael Kubo da Costa <rakuco>
Status: Closed FIXED    
Severity: Affects Only Me CC: pkubaj, swills, vishwin
Priority: --- Flags: pkubaj: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 236141    
Attachments:
Description Flags
Proposed patch none

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