Bug#871186: ibus-skk: FTBFS with vala 0.36

2017-08-06 Thread Jeremy Bicha

From 47ce4bf917467120b979447f7872633f81d43031 Mon Sep 17 00:00:00 2001
From: Jeremy Bicha 
Date: Sat, 17 Jun 2017 20:52:26 -0400
Subject: [PATCH] Fix build with vala 0.36

Closes: #871186
---
 debian/patches/Build-with-vala-0.36.patch | 24 
 debian/patches/series |  1 +
 2 files changed, 25 insertions(+)
 create mode 100644 debian/patches/Build-with-vala-0.36.patch
 create mode 100644 debian/patches/series

diff --git a/debian/patches/Build-with-vala-0.36.patch b/debian/patches/Build-with-vala-0.36.patch
new file mode 100644
index 000..e200285
--- /dev/null
+++ b/debian/patches/Build-with-vala-0.36.patch
@@ -0,0 +1,24 @@
+From: Jeremy Bicha 
+Date: Sat, 17 Jun 2017 20:52:03 -0400
+Subject: Build with vala 0.36
+
+---
+ src/setup.vala | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/setup.vala b/src/setup.vala
+index 674c24b..6b2ae1e 100644
+--- a/src/setup.vala
 b/src/setup.vala
+@@ -338,7 +338,11 @@ class Setup : Object {
+ foreach (var row in rows) {
+ Gtk.TreeIter iter;
+ if (model.get_iter (out iter, row)) {
++#if VALA_0_36
++((Gtk.ListStore)model).remove (ref iter);
++#else
+ ((Gtk.ListStore)model).remove (iter);
++#endif
+ }
+ }
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 000..5325942
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Build-with-vala-0.36.patch
-- 
2.11.0



Bug#871186: ibus-skk: FTBFS with vala 0.36

2017-08-06 Thread Jeremy Bicha
Source: ibus-skk
Version: 1.4.2-1
Severity: important
User: pkg-vala-maintain...@lists.alioth.debian.org
Usertags: vala-0.36
Tags: buster sid patch

ibus-skk fails to build from source with vala 0.36 which is currently
in experimental and will be uploaded to unstable soon.

You can find a build log from Ubuntu 17.10 Alpha at
https://launchpad.net/~jbicha/+archive/ubuntu/vala36/+build/12762530

I am attaching a patch to fix this issue (in my next email).

On behalf of the Debian Vala maintainers,
Jeremy Bicha