Source: xbmc-pvr-addons
Version: 13.0+git20140512+g91cc731+dfsg1-1
Severity: important
Tags: patch

Hi,

xbmc-pvr-addons FTBFS on mips and mipsel with the error:

> In file included from ../include/refmem/refmem.h:27:0,
>                  from alloc.c:44:
> ../include/refmem/atomic.h:33:20: fatal error: atomic.h: No such file or 
> directory
>  #include <atomic.h>
>                     ^
> compilation terminated.

Full logs:
https://buildd.debian.org/status/package.php?p=xbmc-pvr-addons

The best way to fix this is probably to just use the generic GCC atomics
on mips. I've attached a patch which fixes this for me.

Thanks,
James

Index: xbmc-pvr-addons-13.0+git20140512+g91cc731+dfsg1/lib/cmyth/include/refmem/atomic.h
===================================================================
--- xbmc-pvr-addons-13.0+git20140512+g91cc731+dfsg1.orig/lib/cmyth/include/refmem/atomic.h
+++ xbmc-pvr-addons-13.0+git20140512+g91cc731+dfsg1/lib/cmyth/include/refmem/atomic.h
@@ -29,10 +29,6 @@
 #define inline __inline
 #endif
 
-#if defined __mips__
-#include <atomic.h>
-#endif
-
 #if defined(__APPLE__)
 #include <libkern/OSAtomic.h>
 
@@ -96,8 +92,6 @@ __mvp_atomic_increment(mvp_atomic_t *val
 		: "=&r"(tmp1), "=&r"(__val), "=&r"(tmp2)
 		: "r" (valp), "r"(inc)
 		: "cc", "memory");
-#elif defined __mips__
-	__val = atomic_increment_val(valp);
 #elif defined __GNUC__
 	/*
 	 * Don't know how to atomic increment for a generic architecture
@@ -162,8 +156,6 @@ __mvp_atomic_decrement(mvp_atomic_t *val
 		: "=&r"(tmp1), "=&r"(__val), "=&r"(tmp2)
 		: "r" (valp), "r"(inc)
 		: "cc", "memory");
-#elif defined __mips__
-	__val = atomic_decrement_val(valp);
 #elif defined __sparcv9__
 	mvp_atomic_t __newval, __oldval = (*valp);
 	do
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to