1 |
commit: 07ceaab3023fa2d980914de37aa5ba6988669a0b |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Tue Jun 1 17:22:36 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 1 19:01:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07ceaab3 |
7 |
|
8 |
dev-libs/libgweather: remove unused patches |
9 |
|
10 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
11 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/21077 |
13 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
14 |
|
15 |
.../libgweather/files/3.32.1-meson-tweaks.patch | 109 --------------------- |
16 |
.../libgweather/files/3.36.1-tests-locale.patch | 52 ---------- |
17 |
.../files/3.36.2-autoskip-network-test.patch | 29 ------ |
18 |
3 files changed, 190 deletions(-) |
19 |
|
20 |
diff --git a/dev-libs/libgweather/files/3.32.1-meson-tweaks.patch b/dev-libs/libgweather/files/3.32.1-meson-tweaks.patch |
21 |
deleted file mode 100644 |
22 |
index 9d1bdc017c2..00000000000 |
23 |
--- a/dev-libs/libgweather/files/3.32.1-meson-tweaks.patch |
24 |
+++ /dev/null |
25 |
@@ -1,109 +0,0 @@ |
26 |
-From ad9fa6e469c4eba423b0f7bd5fbd7a76f6165ffe Mon Sep 17 00:00:00 2001 |
27 |
-From: Mart Raudsepp <leio@g.o> |
28 |
-Date: Sat, 23 Feb 2019 12:21:01 +0200 |
29 |
-Subject: [PATCH] build: Provide introspection option and don't build manual |
30 |
- tests |
31 |
- |
32 |
---- |
33 |
- libgweather/meson.build | 21 ++++++++++++++------- |
34 |
- meson.build | 4 ++++ |
35 |
- meson_options.txt | 2 ++ |
36 |
- 3 files changed, 20 insertions(+), 7 deletions(-) |
37 |
- |
38 |
-diff --git a/libgweather/meson.build b/libgweather/meson.build |
39 |
-index 6688807..6776839 100644 |
40 |
---- a/libgweather/meson.build |
41 |
-+++ b/libgweather/meson.build |
42 |
-@@ -66,6 +66,15 @@ lib_libgweather = shared_library('gweather-3', |
43 |
- install: true, |
44 |
- ) |
45 |
- |
46 |
-+libgweather_dep = declare_dependency( |
47 |
-+ sources: [gweather_enum_types[1]], |
48 |
-+ dependencies: deps_libgweather, |
49 |
-+ link_with: lib_libgweather, |
50 |
-+ include_directories: root_inc, |
51 |
-+) |
52 |
-+ |
53 |
-+if get_option('introspection') |
54 |
-+ |
55 |
- gweather_gir = gnome.generate_gir(lib_libgweather, |
56 |
- sources: introspection_sources, |
57 |
- dependencies: deps_libgweather, |
58 |
-@@ -83,13 +92,6 @@ gweather_gir = gnome.generate_gir(lib_libgweather, |
59 |
- install: true, |
60 |
- ) |
61 |
- |
62 |
--libgweather_dep = declare_dependency( |
63 |
-- sources: [gweather_enum_types[1], gweather_gir], |
64 |
-- dependencies: deps_libgweather, |
65 |
-- link_with: lib_libgweather, |
66 |
-- include_directories: root_inc, |
67 |
--) |
68 |
-- |
69 |
- if enable_vala |
70 |
- gnome.generate_vapi('gweather-3.0', |
71 |
- sources: gweather_gir[0], |
72 |
-@@ -98,11 +100,13 @@ if enable_vala |
73 |
- install: true |
74 |
- ) |
75 |
- endif |
76 |
-+endif |
77 |
- |
78 |
- test_cargs = ['-DTEST_SRCDIR="@0@/"'.format(meson.current_source_dir()), |
79 |
- '-DSCHEMASDIR="@0@/schemas"'.format(meson.source_root()), |
80 |
- '-DSCHEMAS_BUILDDIR="@0@/schemas"'.format(meson.build_root())] |
81 |
- |
82 |
-+if false |
83 |
- executable('test_locations', |
84 |
- ['test_locations.c'], |
85 |
- c_args: test_cargs, |
86 |
-@@ -113,6 +117,7 @@ executable('test_locations_utc', |
87 |
- c_args: test_cargs, |
88 |
- dependencies: libgweather_dep, |
89 |
- install: false) |
90 |
-+endif |
91 |
- |
92 |
- exe = executable('test_libgweather', |
93 |
- ['test_libgweather.c'], |
94 |
-@@ -121,6 +126,7 @@ exe = executable('test_libgweather', |
95 |
- install: false) |
96 |
- test('test_named_timezones', exe) |
97 |
- |
98 |
-+if false |
99 |
- executable('test_metar', |
100 |
- ['test_metar.c', gweather_c_sources], |
101 |
- c_args: test_cargs, |
102 |
-@@ -131,3 +137,4 @@ executable('test_sun_moon', |
103 |
- c_args: test_cargs, |
104 |
- dependencies: libgweather_dep, |
105 |
- install: false) |
106 |
-+endif |
107 |
-diff --git a/meson.build b/meson.build |
108 |
-index 54a5063..96e5d27 100644 |
109 |
---- a/meson.build |
110 |
-+++ b/meson.build |
111 |
-@@ -112,6 +112,10 @@ else |
112 |
- enable_vala = enable_vala != 'false' |
113 |
- endif |
114 |
- |
115 |
-+if enable_vala and not get_option('introspection') |
116 |
-+ error('Vala bindings require introspection support') |
117 |
-+endif |
118 |
-+ |
119 |
- root_inc = include_directories('.') |
120 |
- |
121 |
- subdir('libgweather') |
122 |
-diff --git a/meson_options.txt b/meson_options.txt |
123 |
-index 19b2c6a..bf4c517 100644 |
124 |
---- a/meson_options.txt |
125 |
-+++ b/meson_options.txt |
126 |
-@@ -8,3 +8,5 @@ option('enable_vala', type: 'combo', choices : ['true', 'false', 'auto'], value |
127 |
- description: 'Install vala bindings') |
128 |
- option('gtk_doc', type: 'boolean', value: false, |
129 |
- description: 'Whether to generate the API reference') |
130 |
-+option('introspection', type: 'boolean', value: true, |
131 |
-+ description: 'generate GObject Introspection data') |
132 |
--- |
133 |
-2.17.0 |
134 |
- |
135 |
|
136 |
diff --git a/dev-libs/libgweather/files/3.36.1-tests-locale.patch b/dev-libs/libgweather/files/3.36.1-tests-locale.patch |
137 |
deleted file mode 100644 |
138 |
index fb35d2f00b7..00000000000 |
139 |
--- a/dev-libs/libgweather/files/3.36.1-tests-locale.patch |
140 |
+++ /dev/null |
141 |
@@ -1,52 +0,0 @@ |
142 |
-From 8b20cd91a96eae39bafe82ccf444dbc00759ad43 Mon Sep 17 00:00:00 2001 |
143 |
-From: Emmanuele Bassi <ebassi@×××××.org> |
144 |
-Date: Mon, 9 Mar 2020 12:21:57 +0000 |
145 |
-Subject: [PATCH] Do not run local-dependent tests with missing locales |
146 |
- |
147 |
-Not everyone has all the locales installed all the time, so let's check |
148 |
-if a locale is available before using it. |
149 |
---- |
150 |
- libgweather/test_libgweather.c | 12 +++++++++++- |
151 |
- 1 file changed, 11 insertions(+), 1 deletion(-) |
152 |
- |
153 |
-diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c |
154 |
-index 8a219115..77ee459b 100644 |
155 |
---- a/libgweather/test_libgweather.c |
156 |
-+++ b/libgweather/test_libgweather.c |
157 |
-@@ -643,6 +643,7 @@ static void |
158 |
- test_location_names (void) |
159 |
- { |
160 |
- GWeatherLocation *world, *brussels; |
161 |
-+ char *old_locale; |
162 |
- |
163 |
- world = gweather_location_get_world (); |
164 |
- g_assert (world); |
165 |
-@@ -653,7 +654,16 @@ test_location_names (void) |
166 |
- g_assert_cmpstr (gweather_location_get_sort_name (brussels), ==, "brussels"); |
167 |
- g_assert_cmpstr (gweather_location_get_english_name (brussels), ==, "Brussels"); |
168 |
- |
169 |
-+ old_locale = g_strdup (setlocale (LC_ALL, NULL)); |
170 |
- setlocale (LC_ALL, "fr_FR.UTF-8"); |
171 |
-+ if (strstr (setlocale (LC_ALL, NULL), "fr_FR.UTF-8") == NULL) |
172 |
-+ { |
173 |
-+ g_test_skip ("locale fr_FR.UTF-8 not available, skipping localization tests"); |
174 |
-+ setlocale (LC_ALL, old_locale); |
175 |
-+ g_free (old_locale); |
176 |
-+ return; |
177 |
-+ } |
178 |
-+ |
179 |
- _gweather_location_reset_world (); |
180 |
- |
181 |
- world = gweather_location_get_world (); |
182 |
-@@ -665,7 +675,7 @@ test_location_names (void) |
183 |
- g_assert_cmpstr (gweather_location_get_sort_name (brussels), ==, "bruxelles"); |
184 |
- g_assert_cmpstr (gweather_location_get_english_name (brussels), ==, "Brussels"); |
185 |
- |
186 |
-- setlocale (LC_ALL, ""); |
187 |
-+ setlocale (LC_ALL, old_locale); |
188 |
- _gweather_location_reset_world (); |
189 |
- } |
190 |
- |
191 |
--- |
192 |
-GitLab |
193 |
- |
194 |
|
195 |
diff --git a/dev-libs/libgweather/files/3.36.2-autoskip-network-test.patch b/dev-libs/libgweather/files/3.36.2-autoskip-network-test.patch |
196 |
deleted file mode 100644 |
197 |
index bc35bb3c4fd..00000000000 |
198 |
--- a/dev-libs/libgweather/files/3.36.2-autoskip-network-test.patch |
199 |
+++ /dev/null |
200 |
@@ -1,29 +0,0 @@ |
201 |
-From 4bc5b6792706788f0930bda7049adf349713a2cc Mon Sep 17 00:00:00 2001 |
202 |
-From: Mart Raudsepp <leio@g.o> |
203 |
-Date: Sun, 30 Aug 2020 10:35:13 +0300 |
204 |
-Subject: [PATCH] tests: Skip metar tests when METAR_SOURCES couldn't be |
205 |
- resolved |
206 |
- |
207 |
---- |
208 |
- libgweather/test_libgweather.c | 5 +++++ |
209 |
- 1 file changed, 5 insertions(+) |
210 |
- |
211 |
-diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c |
212 |
-index b481278d..5704bd8b 100644 |
213 |
---- a/libgweather/test_libgweather.c |
214 |
-+++ b/libgweather/test_libgweather.c |
215 |
-@@ -424,6 +424,11 @@ test_metar_weather_stations (void) |
216 |
- g_test_message ("SSL/TLS failure, please check your glib-networking installation"); |
217 |
- g_test_failed (); |
218 |
- return; |
219 |
-+ } else if (msg->status_code == SOUP_STATUS_CANT_RESOLVE) { |
220 |
-+ g_test_skip ("Could not resolve " METAR_SOURCES " - network sandboxed?"); |
221 |
-+ g_object_unref (session); |
222 |
-+ g_object_unref (msg); |
223 |
-+ return; |
224 |
- } |
225 |
- g_assert_cmpint (msg->status_code, >=, 200); |
226 |
- g_assert_cmpint (msg->status_code, <, 300); |
227 |
--- |
228 |
-2.26.2 |
229 |
- |