diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-09-30 17:33:03 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-14 13:18:07 +0100 |
commit | da0798420ea1b98bd383e4bad7f748bfaa96f18b (patch) | |
tree | f1770e7c02d5ec02685994dd7c497f370c80e67a /meta/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch | |
parent | 263852e5a27ca2256ff11d72c0c80e963bdbee0a (diff) | |
download | poky-da0798420ea1b98bd383e4bad7f748bfaa96f18b.tar.gz |
glib: upgrade to 2.30.0
(From OE-Core rev: 74f43e3b269c01dba7cd5215a8e825229bd5ecff)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch b/meta/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch new file mode 100644 index 0000000000..5c0a07abb1 --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | while cross compiling we cannot execute run tests | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | --- glib-2.30.0.orig/configure.ac 2011-09-29 16:57:35.000000000 +0200 | ||
6 | +++ glib-2.30.0/configure.ac 2011-09-29 17:00:19.931493488 +0200 | ||
7 | @@ -586,45 +586,7 @@ | ||
8 | dnl until we have checked this function is actually usable | ||
9 | AC_CHECK_FUNC([qsort_r]) | ||
10 | |||
11 | -# BSD has a qsort_r with wrong argument order | ||
12 | -if test x$ac_cv_func_qsort_r = xyes ; then | ||
13 | - AC_CACHE_CHECK([if qsort_r uses glibc compatible argument order], glib_cv_have_qsort_r, [ | ||
14 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
15 | - #define _GNU_SOURCE | ||
16 | - #include <stdlib.h> | ||
17 | - | ||
18 | - static int | ||
19 | - cmp (const void *a, const void *b, void *c) | ||
20 | - { | ||
21 | - const int *ia = a; | ||
22 | - const int *ib = b; | ||
23 | - | ||
24 | - if (*ia < *ib) | ||
25 | - return -1; | ||
26 | - else if (*ia > *ib) | ||
27 | - return 1; | ||
28 | - else | ||
29 | - return 0; | ||
30 | - } | ||
31 | - | ||
32 | - int | ||
33 | - main (int argc, char **argv) | ||
34 | - { | ||
35 | - int arr[3] = { 1, 2, 0 }; | ||
36 | - int d = 3; | ||
37 | - | ||
38 | - qsort_r (arr, 3, sizeof (int), cmp, &d); | ||
39 | - | ||
40 | - if (arr[0] == 0 && arr[1] == 1 && arr[2] == 2) | ||
41 | - return 0; | ||
42 | - else | ||
43 | - return 1; | ||
44 | - }]])],[glib_cv_have_qsort_r=yes],[glib_cv_have_qsort_r=no])]) | ||
45 | -fi | ||
46 | - | ||
47 | -if test x$glib_cv_have_qsort_r = xyes ; then | ||
48 | - AC_DEFINE(HAVE_QSORT_R, 1, [Define to 1 if you have the 'qsort_r' function]) | ||
49 | -fi | ||
50 | +AC_DEFINE(HAVE_QSORT_R, 1, [Define to 1 if you have the 'qsort_r' function]) | ||
51 | |||
52 | AC_CHECK_SIZEOF(char) | ||
53 | AC_CHECK_SIZEOF(short) | ||