summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2019-04-05 10:38:19 +0200
committerTupone Alfredo <tupone@gentoo.org>2019-04-05 10:38:52 +0200
commit22d77000f2e9736a0b19437b626f4f89d9c697f5 (patch)
tree028b587ec05c1c02649beef8579b5eff0241a2b6 /dev-lang/polyml
parentapp-editors/notepadqq: Added some dependencies. (diff)
downloadgentoo-22d77000f2e9736a0b19437b626f4f89d9c697f5.tar.gz
gentoo-22d77000f2e9736a0b19437b626f4f89d9c697f5.tar.bz2
gentoo-22d77000f2e9736a0b19437b626f4f89d9c697f5.zip
dev-lang/polyml: Fix build, sem_wait found on libpthread
Closes: https://bugs.gentoo.org/606096 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-lang/polyml')
-rw-r--r--dev-lang/polyml/files/polyml-5.6-configure.patch11
-rw-r--r--dev-lang/polyml/polyml-5.6.ebuild4
2 files changed, 14 insertions, 1 deletions
diff --git a/dev-lang/polyml/files/polyml-5.6-configure.patch b/dev-lang/polyml/files/polyml-5.6-configure.patch
new file mode 100644
index 000000000000..ba3b6bbbd5ac
--- /dev/null
+++ b/dev-lang/polyml/files/polyml-5.6-configure.patch
@@ -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
diff --git a/dev-lang/polyml/polyml-5.6.ebuild b/dev-lang/polyml/polyml-5.6.ebuild
index 6cdf4fdd6fb5..1182c2d0766c 100644
--- a/dev-lang/polyml/polyml-5.6.ebuild
+++ b/dev-lang/polyml/polyml-5.6.ebuild
@@ -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"
@@ -20,6 +20,8 @@ RDEPEND="X? ( x11-libs/motif:0 )
virtual/libffi"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${P}-configure.patch )
+
src_prepare() {
default
eautoreconf