Subject: [alpine-aports] [PATCH] main/libxshmfence: use futex instead of pthreads

From: Bobby Bingham <[email-masked]>
Date: Sat, 5 Aug 2017 17:06:37 -0500

This library uses a synchronization primitive in shared memory.  The
pthreads types are not the same size between 32- and 64-bit, which means
that a 32-bit binary using mesa cannot be used with a 64-bit X server.

The futex backend does not have this problem.
---
 main/libxshmfence/APKBUILD | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/main/libxshmfence/APKBUILD b/main/libxshmfence/APKBUILD
index 01d2c9a84d..c623fc3fd6 100644
--- a/main/libxshmfence/APKBUILD
+++ b/main/libxshmfence/APKBUILD
@@ -2,13 +2,13 @@
 # Maintainer:
 pkgname=libxshmfence
 pkgver=1.2
-pkgrel=0
+pkgrel=1
 pkgdesc="X11 shared memory fences"
 url="http://www.x.org/"
 arch="all"
 license="MIT"
 depends=""
-depends_dev="xproto"
+depends_dev="xproto linux-headers"
 makedepends="$depends_dev"
 install=""
 subpackages="$pkgname-dev"
@@ -32,6 +32,7 @@ build() {
 		--host=$CHOST \
 		--prefix=/usr \
 		--disable-static \
+		--enable-futex \
 		|| return 1
 	make || return 1
 }
-- 
2.13.3

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---