diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/0001-Set-host_machine-correctly-when-building-with-mingw3.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/0001-Set-host_machine-correctly-when-building-with-mingw3.patch | 61 |
1 files changed, 26 insertions, 35 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/0001-Set-host_machine-correctly-when-building-with-mingw3.patch b/meta/recipes-core/glib-2.0/glib-2.0/0001-Set-host_machine-correctly-when-building-with-mingw3.patch index 2b7fab7bde..d22a646c5d 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0/0001-Set-host_machine-correctly-when-building-with-mingw3.patch +++ b/meta/recipes-core/glib-2.0/glib-2.0/0001-Set-host_machine-correctly-when-building-with-mingw3.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4169f11beedacfbb8c7934a4c99189d44935a6b9 Mon Sep 17 00:00:00 2001 | 1 | From f5a4b4c0579734923c9caf70944322efff57318b Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Wed, 13 Feb 2019 15:32:05 +0100 | 3 | Date: Wed, 13 Feb 2019 15:32:05 +0100 |
4 | Subject: [PATCH] Set host_machine correctly when building with mingw32 | 4 | Subject: [PATCH] Set host_machine correctly when building with mingw32 |
@@ -8,13 +8,13 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
8 | 8 | ||
9 | --- | 9 | --- |
10 | gio/tests/meson.build | 8 ++++---- | 10 | gio/tests/meson.build | 8 ++++---- |
11 | glib/tests/meson.build | 4 ++-- | 11 | glib/tests/meson.build | 2 +- |
12 | meson.build | 3 +++ | 12 | meson.build | 3 +++ |
13 | tests/meson.build | 2 +- | 13 | tests/meson.build | 2 +- |
14 | 4 files changed, 10 insertions(+), 7 deletions(-) | 14 | 4 files changed, 9 insertions(+), 6 deletions(-) |
15 | 15 | ||
16 | diff --git a/gio/tests/meson.build b/gio/tests/meson.build | 16 | diff --git a/gio/tests/meson.build b/gio/tests/meson.build |
17 | index 181f5c7..11a1f12 100644 | 17 | index 028b196..217ccb1 100644 |
18 | --- a/gio/tests/meson.build | 18 | --- a/gio/tests/meson.build |
19 | +++ b/gio/tests/meson.build | 19 | +++ b/gio/tests/meson.build |
20 | @@ -12,7 +12,7 @@ test_c_args = [ | 20 | @@ -12,7 +12,7 @@ test_c_args = [ |
@@ -26,57 +26,48 @@ index 181f5c7..11a1f12 100644 | |||
26 | common_gio_tests_deps += [iphlpapi_dep, winsock2, cc.find_library ('secur32')] | 26 | common_gio_tests_deps += [iphlpapi_dep, winsock2, cc.find_library ('secur32')] |
27 | endif | 27 | endif |
28 | 28 | ||
29 | @@ -122,7 +122,7 @@ if dbus1_dep.found() | 29 | @@ -119,7 +119,7 @@ if dbus1_dep.found() |
30 | endif | 30 | endif |
31 | 31 | ||
32 | # Test programs buildable on UNIX only | 32 | # Test programs buildable on UNIX only |
33 | -if host_machine.system() != 'windows' | 33 | -if host_machine.system() != 'windows' |
34 | +if host_system != 'windows' | 34 | +if host_system != 'windows' |
35 | gio_tests += [{ | 35 | gio_tests += { |
36 | 'file' : {}, | 36 | 'file' : {}, |
37 | 'gdbus-peer' : { | 37 | 'gdbus-peer' : { |
38 | @@ -314,7 +314,7 @@ if host_machine.system() != 'windows' | 38 | @@ -327,7 +327,7 @@ if host_machine.system() != 'windows' |
39 | endif # unix | 39 | endif # unix |
40 | 40 | ||
41 | # Test programs buildable on Windows only | 41 | # Test programs buildable on Windows only |
42 | -if host_machine.system() == 'windows' | 42 | -if host_machine.system() == 'windows' |
43 | +if host_system == 'windows' | 43 | +if host_system == 'windows' |
44 | gio_tests += [{'win32-streams' : {}}] | 44 | gio_tests += {'win32-streams' : {}} |
45 | endif | 45 | endif |
46 | 46 | ||
47 | @@ -379,7 +379,7 @@ if cc.get_id() != 'msvc' | 47 | @@ -392,7 +392,7 @@ if cc.get_id() != 'msvc' |
48 | }] | 48 | } |
49 | endif | 49 | endif |
50 | 50 | ||
51 | -if host_machine.system() != 'windows' | 51 | -if host_machine.system() != 'windows' |
52 | +if host_system != 'windows' | 52 | +if host_system != 'windows' |
53 | test_extra_programs += [{ | 53 | test_extra_programs += { |
54 | 'gdbus-example-unix-fd-client' : { | 54 | 'gdbus-example-unix-fd-client' : { |
55 | 'install' : false, | 55 | 'install' : false, |
56 | diff --git a/glib/tests/meson.build b/glib/tests/meson.build | 56 | diff --git a/glib/tests/meson.build b/glib/tests/meson.build |
57 | index d7b6a7a..6678a08 100644 | 57 | index d54fc41..a4761fe 100644 |
58 | --- a/glib/tests/meson.build | 58 | --- a/glib/tests/meson.build |
59 | +++ b/glib/tests/meson.build | 59 | +++ b/glib/tests/meson.build |
60 | @@ -45,7 +45,7 @@ glib_tests = { | 60 | @@ -132,7 +132,7 @@ if glib_conf.has('HAVE_EVENTFD') |
61 | 'hook' : {}, | 61 | } |
62 | 'hostutils' : {}, | 62 | endif |
63 | 'include' : { | 63 | |
64 | - 'skip' : host_machine.system() == 'windows', | 64 | -if host_machine.system() == 'windows' |
65 | + 'skip' : host_system == 'windows', | 65 | +if host_system == 'windows' |
66 | }, | 66 | if winsock2.found() |
67 | 'keyfile' : {}, | 67 | glib_tests += { |
68 | 'list' : {}, | 68 | 'gpoll' : { |
69 | @@ -112,7 +112,7 @@ glib_tests = { | ||
70 | 'utils' : {}, | ||
71 | 'unicode' : {}, | ||
72 | 'unix' : { | ||
73 | - 'skip' : host_machine.system() == 'windows', | ||
74 | + 'skip' : host_system == 'windows', | ||
75 | }, | ||
76 | 'uri' : {}, | ||
77 | '1bit-mutex' : {}, | ||
78 | diff --git a/meson.build b/meson.build | 69 | diff --git a/meson.build b/meson.build |
79 | index f7405a2..4348f20 100644 | 70 | index a745024..e87eae5 100644 |
80 | --- a/meson.build | 71 | --- a/meson.build |
81 | +++ b/meson.build | 72 | +++ b/meson.build |
82 | @@ -31,6 +31,9 @@ else | 73 | @@ -31,6 +31,9 @@ else |
@@ -90,15 +81,15 @@ index f7405a2..4348f20 100644 | |||
90 | glib_version = meson.project_version() | 81 | glib_version = meson.project_version() |
91 | glib_api_version = '2.0' | 82 | glib_api_version = '2.0' |
92 | diff --git a/tests/meson.build b/tests/meson.build | 83 | diff --git a/tests/meson.build b/tests/meson.build |
93 | index 80e45d7..9f3869f 100644 | 84 | index 11075dd..cd6067b 100644 |
94 | --- a/tests/meson.build | 85 | --- a/tests/meson.build |
95 | +++ b/tests/meson.build | 86 | +++ b/tests/meson.build |
96 | @@ -67,7 +67,7 @@ test_extra_programs = { | 87 | @@ -66,7 +66,7 @@ test_extra_programs = { |
97 | 'unicode-collate' : {}, | 88 | 'unicode-collate' : {}, |
98 | } | 89 | } |
99 | 90 | ||
100 | -if host_machine.system() != 'windows' | 91 | -if host_machine.system() != 'windows' |
101 | +if host_system != 'windows' | 92 | +if host_system != 'windows' |
102 | tests += [{ | 93 | tests += { |
103 | 'timeloop' : {}, | 94 | 'timeloop' : {}, |
104 | 'spawn-test' : {}, | 95 | 'iochannel-test' : {}, |