NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.66k stars 13.81k forks source link

vala generates bad gir files (eg. without absolute paths) #47226

Open hedning opened 6 years ago

hedning commented 6 years ago

Issue description

Most gir files are generated by g-ir-scanner from gobject-introspection, which we patch to generate absolute paths to the dependencies the gir specifies.

vala generates gir files without the help of gobject-introspection, so our patches that make things work properly have no effect.

An example is gnome3.folks being unusable from python out of the box: #47059. The same problem can be seen with granite (another vala library).

Steps to reproduce

nix-shell -p pantheon.granite gobject-introspection 'python3.withPackages (p: [p.pygobject3 ])' --command 'python -c "from gi.repository import Granite"'

nixos-discourse commented 4 years ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/modulenotfounderror-no-module-named-gi/6874/9

stale[bot] commented 3 years ago

Hello, I'm a bot and I thank you in the name of the community for opening this issue.

To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.