Gir parser does not resolve symbols on namespace conflicts
Submitted by Alberto Ruiz
Link to original bug (#677591)
Description
While trying to write proper metadata for the NetworkManager bindings, I stumbled upon the following error output:
NMClient-1.0.gir:129.85-129.85: error: The type name `DBus.Connection' could not be found
The cause of the problem is that I am declaring a NM.DBus namespace in a previous vapi/metadata file (for the NetworkManager-1.0.gir file, on which NMClient-1.0.gir depends):
DBUS_* parent="NM.DBus" cheader_filename="NetworkManager.h" name="DBUS_(.+)" DBUS_PATH_VPN parent="NM.DBus" cheader_filename="NetworkManagerVPN.h" name="DBUS_(.+)" DBUS_PATH_VPN_CONNECTION parent="NM.DBus" cheader_filename="NetworkManagerVPN.h" name="DBUS_(.+)" DBUS_VPN_* parent="NM.DBus.VPN" cheader_filename="NetworkManagerVPN.h" name="DBUS_VPN_(.+)"
Apparently the girparser won't be able to find DBus.Connection since it thinks that the Connection symbol should be inside NM.DBus.