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