[gnome-builder] flatpak: drop bind mount for /run/build/$project



commit ca5a035ea3535a7872344b49b1f415cabaa96fab
Author: Christian Hergert <chergert redhat com>
Date:   Sat Feb 25 13:13:30 2017 -0800

    flatpak: drop bind mount for /run/build/$project
    
    This is where flatpak-builder builds things, but it is terribly
    inconvenient for us to do so. It breaks mtimes, it causes make distclean
    failures, and is generally just a PITA.
    
    We lose predictable build source locations for debug symbols, but we can
    come up with a different strategy for "release quality builds" that get
    shipped to users (ie: all flatpak-builder).

 plugins/flatpak/gbp-flatpak-runtime.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime.c b/plugins/flatpak/gbp-flatpak-runtime.c
index f07847d..3a6ef1d 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -212,8 +212,7 @@ gbp_flatpak_runtime_create_launcher (IdeRuntime  *runtime,
           g_autofree gchar *bind_mount_option = NULL;
           g_autofree gchar *build_dir_option = NULL;
           filesystem_option = g_strdup_printf ("--filesystem=%s", project_path);
-          bind_mount_option = g_strdup_printf ("--bind-mount=/run/build/%s=%s", project_name, builddir);
-          build_dir_option = g_strdup_printf ("--build-dir=/run/build/%s", project_name);
+          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, bind_mount_option);


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