Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2019 07:50:51 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496936 - in head/graphics/tesseract: . files
Message-ID:  <201903270750.x2R7opTj003835@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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])
+ 
+ 
+ # ----------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903270750.x2R7opTj003835>