Can't compile with vala 0.11

Reported by dcelasun on 2011-02-19
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ejecter
Undecided
Unassigned

Bug Description

This is on Arch Linux. Using vala 0.11 (vala 0.10 is fine), compilation fails with:

'configure' finished successfully (1.142s)
Waf: Entering directory `/home/dcelasun/Desktop/ayatana/repo/indicator-ejecter/src/ejecter-0.4.4/build'
[ 1/42] valac: src/conf.vala src/device.vala src/ejecter.vala src/misc.vala -> build/default/src/conf.c build/default/src/device.c build/default/src/ejecter.c build/default/src/misc.c
../src/ejecter.vala:78.29-78.81: error: 1 extra arguments for `void Notify.Notification.new (string summary, string? body, string? icon)'
Waf: Leaving directory `/home/dcelasun/Desktop/ayatana/repo/indicator-ejecter/src/ejecter-0.4.4/build'
Build failed
 -> task failed (err #1):
 {task: valac_task conf.vala,device.vala,ejecter.vala,misc.vala -> conf.c,device.c,ejecter.c,misc.c}

dcelasun (dcelasun) on 2011-02-19
description: updated
Federico Pelloni (fredp) wrote :

This is a known problem, on Ubuntu indeed the source package requires valac-0.10 to compile.
It is a vapi problem, with vala 0.10 Notify.Notification.new() takes 3 arguments, with 0.11 it only takes 2 instead. I'll probably have to ship a custom .vapi file to address the problem, I'll have a look on this.

Changed in ejecter:
status: New → Confirmed
Max (bubuta) wrote :

It's probably worth to focus on support of recent vala versions and drop support for legacy versions from end-of-lifed distro.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers