| Summary: | 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' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexandre Rostovtsev (RETIRED) <tetromino> |
| Component: | Current packages | Assignee: | Desktop Misc. Team <desktop-misc> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
(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. |
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