diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-03-24 09:29:15 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-03-24 09:45:25 -0700 |
| commit | b5bbdd3964ff28813ccc15422f5db60e69283cad (patch) | |
| tree | 4da07aeedb29c66c85c238fb70c754f7f477b0aa | |
| parent | 4ab47d303ecfe76e6a06c56a533f42269997d7af (diff) | |
| download | meta-openembedded-b5bbdd3964ff28813ccc15422f5db60e69283cad.tar.gz | |
geary: Fix build failures with latest vala
Backport needed patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 71 insertions, 0 deletions
diff --git a/meta-gnome/recipes-connectivity/geary/geary/0001-Util.Cache.Lru-Workaround-missing-generic-type-argum.patch b/meta-gnome/recipes-connectivity/geary/geary/0001-Util.Cache.Lru-Workaround-missing-generic-type-argum.patch new file mode 100644 index 0000000000..22af4f5bea --- /dev/null +++ b/meta-gnome/recipes-connectivity/geary/geary/0001-Util.Cache.Lru-Workaround-missing-generic-type-argum.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 166198735e9f4fbe91557df1351b3481bcf79e78 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rico Tzschichholz <ricotz@ubuntu.com> | ||
| 3 | Date: Sun, 30 Jan 2022 19:54:11 +0100 | ||
| 4 | Subject: [PATCH 1/2] Util.Cache.Lru: Workaround missing generic type argument | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/geary/-/commit/0f75e7a84a39492d0748cec2ba6028e08cae3644] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | src/client/util/util-cache.vala | 2 +- | ||
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/src/client/util/util-cache.vala b/src/client/util/util-cache.vala | ||
| 13 | index f054e32e..ecc275e8 100644 | ||
| 14 | --- a/src/client/util/util-cache.vala | ||
| 15 | +++ b/src/client/util/util-cache.vala | ||
| 16 | @@ -12,7 +12,7 @@ public class Util.Cache.Lru<T> : Geary.BaseObject { | ||
| 17 | private class CacheEntry<T> { | ||
| 18 | |||
| 19 | |||
| 20 | - public static int lru_compare(CacheEntry<T> a, CacheEntry<T> b) { | ||
| 21 | + public static int lru_compare(CacheEntry a, CacheEntry b) { | ||
| 22 | if (a.key == b.key) { | ||
| 23 | return 0; | ||
| 24 | } | ||
| 25 | -- | ||
| 26 | 2.35.1 | ||
| 27 | |||
diff --git a/meta-gnome/recipes-connectivity/geary/geary/0002-Fix-accessibility-issues-with-initializer-of-constan.patch b/meta-gnome/recipes-connectivity/geary/geary/0002-Fix-accessibility-issues-with-initializer-of-constan.patch new file mode 100644 index 0000000000..76315f3a0e --- /dev/null +++ b/meta-gnome/recipes-connectivity/geary/geary/0002-Fix-accessibility-issues-with-initializer-of-constan.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 64b56e75a54a9fa3f37c7686be97a5c8818413a4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rico Tzschichholz <ricotz@ubuntu.com> | ||
| 3 | Date: Tue, 30 Nov 2021 15:31:31 +0100 | ||
| 4 | Subject: [PATCH 2/2] Fix accessibility issues with initializer of constants | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/geary/-/commit/9bd4c82952a0a2c3308c5cc86c0b85650c1fb484] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | src/client/application/application-client.vala | 14 +++++++------- | ||
| 10 | 1 file changed, 7 insertions(+), 7 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/src/client/application/application-client.vala b/src/client/application/application-client.vala | ||
| 13 | index 6ce19ce2..e6ba8533 100644 | ||
| 14 | --- a/src/client/application/application-client.vala | ||
| 15 | +++ b/src/client/application/application-client.vala | ||
| 16 | @@ -8,16 +8,16 @@ | ||
| 17 | |||
| 18 | // Defined by CMake build script. | ||
| 19 | extern const string GETTEXT_PACKAGE; | ||
| 20 | -extern const string _APP_ID; | ||
| 21 | -extern const string _BUILD_ROOT_DIR; | ||
| 22 | -extern const string _GSETTINGS_DIR; | ||
| 23 | -extern const string _INSTALL_PREFIX; | ||
| 24 | -extern const string _NAME_SUFFIX; | ||
| 25 | +public extern const string _APP_ID; | ||
| 26 | +public extern const string _BUILD_ROOT_DIR; | ||
| 27 | +public extern const string _GSETTINGS_DIR; | ||
| 28 | +public extern const string _INSTALL_PREFIX; | ||
| 29 | +public extern const string _NAME_SUFFIX; | ||
| 30 | extern const string _PLUGINS_DIR; | ||
| 31 | extern const string _PROFILE; | ||
| 32 | extern const string _REVNO; | ||
| 33 | -extern const string _SOURCE_ROOT_DIR; | ||
| 34 | -extern const string _VERSION; | ||
| 35 | +public extern const string _SOURCE_ROOT_DIR; | ||
| 36 | +public extern const string _VERSION; | ||
| 37 | extern const string _WEB_EXTENSIONS_DIR; | ||
| 38 | |||
| 39 | |||
| 40 | -- | ||
| 41 | 2.35.1 | ||
| 42 | |||
diff --git a/meta-gnome/recipes-connectivity/geary/geary_40.0.bb b/meta-gnome/recipes-connectivity/geary/geary_40.0.bb index 9b671eeab4..501b27a544 100644 --- a/meta-gnome/recipes-connectivity/geary/geary_40.0.bb +++ b/meta-gnome/recipes-connectivity/geary/geary_40.0.bb | |||
| @@ -34,6 +34,8 @@ inherit meson pkgconfig mime-xdg gtk-icon-cache gobject-introspection vala featu | |||
| 34 | 34 | ||
| 35 | SRC_URI = " \ | 35 | SRC_URI = " \ |
| 36 | git://github.com/GNOME/geary.git;nobranch=1;protocol=https \ | 36 | git://github.com/GNOME/geary.git;nobranch=1;protocol=https \ |
| 37 | file://0001-Util.Cache.Lru-Workaround-missing-generic-type-argum.patch \ | ||
| 38 | file://0002-Fix-accessibility-issues-with-initializer-of-constan.patch \ | ||
| 37 | " | 39 | " |
| 38 | 40 | ||
| 39 | S = "${WORKDIR}/git" | 41 | S = "${WORKDIR}/git" |
