summaryrefslogtreecommitdiffstats
path: root/package/kodi/0003-ALSA-fix-device-change-event-support.patch
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2015-07-22 22:30:26 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-30 09:29:23 +0200
commitcd18114d650b77c1d22c4560b0364e57c95fa4e6 (patch)
treeefabe3df1099ee0f6dd790d9af5db3fb8b5475c8 /package/kodi/0003-ALSA-fix-device-change-event-support.patch
parentcfefcd859f2b51a6ebe23c5be149ff258755e249 (diff)
downloadbuildroot-cd18114d650b77c1d22c4560b0364e57c95fa4e6.tar.gz
buildroot-cd18114d650b77c1d22c4560b0364e57c95fa4e6.zip
package/kodi: bump version to 15.0 Isengard
- added libsquish as new dependency https://github.com/xbmc/xbmc/commit/f73653d62b09db8cab7662ae7c4b2dab596b4ab0#diff-3b3a6ec97232deb43dc14319a73872c1R2207 - updated build procedure for host version of texturepacker - removed SDL dependencies http://kodi.wiki/view/Kodi_v15_%28Isengard%29_changelog#Linux_Specific "Removed dependencies of SDL (Simple DirectMedia Layer) for everything but hardware abstraction for input devices" - added mips support: https://github.com/xbmc/xbmc/commit/5d1746ad5b2272ba5f906ad9a49a87b650bda14a [Thomas: - don't do a manual fixup of kodi-config.cmake, and instead patch it to use CMAKE_FIND_ROOT_PATH. This will also avoid having to pass -DCMAKE_MODULE_PATH to all Kodi add-ons .mk files.] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/kodi/0003-ALSA-fix-device-change-event-support.patch')
-rw-r--r--package/kodi/0003-ALSA-fix-device-change-event-support.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/package/kodi/0003-ALSA-fix-device-change-event-support.patch b/package/kodi/0003-ALSA-fix-device-change-event-support.patch
new file mode 100644
index 0000000000..b5f37b94da
--- /dev/null
+++ b/package/kodi/0003-ALSA-fix-device-change-event-support.patch
@@ -0,0 +1,67 @@
+Patch sent upstream:
+
+https://github.com/xbmc/xbmc/pull/7551
+
+
+From a6d6a1a36ff2dff2586fbad2a068e7df14b55fdc Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Sun, 19 Jul 2015 14:12:03 +0200
+Subject: [PATCH 1/1] ALSA: fix device change event support
+
+Current uClibc version 0.9.33.2 does not support eventfd_read/write.
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ configure.ac | 5 ++++-
+ xbmc/linux/FDEventMonitor.cpp | 12 ++++++++++++
+ 2 files changed, 16 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index d321f7d..4c6c750 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -911,7 +911,7 @@ AC_FUNC_STRFTIME
+ AC_FUNC_STRTOD
+ AC_FUNC_UTIME_NULL
+ AC_FUNC_VPRINTF
+-AC_CHECK_FUNCS([atexit dup2 fdatasync floor fs_stat_dev ftime ftruncate getcwd gethostbyaddr gethostbyname gethostname getpagesize getpass gettimeofday inet_ntoa lchown localeconv memchr memmove memset mkdir modf munmap pow rmdir select setenv setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strspn strstr strtol strtoul sysinfo tzset utime posix_fadvise localtime_r])
++AC_CHECK_FUNCS([atexit dup2 fdatasync floor fs_stat_dev ftime ftruncate getcwd gethostbyaddr gethostbyname gethostname getpagesize getpass gettimeofday inet_ntoa lchown localeconv memchr memmove memset mkdir modf munmap pow rmdir select setenv setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strspn strstr strtol strtoul sysinfo tzset utime posix_fadvise localtime_r eventfd_read eventfd_write])
+
+ # Check for various sizes
+ AC_CHECK_SIZEOF([int])
+@@ -2064,6 +2064,9 @@ fi
+ if test "$use_alsa" = "yes"; then
+ USE_ALSA=1
+ AC_DEFINE([USE_ALSA],[1],["Define to 1 if alsa is installed"])
++ if test "$ac_cv_func_eventfd_read" = "yes" -a "$ac_cv_func_eventfd_write" = "yes"; then
++ AC_DEFINE([HAVE_EVENTFD],[1],["Define to 1 if eventfd is installed"])
++ fi
+ final_message="$final_message\n ALSA:\t\tYes"
+ else
+ USE_ALSA=0
+diff --git a/xbmc/linux/FDEventMonitor.cpp b/xbmc/linux/FDEventMonitor.cpp
+index 4a41477..84efeb9 100644
+--- a/xbmc/linux/FDEventMonitor.cpp
++++ b/xbmc/linux/FDEventMonitor.cpp
+@@ -28,6 +28,18 @@
+
+ #include "FDEventMonitor.h"
+
++#ifndef HAVE_EVENTFD
++static int eventfd_read(int __fd, eventfd_t *__value)
++{
++ return read(__fd, __value, sizeof(eventfd_t)) == sizeof(eventfd_t) ? 0 : -1;
++}
++
++static int eventfd_write(int __fd, eventfd_t __value)
++{
++ return write(__fd, &__value, sizeof(eventfd_t)) == sizeof(eventfd_t) ? 0 : -1;
++}
++#endif
++
+ CFDEventMonitor::CFDEventMonitor() :
+ CThread("FDEventMonitor"),
+ m_nextID(0),
+--
+1.7.10.4
+
OpenPOWER on IntegriCloud