aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralpine-mips-patches <info@mobile-stream.com>2019-01-09 05:31:40 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-01-14 13:23:33 +0000
commit732d7d2988046523bb65d7433b930eae3d86c57b (patch)
tree8257382343098916aeffb9439943f6cb41b5bf12
parentaf3b7f34b390f489240b4d428f6708fbe650687a (diff)
downloadaports-732d7d2988046523bb65d7433b930eae3d86c57b.tar.bz2
aports-732d7d2988046523bb65d7433b930eae3d86c57b.tar.xz
main/virglrenderer: fix byte order detection
All Linux libc implementations have <endian.h>.
-rw-r--r--main/virglrenderer/APKBUILD4
-rw-r--r--main/virglrenderer/musl-fixes.patch19
2 files changed, 17 insertions, 6 deletions
diff --git a/main/virglrenderer/APKBUILD b/main/virglrenderer/APKBUILD
index 076689d..743f3ea 100644
--- a/main/virglrenderer/APKBUILD
+++ b/main/virglrenderer/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Fernando Casas Schossow <casasfernando@outlook.com>
pkgname=virglrenderer
pkgver=0.7.0
-pkgrel=0
+pkgrel=1
pkgdesc="A virtual 3D GPU library, that allows the guest operating system to use the host GPU to accelerate 3D rendering"
url="https://virgil3d.github.io/"
arch="all"
@@ -31,4 +31,4 @@ check() {
}
sha512sums="05e9a5a27450ad0d7b6b0002d4c4e90fc397fcd4cb014ad4356d0c07dd89b81fcfc4ab2c6eba094ed2612afbdeb28eb969290dd05a22dc462b1e68d52502f5bf virglrenderer-0.7.0.tar.bz2
-450c3f9d2fa07ad61379f2761dcd623e65b52ffd755255f9f479b48aec9bafb1f1dd3766db5e3d0b5e78daf4f9eeb99a645b829356d16f1f84c90a3d97b4abe5 musl-fixes.patch"
+b19e8a63f850cfefd257a6bdcc4066d949ce2ab91221d3ddfe75292967dc89da4f499bd4cf3eb98814e1b516241a7c6ca6f3aa5eaa097f17ff212669a69a4985 musl-fixes.patch"
diff --git a/main/virglrenderer/musl-fixes.patch b/main/virglrenderer/musl-fixes.patch
index ebb0b6b..1e42107 100644
--- a/main/virglrenderer/musl-fixes.patch
+++ b/main/virglrenderer/musl-fixes.patch
@@ -1,5 +1,16 @@
---- virglrenderer-0.6.0/vtest/util.c
-+++ virglrenderer-0.6.0/vtest/util.c.new
+--- a/src/gallium/include/pipe/p_config.h
++++ b/src/gallium/include/pipe/p_config.h
+@@ -130,7 +130,7 @@
+ * Endian detection.
+ */
+
+-#ifdef __GLIBC__
++#ifdef __linux__
+ #include <endian.h>
+
+ #if __BYTE_ORDER == __LITTLE_ENDIAN
+--- a/vtest/util.c
++++ b/vtest/util.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <string.h>
@@ -8,8 +19,8 @@
int vtest_wait_for_fd_read(int fd)
{
---- virglrenderer-0.6.0/vtest/vtest_server.c
-+++ virglrenderer-0.6.0/vtest/vtest_server.c.new
+--- a/vtest/vtest_server.c
++++ b/vtest/vtest_server.c
@@ -31,6 +31,7 @@
#include <netinet/in.h>
#include <sys/un.h>