Bug#871185: [Pkg-ime-devel] Bug#871185: ibus-kkc: FTBFS with vala 0.36

2017-08-13 Thread Mitsuya Shibata
Owner: mty.shib...@gmail.com

Hi Jeremy,

Thank you for your reporting and patch.

I pushed fixed and new upstream code to package's vcs,
and uploaded to mentors.debian.net.
If package's information will be appeared, then I will send request sponsorship.

Regards,
-- 
Mitsuya Shibata



Bug#871185: ibus-kkc: FTBFS with vala 0.36

2017-08-06 Thread Jeremy Bicha
You can find a build log from Ubuntu 17.10 Alpha at
https://launchpad.net/~jbicha/+archive/ubuntu/vala36/+build/12762529
From 8e794ef1aafd8a7d3bb9464494b0f850cbd41218 Mon Sep 17 00:00:00 2001
From: Jeremy Bicha 
Date: Sat, 17 Jun 2017 20:43:53 -0400
Subject: [PATCH] Fix build with vala 0.36

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

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..cc63c52
--- /dev/null
+++ b/debian/patches/Build-with-vala-0.36.patch
@@ -0,0 +1,48 @@
+From: Jeremy Bicha 
+Date: Sat, 17 Jun 2017 20:43:18 -0400
+Subject: Build with vala 0.36
+
+---
+ src/setup.vala | 12 
+ 1 file changed, 12 insertions(+)
+
+diff --git a/src/setup.vala b/src/setup.vala
+index 88b72ce..18f9ca1 100644
+--- a/src/setup.vala
 b/src/setup.vala
+@@ -392,7 +392,11 @@ class Setup : Object {
+ } catch (Error e) {
+ warning ("can't write shortcut: %s", e.message);
+ }
++#if VALA_0_36
++model.remove (ref iter);
++#else
+ model.remove (iter);
++#endif
+ }
+ }
+ 
+@@ -429,7 +433,11 @@ class Setup : Object {
+ continue;
+ keymap.set (old_event, null);
+ }
++#if VALA_0_36
++((Gtk.ListStore)model).remove (ref iter);
++#else
+ ((Gtk.ListStore)model).remove (iter);
++#endif
+ }
+ }
+ try {
+@@ -557,7 +565,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
+ }
+ save_dictionaries ("system_dictionaries");
+ }
diff --git a/debian/patches/series b/debian/patches/series
index a706715..ec5f1ff 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 ibus-kkc-content-type.patch
+Build-with-vala-0.36.patch
-- 
2.11.0



Bug#871185: ibus-kkc: FTBFS with vala 0.36

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

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

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

On behalf of the Debian Vala maintainers,
Jeremy Bicha