GNOME Bugzilla – Bug 788854
build: Fix build with multiarch
Last modified: 2018-01-11 10:42:26 UTC
On Debian-based distros, gnome-builder 3.26.0 installs the Ide.py file to /usr/lib/x86_64-linux-gnu/python3/dist-packages/gi/overrides/Ide.py This causes the Jedi plugin to fail because that path isn't part of PYTHONPATH. The correct location is /usr/lib/python3/dist-packages/gi/overrides/Ide.py mbiebl proposed the following patch with the comment "that code is obviously false for multi-arch, not sure why that check is needed at all" This bug is a regression introduced with the port to meson (didn't affect Ubuntu 17.04's gnome-builder 3.24 which didn't build with meson)
Created attachment 361383 [details] [review] build: Fix build with multiarch The Python gi override should be installed to a non-multiarch directory on Debian-based distros.
Review of attachment 361383 [details] [review]: ::: src/libide/meson.build @@ -178,3 @@ -if overridedir.startswith(libdir): # Should always be True.. - overridedir = overridedir[len(libdir) + 1:] We strip the libdir on purpose so we never install outside of our prefix. So either we agree that this doesn't matter in which case this can be cleaned up a bit (Remove the join_path() call below) or that we do want to keep that behavior and just need to better handle multi-arch libdirs.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/294.