Package: spek
Version: 0.7-1
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch oneiric

I tried to build spek on current Ubuntu, and got the following build
error:

  /usr/bin/valac  --thread --vapidir=./../vapi --pkg config --pkg spek-audio 
--pkg spek-fft --pkg spek-platform --pkg gtk+-2.0 --pkg gio-2.0 -C spek.vala 
spek-audio.c spek-fft.c spek-message-bar.vala spek-pipeline.vala 
spek-platform.c spek-preferences.vala spek-preferences-dialog.vala 
spek-ruler.vala spek-spectrogram.vala spek-window.vala
  spek-window.vala:34.17-34.27: error: `ActionEntry' is an ambiguous reference 
between `GLib.ActionEntry' and `Gtk.ActionEntry'
                  private const ActionEntry[] ACTION_ENTRIES = {
                                ^^^^^^^^^^^
  Compilation failed: 1 error(s), 0 warning(s)
  make[3]: *** [spek_vala.stamp] Error 1

Judging from context this ought to be Gtk.ActionEntry.  Here's a patch.

  * Fix ActionEntry ambiguity resulting in Vala build error.

diff -Nru spek-0.7/debian/patches/fix-vala-build.patch 
spek-0.7/debian/patches/fix-vala-build.patch
--- spek-0.7/debian/patches/fix-vala-build.patch        1970-01-01 
01:00:00.000000000 +0100
+++ spek-0.7/debian/patches/fix-vala-build.patch        2011-08-19 
13:37:48.000000000 +0100
@@ -0,0 +1,21 @@
+Description: Fix Vala build
+ With current libraries, we otherwise get:
+ .
+   error: `ActionEntry' is an ambiguous reference between `GLib.ActionEntry' 
and `Gtk.ActionEntry'
+Author: Colin Watson <[email protected]>
+Forwarded: no
+Last-Update: 2011-08-19
+
+Index: b/src/spek-window.vala
+===================================================================
+--- a/src/spek-window.vala
++++ b/src/spek-window.vala
+@@ -31,7 +31,7 @@
+               private FileFilter filter_audio;
+               private FileFilter filter_png;
+ 
+-              private const ActionEntry[] ACTION_ENTRIES = {
++              private const Gtk.ActionEntry[] ACTION_ENTRIES = {
+                       { "File", null, N_("_File") },
+                       { "FileOpen", STOCK_OPEN, null, null, null, 
on_file_open },
+                       { "FileSave", STOCK_SAVE, null, null, null, 
on_file_save },
diff -Nru spek-0.7/debian/patches/series spek-0.7/debian/patches/series
--- spek-0.7/debian/patches/series      1970-01-01 01:00:00.000000000 +0100
+++ spek-0.7/debian/patches/series      2011-08-19 13:36:53.000000000 +0100
@@ -0,0 +1 @@
+fix-vala-build.patch

Thanks,

-- 
Colin Watson                                       [[email protected]]



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to