kodi: fix x86 musl targets.

This commit is contained in:
Enno Boland 2016-03-25 17:56:52 +01:00
parent 87e2995b0b
commit b787d87217
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,19 @@
--- a/xbmc/cores/DllLoader/ldt_keeper.c.orig 2016-03-25 17:39:06.790371676 +0100
+++ b/xbmc/cores/DllLoader/ldt_keeper.c 2016-03-25 17:38:24.376370166 +0100
@@ -31,6 +31,7 @@
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
+#include <syscall.h>
#include "mmap_anon.h"
#if defined( __linux__ ) && !defined(__powerpc__)
#include <asm/unistd.h>
@@ -202,7 +203,7 @@ ldt_fs_t* Setup_LDT_Keeper(void)
array.limit_in_pages = 0;
#ifdef __linux__
/* ret=LDT_Modify(0x1, &array, sizeof(struct modify_ldt_ldt_s)); */
- ret = modify_ldt(0x1, &array, sizeof(struct modify_ldt_ldt_s));
+ ret = syscall(SYS_modify_ldt, 0x1, &array, sizeof(struct modify_ldt_ldt_s));
if (ret < 0)
{
perror("install_fs");

View File

@ -1,7 +1,7 @@
# Template file for 'kodi'
pkgname=kodi
version=16.0
revision=1
revision=2
patch_args="-Np1"
_codename="Jarvis"
wrksrc="xbmc-${version}-${_codename}"
@ -13,7 +13,6 @@ distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz"
checksum=0421ea1337cdee674f8a36d995f54152b5ddc4100e53410b3aeeb3b3f7d53946
case "${XBPS_TARGET_MACHINE}" in
i686*) broken="http://build.voidlinux.eu/builders/i686_builder/builds/21640";;
x86_64-musl) broken="http://build.voidlinux.eu/builders/x86_64-musl_builder/builds/10076";;
esac
lib32disabled=yes