svn commit: r496936 - in head/graphics/tesseract: . files

Raphael Kubo da Costa rakuco at FreeBSD.org
Wed Mar 27 07:50:52 UTC 2019


Author: rakuco
Date: Wed Mar 27 07:50:51 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 at anongoth.pl> (maintainer)

Added:
  head/graphics/tesseract/files/
  head/graphics/tesseract/files/patch-configure.ac   (contents, props changed)
Modified:
  head/graphics/tesseract/Makefile

Modified: head/graphics/tesseract/Makefile
==============================================================================
--- head/graphics/tesseract/Makefile	Wed Mar 27 06:00:11 2019	(r496935)
+++ head/graphics/tesseract/Makefile	Wed Mar 27 07:50:51 2019	(r496936)
@@ -3,7 +3,7 @@
 
 PORTNAME=	tesseract
 PORTVERSION=	3.05.02
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	graphics
 
 MAINTAINER=	pkubaj at anongoth.pl

Added: head/graphics/tesseract/files/patch-configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/tesseract/files/patch-configure.ac	Wed Mar 27 07:50:51 2019	(r496936)
@@ -0,0 +1,12 @@
+sem_init(3) is part of libc on FreeBSD, so we ended up not linking against
+libpthread. Look for a symbol that causes us to load it.
+--- configure.ac.orig	2019-03-26 21:58:42 UTC
++++ configure.ac
+@@ -375,6 +375,7 @@ CXXFLAGS="$OLD_CXXFLAGS"
+ # ----------------------------------------
+ 
+ AC_SEARCH_LIBS([sem_init], [pthread rt])
++AC_SEARCH_LIBS([pthread_create], [pthread])
+ 
+ 
+ # ----------------------------------------


More information about the svn-ports-all mailing list