Skip to content

Commit

Permalink
dev-lang/polyml: Fix build, sem_wait found on libpthread
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/606096
Signed-off-by: Alfredo Tupone <[email protected]>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
  • Loading branch information
atupone committed Apr 5, 2019
1 parent eec6182 commit 22d7700
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dev-lang/polyml/files/polyml-5.6-configure.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/configure.ac 2019-04-05 10:27:19.026197625 +0200
+++ b/configure.ac 2019-04-05 10:28:10.187291374 +0200
@@ -133,7 +133,7 @@
# Solaris needs -lsocket, -lnsl and -lrt
AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([getsockopt], [socket])
-AC_SEARCH_LIBS([sem_wait], [rt])
+AC_SEARCH_LIBS([sem_wait], [rt] [pthread])

# Check for X and Motif headers and libraries
AC_PATH_X
4 changes: 3 additions & 1 deletion dev-lang/polyml/polyml-5.6.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="6"
Expand All @@ -20,6 +20,8 @@ RDEPEND="X? ( x11-libs/motif:0 )
virtual/libffi"
DEPEND="${RDEPEND}"

PATCHES=( "${FILESDIR}"/${P}-configure.patch )

src_prepare() {
default
eautoreconf
Expand Down

0 comments on commit 22d7700

Please sign in to comment.