[gnome-builder] flatpak: allow access to build directory



commit 4acc48940279ba32e38e0f8a1064682b41b530ee
Author: Matthew Leeds <mleeds redhat com>
Date:   Mon Feb 27 14:16:14 2017 -0600

    flatpak: allow access to build directory
    
    The flatpak build process was broken by commit ca5a035ea because flatpak
    doesn't have access to the build directory on the host. This commit
    fixes the issue.

 plugins/flatpak/gbp-flatpak-runtime.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime.c b/plugins/flatpak/gbp-flatpak-runtime.c
index 3e7172e..86e22c4 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -209,12 +209,15 @@ gbp_flatpak_runtime_create_launcher (IdeRuntime  *runtime,
       ide_subprocess_launcher_push_argv (ret, "--share=network");
       if (!ide_str_empty0 (project_path))
         {
-          g_autofree gchar *filesystem_option = NULL;
+          g_autofree gchar *filesystem_option_src = NULL;
+          g_autofree gchar *filesystem_option_build = NULL;
           g_autofree gchar *build_dir_option = NULL;
-          filesystem_option = g_strdup_printf ("--filesystem=%s", project_path);
+          filesystem_option_src = g_strdup_printf ("--filesystem=%s", project_path);
+          filesystem_option_build = g_strdup_printf ("--filesystem=%s", builddir);
           build_dir_option = g_strdup_printf ("--build-dir=%s", builddir);
           ide_subprocess_launcher_push_argv (ret, "--nofilesystem=host");
-          ide_subprocess_launcher_push_argv (ret, filesystem_option);
+          ide_subprocess_launcher_push_argv (ret, filesystem_option_src);
+          ide_subprocess_launcher_push_argv (ret, filesystem_option_build);
           ide_subprocess_launcher_push_argv (ret, build_dir_option);
         }
       if (env_vars != NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]