mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 09:11:38 +01:00
testing/boost-coroutine: use GNU pth as uclibc does not provide ucontext functions
This commit is contained in:
parent
3bd23f9df2
commit
6e49e8ddee
@ -2,15 +2,16 @@
|
||||
# Maintainer:
|
||||
pkgname=boost-coroutine
|
||||
pkgver=0.0.1
|
||||
pkgrel=0
|
||||
pkgrel=2
|
||||
pkgdesc="coroutine library for boost"
|
||||
url="http://www.crystalclearsoftware.com/soc/coroutine/"
|
||||
arch="noarch"
|
||||
license="custom:boost"
|
||||
depends=
|
||||
depends_dev="boost-dev"
|
||||
depends_dev="boost-dev pth-dev"
|
||||
install=""
|
||||
source="saveas-http://www.boostpro.com/vault/index.php?action=downloadfile&filename=boost-coroutine-2009-12-01.tar.gz&directory=Concurrent%20Programming/boost-coroutine-2009-12-01.tar.gz"
|
||||
source="saveas-http://www.boostpro.com/vault/index.php?action=downloadfile&filename=boost-coroutine-2009-12-01.tar.gz&directory=Concurrent%20Programming/boost-coroutine-2009-12-01.tar.gz
|
||||
boost-coroutine-pth.patch"
|
||||
|
||||
_builddir="${srcdir}/boost-coroutine"
|
||||
prepare() {
|
||||
@ -33,4 +34,5 @@ package() {
|
||||
cp -r "$_builddir"/boost "$pkgdir"/usr/include/boost
|
||||
}
|
||||
|
||||
md5sums="9837f5f2024dfc4da68bf62e0aab529a boost-coroutine-2009-12-01.tar.gz"
|
||||
md5sums="9837f5f2024dfc4da68bf62e0aab529a boost-coroutine-2009-12-01.tar.gz
|
||||
53d3c4752668f0332dc31bd2341db609 boost-coroutine-pth.patch"
|
||||
|
||||
19
testing/boost-coroutine/boost-coroutine-pth.patch
Normal file
19
testing/boost-coroutine/boost-coroutine-pth.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- boost-coroutine.orig/boost/coroutine/detail/context_posix.hpp
|
||||
+++ boost-coroutine/boost/coroutine/detail/context_posix.hpp
|
||||
@@ -46,13 +46,10 @@
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
|
||||
-#if defined(_XOPEN_UNIX) && defined(_XOPEN_VERSION) && _XOPEN_VERSION >= 500
|
||||
+#if 1
|
||||
+#if 1
|
||||
|
||||
-// OS X 10.4 -- despite passing the test above -- doesn't support
|
||||
-// swapcontext() et al. Use GNU Pth workalike functions.
|
||||
-#if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050)
|
||||
-
|
||||
-#include "pth/pth.h"
|
||||
+#include <pth.h>
|
||||
#include <cerrno>
|
||||
|
||||
namespace boost { namespace coroutines { namespace detail {
|
||||
Loading…
x
Reference in New Issue
Block a user