1 |
commit: 8d51833f1b370bb001874f7e92590ad54a64f90c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 21 17:08:14 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 21 17:08:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d51833f |
7 |
|
8 |
gnome-extra/gnome-weather: fix build with meson 0.61 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/831749 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../gnome-weather-41.0-fix-meson-0.61-build.patch | 20 ++++++++++++++++++++ |
14 |
gnome-extra/gnome-weather/gnome-weather-41.0.ebuild | 7 ++++++- |
15 |
2 files changed, 26 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/gnome-extra/gnome-weather/files/gnome-weather-41.0-fix-meson-0.61-build.patch b/gnome-extra/gnome-weather/files/gnome-weather-41.0-fix-meson-0.61-build.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..6756c77f8b7d |
20 |
--- /dev/null |
21 |
+++ b/gnome-extra/gnome-weather/files/gnome-weather-41.0-fix-meson-0.61-build.patch |
22 |
@@ -0,0 +1,20 @@ |
23 |
+https://gitlab.gnome.org/GNOME/gnome-weather/-/commit/4be71525f07189e97720688472172604879d49a5 |
24 |
+https://bugs.gentoo.org/831749 |
25 |
+ |
26 |
+From: rvalue <i@××××××.moe> |
27 |
+Date: Fri, 17 Dec 2021 12:26:42 +0000 |
28 |
+Subject: [PATCH] Remove incorrect args for i18n.merge_file |
29 |
+ |
30 |
+`i18n.merge_file` has been ignoring positional arguments for a time and |
31 |
+explicitly rejects with error since meson 0.60.0 |
32 |
+--- a/data/meson.build |
33 |
++++ b/data/meson.build |
34 |
+@@ -59,7 +59,6 @@ endif |
35 |
+ appdata_conf = configuration_data() |
36 |
+ appdata_conf.set('app_id', weather_id) |
37 |
+ appdata = i18n.merge_file( |
38 |
+- 'appdata', |
39 |
+ input: configure_file( |
40 |
+ input: '@0@×××××××××××××××.in'.format(default_id), |
41 |
+ output: '@0@××××××××××××.in'.format(default_id), |
42 |
+GitLab |
43 |
|
44 |
diff --git a/gnome-extra/gnome-weather/gnome-weather-41.0.ebuild b/gnome-extra/gnome-weather/gnome-weather-41.0.ebuild |
45 |
index 571ac23d8b64..59f506be80f2 100644 |
46 |
--- a/gnome-extra/gnome-weather/gnome-weather-41.0.ebuild |
47 |
+++ b/gnome-extra/gnome-weather/gnome-weather-41.0.ebuild |
48 |
@@ -1,4 +1,4 @@ |
49 |
-# Copyright 1999-2021 Gentoo Authors |
50 |
+# Copyright 1999-2022 Gentoo Authors |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
|
53 |
EAPI=7 |
54 |
@@ -31,12 +31,17 @@ BDEPEND=" |
55 |
>=sys-devel/gettext-0.19.8 |
56 |
virtual/pkgconfig |
57 |
" |
58 |
+ |
59 |
# Tests have a lot of issues, starting with reliance on a system installation, |
60 |
# accessing the network and other intermittent failures with network-sandbox disabled |
61 |
# https://gitlab.gnome.org/GNOME/gnome-weather/issues/67 (and rest not filed) |
62 |
# test dep: $(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') |
63 |
# With 3.34, this is now behind a dogtail option we can pass (and have data validation) |
64 |
|
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${P}-fix-meson-0.61-build.patch |
67 |
+) |
68 |
+ |
69 |
src_configure() { |
70 |
meson_src_configure -Dprofile=default -Ddogtail=false |
71 |
} |