summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2016-12-06 09:52:44 +0100
committerPacho Ramos <pacho@gentoo.org>2016-12-06 09:53:05 +0100
commit161105c3bbf17ebe14f70be1266a5ea1004b4111 (patch)
tree19cceb1353e0a28d3428d143931043571f34c1ec /mail-client/geary
parentmedia-libs/harfbuzz: Removed old. (diff)
downloadgentoo-161105c3bbf17ebe14f70be1266a5ea1004b4111.tar.gz
gentoo-161105c3bbf17ebe14f70be1266a5ea1004b4111.tar.bz2
gentoo-161105c3bbf17ebe14f70be1266a5ea1004b4111.zip
mail-client/geary: Fix warnings with vala-0.34 (#601778 by Toralf Förster), don't make warnings fatal.
Package-Manager: portage-2.3.2
Diffstat (limited to 'mail-client/geary')
-rw-r--r--mail-client/geary/files/geary-0.11.2-vala-0.34.patch72
-rw-r--r--mail-client/geary/geary-0.11.2.ebuild4
2 files changed, 76 insertions, 0 deletions
diff --git a/mail-client/geary/files/geary-0.11.2-vala-0.34.patch b/mail-client/geary/files/geary-0.11.2-vala-0.34.patch
new file mode 100644
index 000000000000..b01f5772ad0f
--- /dev/null
+++ b/mail-client/geary/files/geary-0.11.2-vala-0.34.patch
@@ -0,0 +1,72 @@
+From 8af85ac5a836d877428a6958fbae4b36e29279b0 Mon Sep 17 00:00:00 2001
+From: Rico Tzschichholz <ricotz@ubuntu.com>
+Date: Fri, 8 Jul 2016 09:56:42 +0200
+Subject: Fix compile warnings with vala git
+
+---
+ src/client/application/geary-application.vala | 4 ++--
+ src/client/components/conversation-find-bar.vala | 2 +-
+ src/client/dialogs/attachment-dialog.vala | 4 ++--
+ src/console/main.vala | 2 +-
+ 4 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/src/client/application/geary-application.vala b/src/client/application/geary-application.vala
+index 3d04f96..2480aab 100644
+--- a/src/client/application/geary-application.vala
++++ b/src/client/application/geary-application.vala
+@@ -36,9 +36,9 @@ public class GearyApplication : Gtk.Application {
+ null
+ };
+
+- private static const string ACTION_ENTRY_COMPOSE = "compose";
++ private const string ACTION_ENTRY_COMPOSE = "compose";
+
+- public static const ActionEntry[] action_entries = {
++ public const ActionEntry[] action_entries = {
+ {ACTION_ENTRY_COMPOSE, activate_compose, "s"},
+ };
+
+diff --git a/src/client/components/conversation-find-bar.vala b/src/client/components/conversation-find-bar.vala
+index 008f4d3..a625896 100644
+--- a/src/client/components/conversation-find-bar.vala
++++ b/src/client/components/conversation-find-bar.vala
+@@ -5,7 +5,7 @@
+ */
+
+ public class ConversationFindBar : Gtk.Layout {
+- private static const string entry_not_found_style =
++ private const string entry_not_found_style =
+ """
+ .geary-not-found {
+ color: white;
+diff --git a/src/client/dialogs/attachment-dialog.vala b/src/client/dialogs/attachment-dialog.vala
+index 79884fa..980e67f 100644
+--- a/src/client/dialogs/attachment-dialog.vala
++++ b/src/client/dialogs/attachment-dialog.vala
+@@ -5,8 +5,8 @@
+ */
+
+ public class AttachmentDialog : Gtk.FileChooserDialog {
+- private static const int PREVIEW_SIZE = 180;
+- private static const int PREVIEW_PADDING = 3;
++ private const int PREVIEW_SIZE = 180;
++ private const int PREVIEW_PADDING = 3;
+
+ private static string? current_folder = null;
+
+diff --git a/src/console/main.vala b/src/console/main.vala
+index 6ae3fff..7d0ba12 100644
+--- a/src/console/main.vala
++++ b/src/console/main.vala
+@@ -15,7 +15,7 @@ errordomain CommandException {
+ class ImapConsole : Gtk.Window {
+ public const string VERSION = _VERSION;
+
+- private static const int KEEPALIVE_SEC = 60 * 10;
++ private const int KEEPALIVE_SEC = 60 * 10;
+
+ private Gtk.TextView console = new Gtk.TextView();
+ private Gtk.Entry cmdline = new Gtk.Entry();
+--
+cgit v0.12
+
diff --git a/mail-client/geary/geary-0.11.2.ebuild b/mail-client/geary/geary-0.11.2.ebuild
index 9382f6a5cdce..0e54e825ea5e 100644
--- a/mail-client/geary/geary-0.11.2.ebuild
+++ b/mail-client/geary/geary-0.11.2.ebuild
@@ -51,6 +51,9 @@ src_prepare() {
# https://bugzilla.gnome.org/show_bug.cgi?id=751558
eapply "${FILESDIR}"/${PN}-0.6.0-desktopfile.patch
+ # vala-0.34 compat, fixed in next version, bug #601778
+ eapply "${FILESDIR}"/${P}-vala-0.34.patch
+
local i
if use nls ; then
if [[ -n "${LINGUAS+x}" ]] ; then
@@ -72,6 +75,7 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
-DDESKTOP_UPDATE=OFF
+ -DNO_FATAL_WARNINGS=ON
-DGSETTINGS_COMPILE=OFF
-DICON_UPDATE=OFF
-DVALA_EXECUTABLE="${VALAC}"