The ftbfs bugs caused by vala and a new gobject-introspection can easily be
fixed (at least in most cases) by switching to valac-0.20 which just got its way
into unstable. I just fixed bug #707378 this way by switching the build
dependency accordingly.
Unfortunately in the case of gedit-valencia-plugin it's not that simple.
Switching to valac 0.20 (debdiff attached) results in the following.
valac -X --shared -X -fPIC --vapidir=. --pkg gedit --pkg gee-1.0 --pkg
gtk+-3.0 --pkg libvala-0.20 --pkg vte-2.90 --pkg gtksourceview-3.0 --pkg
PeasGtk-1.0 autocomplete.vala browser.vala expression.vala gtk_util.vala
parser.vala program.vala scanner.vala settings.vala util.vala
valencia.vala -o libvalencia.so
autocomplete.vala:248.23-248.27: error: Argument 1: Cannot pass value to
reference or output parameter
buffer.delete(start, end);
^^^^^
autocomplete.vala:74.29-74.44: warning: string.offset is deprecated. Use
string.substring
scanner.vala:303.16-303.30: warning: string.ndup is deprecated. Use
string.substring
parser.vala:303.28-303.37: warning: string.ndup is deprecated. Use
string.substring
settings.vala:36.31-36.39: warning: Gtk.Table has been deprecated since
3.4. Use Grid
gtk_util.vala:193.29-193.36: warning: Gtk.VBox has been deprecated since
3.2. Use Box
gtk_util.vala:194.29-194.36: warning: Gtk.HBox has been deprecated since
3.2. Use Grid
gtk_util.vala:131.9-131.24: warning: Gtk.Widget.modify_bg has been
deprecated since 3.0. Use override_background_color
valencia.vala:924.20-924.52: warning: Gee.Map.contains is deprecated
valencia.vala:865.27-865.48: warning: string.to_int is deprecated. Use
int.parse
valencia.vala:870.55-870.76: warning: string.to_int is deprecated. Use
int.parse
valencia.vala:871.38-871.57: warning: string.to_int is deprecated. Use
int.parse
valencia.vala:871.66-871.85: warning: string.to_int is deprecated. Use
int.parse
gtk_util.vala:32.23-32.25: error: Argument 1: Cannot pass value to
reference or output parameter
buffer.insert(end, text, -1);
^^^
valencia.vala:1142.62-1142.84: warning: string.to_int is deprecated. Use
int.parse
valencia.vala:260.9-260.31: warning: Gtk.Widget.modify_font has been
deprecated since 3.0. Use override_font
valencia.vala:1326.36-1326.48: warning: string.offset is deprecated. Use
string.substring
valencia.vala:401.39-401.69: warning: Gee.Map.remove is deprecated
browser.vala:32.27-32.34: warning: Gtk.VBox has been deprecated since
3.2. Use Box
Compilation failed: 2 error(s), 17 warning(s)
Since I don't know any vala I can't really help in working out what is
going wrong here.
diff -Nru gedit-valencia-plugin-0.3.0/debian/changelog
gedit-valencia-plugin-0.3.0/debian/changelog
--- gedit-valencia-plugin-0.3.0/debian/changelog 2012-02-20
18:01:01.000000000 +0000
+++ gedit-valencia-plugin-0.3.0/debian/changelog 2013-08-20
09:58:46.000000000 +0000
@@ -1,3 +1,9 @@
+gedit-valencia-plugin (0.3.0-3.1+rpi1) jessie-staging; urgency=low
+
+ * Switch to valac/libvala 0.20 to fix FTBFS with new gobject-introspection.
+
+ -- Peter Michael Green <plugw...@raspbian.org> Tue, 20 Aug 2013 09:58:17
+0000
+
gedit-valencia-plugin (0.3.0-3.1) unstable; urgency=low
* Non-maintainer upload.
diff -Nru gedit-valencia-plugin-0.3.0/debian/control
gedit-valencia-plugin-0.3.0/debian/control
--- gedit-valencia-plugin-0.3.0/debian/control 2012-02-20 18:00:22.000000000
+0000
+++ gedit-valencia-plugin-0.3.0/debian/control 2013-08-20 09:52:57.000000000
+0000
@@ -7,8 +7,8 @@
, libvte-2.90-dev (>= 0.27.90)
, libpeas-dev
, libgee-dev
- , libvala-0.14-dev
- , valac-0.14
+ , libvala-0.20-dev
+ , valac-0.20
, m4
Standards-Version: 3.9.1
Homepage: http://yorba.org/valencia/
diff -Nru gedit-valencia-plugin-0.3.0/debian/patches/03-vala_0.14.patch
gedit-valencia-plugin-0.3.0/debian/patches/03-vala_0.14.patch
--- gedit-valencia-plugin-0.3.0/debian/patches/03-vala_0.14.patch
2012-02-20 18:00:22.000000000 +0000
+++ gedit-valencia-plugin-0.3.0/debian/patches/03-vala_0.14.patch
1970-01-01 00:00:00.000000000 +0000
@@ -1,29 +0,0 @@
-Description: Use Vala 0.14
-Author: Colin Watson <cjwat...@ubuntu.com>
-Bug-Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/gedit-valencia-plugin/+bug/831183/comments/1
-Bug-Debian: http://bugs.debian.org/650228
-Forwarded: no
-Last-Update: 2011-09-19
-
-Index: b/Makefile
-===================================================================
---- a/Makefile
-+++ b/Makefile
-@@ -8,7 +8,7 @@
- SOURCES = autocomplete.vala browser.vala expression.vala gtk_util.vala
parser.vala program.vala \
- scanner.vala settings.vala util.vala valencia.vala
-
--PACKAGES = --pkg gedit --pkg gee-1.0 --pkg gtk+-3.0 --pkg libvala-0.12 --pkg
vte-2.90 \
-+PACKAGES = --pkg gedit --pkg gee-1.0 --pkg gtk+-3.0 --pkg libvala-0.14 --pkg
vte-2.90 \
- --pkg gtksourceview-3.0 --pkg PeasGtk-1.0
-
- PACKAGE_VERSIONS = \
-@@ -16,7 +16,7 @@
- gee-1.0 >= 0.1.3 \
- gtksourceview-3.0 >= 3.0.0 \
- gtk+-3.0 >= 3.0.0 \
-- libvala-0.12 >= 0.11.0 \
-+ libvala-0.14 >= 0.11.0 \
- vte-2.90 >= 0.27.90
-
- OUTPUTS = libvalencia.so valencia.plugin
diff -Nru gedit-valencia-plugin-0.3.0/debian/patches/03-vala_0.20.patch
gedit-valencia-plugin-0.3.0/debian/patches/03-vala_0.20.patch
--- gedit-valencia-plugin-0.3.0/debian/patches/03-vala_0.20.patch
1970-01-01 00:00:00.000000000 +0000
+++ gedit-valencia-plugin-0.3.0/debian/patches/03-vala_0.20.patch
2013-08-20 10:01:04.000000000 +0000
@@ -0,0 +1,30 @@
+Description: Use Vala 0.20
+Author: Colin Watson <cjwat...@ubuntu.com>
+Author: Peter Michael Green <plugw...@debian.org>
+Bug-Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/gedit-valencia-plugin/+bug/831183/comments/1
+Bug-Debian: http://bugs.debian.org/650228
+Forwarded: no
+Last-Update: 2011-09-19
+
+Index: b/Makefile
+===================================================================
+--- a/Makefile
++++ b/Makefile
+@@ -8,7 +8,7 @@
+ SOURCES = autocomplete.vala browser.vala expression.vala gtk_util.vala
parser.vala program.vala \
+ scanner.vala settings.vala util.vala valencia.vala
+
+-PACKAGES = --pkg gedit --pkg gee-1.0 --pkg gtk+-3.0 --pkg libvala-0.12 --pkg
vte-2.90 \
++PACKAGES = --pkg gedit --pkg gee-1.0 --pkg gtk+-3.0 --pkg libvala-0.20 --pkg
vte-2.90 \
+ --pkg gtksourceview-3.0 --pkg PeasGtk-1.0
+
+ PACKAGE_VERSIONS = \
+@@ -16,7 +16,7 @@
+ gee-1.0 >= 0.1.3 \
+ gtksourceview-3.0 >= 3.0.0 \
+ gtk+-3.0 >= 3.0.0 \
+- libvala-0.12 >= 0.11.0 \
++ libvala-0.20 >= 0.11.0 \
+ vte-2.90 >= 0.27.90
+
+ OUTPUTS = libvalencia.so valencia.plugin
diff -Nru gedit-valencia-plugin-0.3.0/debian/patches/series
gedit-valencia-plugin-0.3.0/debian/patches/series
--- gedit-valencia-plugin-0.3.0/debian/patches/series 2012-02-20
18:00:22.000000000 +0000
+++ gedit-valencia-plugin-0.3.0/debian/patches/series 2013-08-20
10:00:28.000000000 +0000
@@ -1,4 +1,4 @@
00-fix_icon_location.patch
01-fix_vala_dependencies.patch
02-support_gedit3.patch
-03-vala_0.14.patch
+03-vala_0.20.patch