[Touch-packages] [Bug 1908051] Re: error: Argument 7: Cannot convert from `void Unity.Internal.ScopeChannel.OwnerWatcher.owner_changed

2020-12-16 Thread Jose Riha
Steps to reproduce:

1. download and extract 
https://launchpad.net/ubuntu/+archive/primary/+files/libunity_7.1.4+19.04.20190319.orig.tar.gz
2. get and apply patch 
https://launchpadlibrarian.net/443817430/0001-Fix-FTB-with-recent-vala-requiring-non-public-abstra.patch
3. run NOCONFIGURE=1 ./autogen.sh
4. run ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var 
--disable-static
5. run make

Expected output:

libunity is compiled successfully

Actual output:

unity-scope-channel.vala:312.33-312.50: error: Argument 7: Cannot convert from 
`void Unity.Internal.ScopeChannel.OwnerWatcher.owner_changed 
(GLib.DBusConnection, string, string, string, string, GLib.Variant)' to `void 
GLib.DBusSignalCallback (GLib.DBusConnection, string?, string, string, string, 
GLib.Variant)'
..
..
unity-sound-menu-mpris.vala:408.5-408.56: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public abstract async void EnablePlayerSpecificItems (ObjectPath 
object_path, string desktop_id) throws IOError;

Compilation failed: 1 error(s), 22 warning(s)
make[2]: *** [Makefile:1391: libunity_la_vala.stamp] Error 1

Other information

Arch Linux 64bit, current
vala 0.50.2-1
gobject-introspection 1.66.1-3
gnome-common 3.18.0-4

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to libunity in Ubuntu.
https://bugs.launchpad.net/bugs/1908051

Title:
  error: Argument 7: Cannot convert from `void
  Unity.Internal.ScopeChannel.OwnerWatcher.owner_changed

Status in libunity package in Ubuntu:
  Incomplete

Bug description:
  make returns:

  unity-protocol.vapi:242.4-242.43: warning: DBus methods are recommended to 
throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public abstract async void set_view_type (uint 
view_type) throws GLib.IOError;

  unity-launcher.vala:61.5-61.42: warning: DBus methods are recommended to 
throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
  public HashTable query ()
  ^^
  unity-scope-channel.vala:312.33-312.50: error: Argument 7: Cannot convert 
from `void Unity.Internal.ScopeChannel.OwnerWatcher.owner_changed 
(GLib.DBusConnection, string, string, string, string, GLib.Variant)' to `void 
GLib.DBusSignalCallback (GLib.DBusConnection, string?, string, string, string, 
GLib.Variant)'
DBusSignalFlags.NONE, this.owner_changed);
  ^^
  unity-scope-channel.vala:269.9-269.52: warning: Access to possible `null'. 
Perform a check or use an unsafe cast.
  (transfer_model as DiffModel).commit_changes ();
  
  unity-synchronizer.vala:93.5-93.18: warning: `GLib.HashTable.add' has been 
deprecated since vala-0.26. Use GenericSet.add
  unity-aggregator-scope-private.vala:434.7-434.28: warning: 
`GLib.HashTable.add' has been deprecated since vala-0.26. Use GenericSet.add
  unity-aggregator-scope-private.vala:606.7-606.72: warning: Access to possible 
`null'. Perform a check or use an unsafe cast.
(category_merger as CategoryMergerByField).map_subscope_categories 
(scope_id, proxy.categories_model);
^^
  unity-aggregator-scope-private.vala:1308.7-1308.66: warning: Access to 
possible `null'. Perform a check or use an unsafe cast.
(category_merger as CategoryMergerByScope).add_scope_mapping (owner, 
scope_id);

  unity-aggregator-scope-private.vala:1352.7-1352.66: warning: Access to 
possible `null'. Perform a check or use an unsafe cast.
(category_merger as CategoryMergerByScope).add_scope_mapping (owner, 
master_scope_id);

  unity-scope-loader.vala:41.49-41.69: warning: `GLib.ModuleFlags.BIND_LAZY' 
has been deprecated since vala-0.46. Use LAZY
  unity-sound-menu-mpris.vala:475.5-475.27: warning: DBus methods are 
recommended to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
  public async void raise() throws IOError{
  ^^^
  unity-sound-menu-mpris.vala:580.5-580.32: warning: DBus methods are 
recommended to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
  public async void play_pause() throws IOError
  
  unity-sound-menu-mpris.vala:585.5-585.26: warning: DBus methods are 
recommended to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
  public async void next() throws IOError
  ^^
  unity-sound-menu-mpris.vala:590.5-590.30: warning: DBus methods are 
recommended to throw at least `GLib.Error' or 

