GNOME Bugzilla – Bug 779896
Builder fails to run flatpak if some directory contains flatpak build-init dir inside the source directory
Last modified: 2017-04-08 18:57:25 UTC
I was debugging Polari build with manually doing flatpak-builder test (blah)json and then when I tried on builder to play build/run I get 13:36:59.0550 GLib-GIO[12967]: CRITICAL: g_file_enumerator_next_file: assertion 'G_IS_FILE_ENUMERATOR (enumerator)' failed 13:36:59.0550 GLib-GIO[12967]: CRITICAL: g_file_enumerator_close: assertion 'G_IS_FILE_ENUMERATOR (enumerator)' failed 13:36:59.0552 Ide[12829]: WARNING: Error opening directory '/home/csoriano/Projects/polari/test/var/run/systemd/inaccessible': Permission denied I though builder was running/building in a owned directory on ~/.cache. So this shouldn't happen.
I'm not sure I understand what you mean from the summary/description. We don't do in-tree builds unless we detected you already configured in-tree (so basically if Makefile exists). But flatpak-builder does place a .flatpak-builder directory in the source tree so that we can reuse OSTree cache-points between different build configurations.
I'm not able to reproduce this. I created the template app and ran flatpak-builder manually in the source directory so it has that var/run/systemd/inaccessible file, but builds still work using the flatpak manifest configuration. There are some warnings printed by the vala plugin about not being able to access that file, but I don't think that affects much.
(In reply to Christian Hergert from comment #1) > I'm not sure I understand what you mean from the summary/description. > > We don't do in-tree builds unless we detected you already configured in-tree > (so basically if Makefile exists). But flatpak-builder does place a > .flatpak-builder directory in the source tree so that we can reuse OSTree > cache-points between different build configurations. Hm to clarify, I just did these steps: Clone polari in builder Go command line and do manually flatpak-builder test org.gnome.Polari.json It builds Go to builder and click the play button It fails with the message in comment 0 Maybe I can try to debug further this.
I've tried to reproduce this both using a Builder version from when the bug was filed and using the most recent Builder and haven't been able to. Maybe we should close the bug?
I can reopen if I get further instructions, yes.