diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch | 42 |
1 files changed, 7 insertions, 35 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch b/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch index 50781e7892..5060880926 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch +++ b/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4b1a6d247c78125096a6ea5ab3cab8a1f000dc23 Mon Sep 17 00:00:00 2001 | 1 | From 70e462e070f8eb20b7660c1cf88271c0449e43cc Mon Sep 17 00:00:00 2001 |
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | 2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> |
3 | Date: Mon, 9 Nov 2015 11:07:27 +0200 | 3 | Date: Mon, 9 Nov 2015 11:07:27 +0200 |
4 | Subject: [PATCH] Enable more tests while cross-compiling | 4 | Subject: [PATCH] Enable more tests while cross-compiling |
@@ -9,17 +9,15 @@ case we can depend on glib-2.0-native. | |||
9 | 9 | ||
10 | Upstream-Status: Inappropriate [OE specific] | 10 | Upstream-Status: Inappropriate [OE specific] |
11 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | 11 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
12 | |||
13 | --- | 12 | --- |
14 | gio/tests/Makefile.am | 10 ++++++---- | 13 | gio/tests/Makefile.am | 10 ++++++---- |
15 | tests/gobject/Makefile.am | 8 +++++--- | 14 | 1 file changed, 6 insertions(+), 4 deletions(-) |
16 | 2 files changed, 11 insertions(+), 7 deletions(-) | ||
17 | 15 | ||
18 | diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am | 16 | diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am |
19 | index 1f0bed7..8295deb 100644 | 17 | index c4e7a92..633e85c 100644 |
20 | --- a/gio/tests/Makefile.am | 18 | --- a/gio/tests/Makefile.am |
21 | +++ b/gio/tests/Makefile.am | 19 | +++ b/gio/tests/Makefile.am |
22 | @@ -550,10 +550,9 @@ test_programs += \ | 20 | @@ -583,10 +583,9 @@ test_programs += \ |
23 | endif | 21 | endif |
24 | 22 | ||
25 | # ----------------------------------------------------------------------------- | 23 | # ----------------------------------------------------------------------------- |
@@ -32,7 +30,7 @@ index 1f0bed7..8295deb 100644 | |||
32 | test_programs += resources | 30 | test_programs += resources |
33 | resources_SOURCES = resources.c | 31 | resources_SOURCES = resources.c |
34 | nodist_resources_SOURCES = test_resources.c test_resources2.c test_resources2.h | 32 | nodist_resources_SOURCES = test_resources.c test_resources2.c test_resources2.h |
35 | @@ -578,7 +577,11 @@ if !ENABLE_INSTALLED_TESTS | 33 | @@ -611,7 +610,11 @@ if !ENABLE_INSTALLED_TESTS |
36 | libresourceplugin_la_LDFLAGS += -rpath / | 34 | libresourceplugin_la_LDFLAGS += -rpath / |
37 | endif | 35 | endif |
38 | 36 | ||
@@ -44,7 +42,7 @@ index 1f0bed7..8295deb 100644 | |||
44 | 42 | ||
45 | test-generated.txt: test1.txt | 43 | test-generated.txt: test1.txt |
46 | $(AM_V_GEN) echo "Generated" > $@ && \ | 44 | $(AM_V_GEN) echo "Generated" > $@ && \ |
47 | @@ -599,7 +602,6 @@ test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) -- | 45 | @@ -632,7 +635,6 @@ test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) -- |
48 | 46 | ||
49 | EXTRA_DIST += test.gresource.xml test1.txt test2.gresource.xml test2.txt test3.gresource.xml test3.txt test4.gresource.xml | 47 | EXTRA_DIST += test.gresource.xml test1.txt test2.gresource.xml test2.txt test3.gresource.xml test3.txt test4.gresource.xml |
50 | CLEANFILES += test-generated.txt test_resources.c test_resources2.[ch] plugin_resources.c test.gresource | 48 | CLEANFILES += test-generated.txt test_resources.c test_resources2.[ch] plugin_resources.c test.gresource |
@@ -52,29 +50,3 @@ index 1f0bed7..8295deb 100644 | |||
52 | 50 | ||
53 | BUILT_SOURCES += giotypefuncs.inc | 51 | BUILT_SOURCES += giotypefuncs.inc |
54 | 52 | ||
55 | diff --git a/tests/gobject/Makefile.am b/tests/gobject/Makefile.am | ||
56 | index 0e60987..927d13a 100644 | ||
57 | --- a/tests/gobject/Makefile.am | ||
58 | +++ b/tests/gobject/Makefile.am | ||
59 | @@ -51,10 +51,13 @@ if ENABLE_TIMELOOP | ||
60 | installed_test_programs += timeloop-closure | ||
61 | endif | ||
62 | |||
63 | -# The marshal test requires running a binary, which means we cannot | ||
64 | -# build it when cross-compiling | ||
65 | +# The marshal test requires running a binary, which means we require | ||
66 | +# glib-native when cross-compiling | ||
67 | if !CROSS_COMPILING | ||
68 | glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal | ||
69 | +else | ||
70 | +glib_genmarshal=$(shell which glib-genmarshal) | ||
71 | +endif | ||
72 | |||
73 | testmarshal.h: stamp-testmarshal.h | ||
74 | @true | ||
75 | @@ -71,4 +74,3 @@ testmarshal.c: testmarshal.h testmarshal.list $(glib_genmarshal) | ||
76 | BUILT_SOURCES += testmarshal.h testmarshal.c | ||
77 | CLEANFILES += stamp-testmarshal.h testmarshal.h testmarshal.c | ||
78 | EXTRA_DIST += testcommon.h testmarshal.list | ||
79 | -endif # !CROSS_COMPILING | ||
80 | \ No newline at end of file | ||