diff options
| -rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/fix-conflicting-rand.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 18 |
2 files changed, 46 insertions, 7 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/fix-conflicting-rand.patch b/meta/recipes-core/glib-2.0/glib-2.0/fix-conflicting-rand.patch new file mode 100644 index 0000000000..1571112b0e --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0/fix-conflicting-rand.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | Rename 'rand' variable to avoid conflict. | ||
| 2 | |||
| 3 | Upstream-Status: pending | ||
| 4 | Signed-off-by: Björn Stenberg <bjst@enea.com> | ||
| 5 | |||
| 6 | diff -u glib-2.34.3/tests/refcount/signals.c~ glib-2.34.3/tests/refcount/signals.c | ||
| 7 | --- glib-2.34.3/tests/refcount/signals.c 2012-11-26 17:52:48.000000000 +0100 | ||
| 8 | +++ glib-2.34.3/tests/refcount/signals.c 2013-02-08 14:24:10.052477546 +0100 | ||
| 9 | @@ -9,7 +9,7 @@ | ||
| 10 | #define MY_IS_TEST_CLASS(tclass) (G_TYPE_CHECK_CLASS_TYPE ((tclass), G_TYPE_TEST)) | ||
| 11 | #define MY_TEST_GET_CLASS(test) (G_TYPE_INSTANCE_GET_CLASS ((test), G_TYPE_TEST, GTestClass)) | ||
| 12 | |||
| 13 | -static GRand *rand; | ||
| 14 | +static GRand *grand; | ||
| 15 | |||
| 16 | typedef struct _GTest GTest; | ||
| 17 | typedef struct _GTestClass GTestClass; | ||
| 18 | @@ -84,7 +84,7 @@ | ||
| 19 | NULL | ||
| 20 | }; | ||
| 21 | |||
| 22 | - rand = g_rand_new(); | ||
| 23 | + grand = g_rand_new(); | ||
| 24 | |||
| 25 | test_type = g_type_register_static (G_TYPE_OBJECT, "GTest", | ||
| 26 | &test_info, 0); | ||
| 27 | @@ -218,7 +218,7 @@ | ||
| 28 | static void | ||
| 29 | my_test_do_prop (GTest * test) | ||
| 30 | { | ||
| 31 | - test->value = g_rand_int (rand); | ||
| 32 | + test->value = g_rand_int (grand); | ||
| 33 | g_object_notify (G_OBJECT (test), "test-prop"); | ||
| 34 | } | ||
| 35 | |||
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb index fe50220ea4..d58d4896c3 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ | |||
| 13 | file://configure-libtool.patch \ | 13 | file://configure-libtool.patch \ |
| 14 | file://glib-2.0_fix_for_x32.patch \ | 14 | file://glib-2.0_fix_for_x32.patch \ |
| 15 | file://obsolete_automake_macros.patch \ | 15 | file://obsolete_automake_macros.patch \ |
| 16 | file://fix-conflicting-rand.patch \ | ||
| 16 | file://Makefile-ptest.patch \ | 17 | file://Makefile-ptest.patch \ |
| 17 | file://run-ptest \ | 18 | file://run-ptest \ |
| 18 | " | 19 | " |
| @@ -23,6 +24,16 @@ SRC_URI_append_class-native = " file://glib-gettextize-dir.patch" | |||
| 23 | BBCLASSEXTEND = "native nativesdk" | 24 | BBCLASSEXTEND = "native nativesdk" |
| 24 | 25 | ||
| 25 | RDEPENDS_${PN}-ptest += "\ | 26 | RDEPENDS_${PN}-ptest += "\ |
| 27 | tzdata \ | ||
| 28 | tzdata-americas \ | ||
| 29 | tzdata-asia \ | ||
| 30 | tzdata-europe \ | ||
| 31 | tzdata-posix \ | ||
| 32 | python-pygobject \ | ||
| 33 | python-dbus \ | ||
| 34 | " | ||
| 35 | |||
| 36 | RDEPENDS_${PN}-ptest_append_libc-glibc = "\ | ||
| 26 | eglibc-gconv-utf-16 \ | 37 | eglibc-gconv-utf-16 \ |
| 27 | eglibc-charmap-utf-8 \ | 38 | eglibc-charmap-utf-8 \ |
| 28 | eglibc-gconv-cp1255 \ | 39 | eglibc-gconv-cp1255 \ |
| @@ -31,13 +42,6 @@ RDEPENDS_${PN}-ptest += "\ | |||
| 31 | eglibc-gconv-utf-7 \ | 42 | eglibc-gconv-utf-7 \ |
| 32 | eglibc-charmap-invariant \ | 43 | eglibc-charmap-invariant \ |
| 33 | eglibc-localedata-translit-cjk-variants \ | 44 | eglibc-localedata-translit-cjk-variants \ |
| 34 | tzdata \ | ||
| 35 | tzdata-americas \ | ||
| 36 | tzdata-asia \ | ||
| 37 | tzdata-europe \ | ||
| 38 | tzdata-posix \ | ||
| 39 | python-pygobject \ | ||
| 40 | python-dbus \ | ||
| 41 | " | 45 | " |
| 42 | 46 | ||
| 43 | do_configure_prepend() { | 47 | do_configure_prepend() { |