[Touch-packages] [Bug 1908051] [NEW] error: Argument 7: Cannot convert from `void Unity.Internal.ScopeChannel.OwnerWatcher.owner_changed

2020-12-14 Thread Jose Riha
Public bug reported:

make returns:

unity-protocol.vapi:242.4-242.43: warning: DBus methods are recommended to 
throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public abstract async void set_view_type (uint 
view_type) throws GLib.IOError;

unity-launcher.vala:61.5-61.42: warning: DBus methods are recommended to throw 
at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public HashTable query ()
^^
unity-scope-channel.vala:312.33-312.50: error: Argument 7: Cannot convert from 
`void Unity.Internal.ScopeChannel.OwnerWatcher.owner_changed 
(GLib.DBusConnection, string, string, string, string, GLib.Variant)' to `void 
GLib.DBusSignalCallback (GLib.DBusConnection, string?, string, string, string, 
GLib.Variant)'
  DBusSignalFlags.NONE, this.owner_changed);
^^
unity-scope-channel.vala:269.9-269.52: warning: Access to possible `null'. 
Perform a check or use an unsafe cast.
(transfer_model as DiffModel).commit_changes ();

unity-synchronizer.vala:93.5-93.18: warning: `GLib.HashTable.add' has been 
deprecated since vala-0.26. Use GenericSet.add
unity-aggregator-scope-private.vala:434.7-434.28: warning: `GLib.HashTable.add' 
has been deprecated since vala-0.26. Use GenericSet.add
unity-aggregator-scope-private.vala:606.7-606.72: warning: Access to possible 
`null'. Perform a check or use an unsafe cast.
  (category_merger as CategoryMergerByField).map_subscope_categories 
(scope_id, proxy.categories_model);
  ^^
unity-aggregator-scope-private.vala:1308.7-1308.66: warning: Access to possible 
`null'. Perform a check or use an unsafe cast.
  (category_merger as CategoryMergerByScope).add_scope_mapping (owner, 
scope_id);
  
unity-aggregator-scope-private.vala:1352.7-1352.66: warning: Access to possible 
`null'. Perform a check or use an unsafe cast.
  (category_merger as CategoryMergerByScope).add_scope_mapping (owner, 
master_scope_id);
  
unity-scope-loader.vala:41.49-41.69: warning: `GLib.ModuleFlags.BIND_LAZY' has 
been deprecated since vala-0.46. Use LAZY
unity-sound-menu-mpris.vala:475.5-475.27: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public async void raise() throws IOError{
^^^
unity-sound-menu-mpris.vala:580.5-580.32: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public async void play_pause() throws IOError

unity-sound-menu-mpris.vala:585.5-585.26: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public async void next() throws IOError
^^
unity-sound-menu-mpris.vala:590.5-590.30: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public async void previous() throws IOError
^^
unity-sound-menu-mpris.vala:709.5-709.39: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public async void activate_playlist (ObjectPath playlist_id) throws IOError
^^^
unity-sound-menu-mpris.vala:714.5-714.48: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public async PlaylistDetails[] get_playlists (uint32 index,

unity-sound-menu-mpris.vala:407.5-407.55: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public abstract async void EnableTrackSpecificItems (ObjectPath 
object_path, string desktop_id) throws IOError;
^^^
unity-sound-menu-mpris.vala:408.5-408.56: warning: DBus methods are recommended 
to throw at least `GLib.Error' or `GLib.DBusError, GLib.IOError'
public abstract async void EnablePlayerSpecificItems (ObjectPath 
object_path, string desktop_id) throws IOError;

Compilation failed: 1 error(s), 22 warning(s)
make[2]: *** [Makefile:1391: libunity_la_vala.stamp] Error 1
make[2]: Leaving directory '/home/jose/tmp/libunity/src'
make[1]: *** [Makefile:573: all-recursive] Error 1
make[1]: Leaving directory '/home/jose/tmp/libunity'
make: *** [Makefile:477: all] Error 2

Distro: Arch Linux

Related: https://aur.archlinux.org/packages/libunity/

** Affects: libunity (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this