Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509512 - sys-apps/uevt-2.3-r1 with >=dev-lang/vala-0.24 - uevt-notify.vala:54.9-54.20: error: `Notification' is an ambiguous reference between `GLib.Notification' and `Notify.Notification'
Summary: sys-apps/uevt-2.3-r1 with >=dev-lang/vala-0.24 - uevt-notify.vala:54.9-54.20:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 05:54 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2014-06-04 09:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-05-04 05:54:24 UTC
When trying to build uevt-2.3-r1 with vala-0.24:

/usr/bin/valac-0.24 --vapidir=../vapi --basedir=.. --pkg=libnotify --pkg gio-2.0 --pkg gtk+-2.0 --pkg vsystem --pkg configh  -C uevt.vala uevt-udisks.vala uevt-upower.vala udisks-interfaces.vala upower-interfaces.vala logger.vala config.vala utils.vala uevt-notify.vala disks-systray.vala power-systray.vala cpu-systray.vala configurator.vala power-infos.vala uevt-backlight.vala
uevt-notify.vala:54.9-54.20: error: `Notification' is an ambiguous reference between `GLib.Notification' and `Notify.Notification'
        Notification notif = new Notification(head, Markup.escape_text(body), icon);
        ^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)


I've worked around this by adding VALA_MAX_API_VERSION to the uevt ebuild (as a prerequisite for updating vala.eclass for 0.24). However, since uevt's upstream seems inactive and there is no fix in their git repository, you may want to apply a patch since old vala versions might go away at some point.

The fix should be similar to http://cgit.freedesktop.org/systemd/systemd-ui/commit/?id=282a352dff49c13e185d826af2a248b55988bc32
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-06-04 09:04:33 UTC
(In reply to Alexandre Rostovtsev from comment #0)
> The fix should be similar to
> http://cgit.freedesktop.org/systemd/systemd-ui/commit/
> ?id=282a352dff49c13e185d826af2a248b55988bc32

That helped.

Fixed in Portage and unrestricted the vala dependency again.