summaryrefslogtreecommitdiff
path: root/recipes/tracker/tracker-0.6.95/05-tracker-ioprio-cross.patch
diff options
context:
space:
mode:
authorDavid-John Willis <John.Willis@Distant-earth.com>2009-11-03 21:05:49 +0000
committerKoen Kooi <koen@openembedded.org>2009-11-07 19:17:52 +0100
commit252dc53aa97d3f284078b7d89a9f6b7792ce7466 (patch)
tree8967e45055ae0725c834eb3d44e92d6af123904c /recipes/tracker/tracker-0.6.95/05-tracker-ioprio-cross.patch
parent6e04e09b03bd934cbbe62079732318d1713164a5 (diff)
tracker: Add 0.6.95 release and series of patches to support cross compile. (WIP)
Diffstat (limited to 'recipes/tracker/tracker-0.6.95/05-tracker-ioprio-cross.patch')
-rw-r--r--recipes/tracker/tracker-0.6.95/05-tracker-ioprio-cross.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/recipes/tracker/tracker-0.6.95/05-tracker-ioprio-cross.patch b/recipes/tracker/tracker-0.6.95/05-tracker-ioprio-cross.patch
new file mode 100644
index 0000000000..c04c12536c
--- /dev/null
+++ b/recipes/tracker/tracker-0.6.95/05-tracker-ioprio-cross.patch
@@ -0,0 +1,64 @@
+From ae32c3902a1afe2f900ec5e42a1070c8c7fce83b Mon Sep 17 00:00:00 2001
+From: John Carr <john.carr@unrouted.co.uk>
+Date: Tue, 3 Nov 2009 01:18:26 +0000
+Subject: [PATCH 1/2] Add AC_CACHE_CHECK magic around ioprio checking.
+
+Having the cache check allows the end user to set whether ioprio
+is available or not. Without this cross-compilation is not
+possible as there is no way to run the test program.
+---
+ configure.ac | 24 +++++++++++-------------
+ 1 files changed, 11 insertions(+), 13 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 441b4b8..fca54b9 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1164,17 +1164,15 @@ AM_CONDITIONAL(HAVE_LIBVORBIS, test "x$have_libvorbis" = "xyes")
+ # Check ioprio support
+ ####################################################################
+
+-AC_MSG_CHECKING([[ioprio support]])
+-have_ioprio=no
+-
+-AC_RUN_IFELSE(
+-[AC_LANG_PROGRAM([[
++AC_CACHE_CHECK([if we have ioprio],[tracker_cv_have_ioprio],
++ [AC_RUN_IFELSE(
++ [AC_LANG_PROGRAM([[
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <sys/syscall.h>
+ #include <unistd.h>
+-]],
+-[[
++ ]],
++ [[
+ inline int ioprio_get (int which, int who)
+ {
+ return syscall (__NR_ioprio_get, which, who);
+@@ -1184,16 +1182,16 @@ AC_RUN_IFELSE(
+ {
+ return ioprio_get (1, 0);
+ }
+-]]
+-)],
+-[have_ioprio=yes],[])
++ ]])],
++ [tracker_cv_have_ioprio=yes],
++ [tracker_cv_have_ioprio=no],
++ [AC_MSG_ERROR([cross-compiling: please set 'tracker_cv_have_ioprio'])])
++ ])
+
+-if test "$have_ioprio" = "yes" ; then
++if test "x$tracker_cv_have_ioprio" = "xyes" ; then
+ AC_DEFINE(HAVE_IOPRIO, 1, [Define if we have ioprio])
+ fi
+
+-AC_MSG_RESULT([$have_ioprio])
+-
+ ##################################################################
+ # Check for exempi
+ ##################################################################
+--
+1.6.3.3