1 |
On 04/13/2015 07:39 PM, Fernando Rodriguez wrote: |
2 |
> On Monday, April 13, 2015 4:13:40 PM walt wrote: |
3 |
>> I'm trying to install dev-libs/granite but the install fails with this bit |
4 |
> of wit: |
5 |
>> |
6 |
>> /var/tmp/portage/dev- |
7 |
> libs/granite-0.2.3.1/work/granite-0.2.3.1/lib/Widgets/DynamicNotebook.vala:509.19-509.49: |
8 |
> error: Return value transfers ownership but method return type hasn't been |
9 |
> declared to transfer ownership |
10 |
>> get { return add_button.tooltip_text; } |
11 |
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
12 |
>> |
13 |
>> Sometimes I despair of software devs ever learning to communicate with |
14 |
> humans :( |
15 |
>> |
16 |
>> |
17 |
> |
18 |
> I don't know Vala but I can tell you what's going on. It's a version mismatch |
19 |
> between the compiler and library. Since vala is in early stages the syntax is |
20 |
> still changing. So the answer is to file a bug with gentoo. |
21 |
> |
22 |
> However you can get it to compile with valac-0.24 but it looks for valac-0.26 |
23 |
> so: |
24 |
> |
25 |
> # mv /usr/bin/valac-0.26 /usr/bin/valac-0.26.old |
26 |
> # cp /usr/bin/valac-0.24 /usr/bin/valac-0.26 |
27 |
> # emerge dev-libs/granite |
28 |
> |
29 |
> And then restore the original valac-0.26. This will compile successfully but |
30 |
> with several warnings so it may not actually work. |
31 |
|
32 |
Your workaround got granite installed, thanks. My objective is to try to build |
33 |
a promising calendar app I downloaded from the ElementaryOS project (all their |
34 |
apps are written in vala). So now I'll go try to make the calendar work :) |
35 |
|
36 |
Thanks again. |