Mail archive
alpine-aports

[alpine-aports] [PATCH] main/virglrenderer: fix byte order detection

From: alpine-mips-patches <info_at_mobile-stream.com>
Date: Wed, 9 Jan 2019 05:31:40 +0000

All Linux libc implementations have <endian.h>.

---
 main/virglrenderer/APKBUILD         |  4 ++--
 main/virglrenderer/musl-fixes.patch | 19 +++++++++++++++----
 2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/main/virglrenderer/APKBUILD b/main/virglrenderer/APKBUILD
index 076689d43b..743f3eae34 100644
--- a/main/virglrenderer/APKBUILD
+++ b/main/virglrenderer/APKBUILD
_at_@ -2,7 +2,7 @@
 # Maintainer: Fernando Casas Schossow <casasfernando_at_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"
_at_@ -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 ebb0b6bcfd..1e4210720a 100644
--- a/main/virglrenderer/musl-fixes.patch
+++ b/main/virglrenderer/musl-fixes.patch
_at_@ -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
+_at_@ -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
 _at_@ -26,6 +26,7 @@
  #include <stdio.h>
  #include <string.h>
_at_@ -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
 _at_@ -31,6 +31,7 @@
  #include <netinet/in.h>
  #include <sys/un.h>
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Jan 09 2019 - 05:31:40 UTC