Set FLATPAK_BUILDER_BUILDDIR in env when building module

This is set to the /run/build/$module directory name so that you
can easily refer to it in the build.

Fixes https://github.com/flatpak/flatpak-builder/issues/172

Closes: #180
Approved by: alexlarsson
auto
Alexander Larsson 2018-07-05 09:52:35 +02:00 committed by Atomic Bot
parent 7cfdec0538
commit bfd599cd4e
1 changed files with 1 additions and 0 deletions

View File

@ -1162,6 +1162,7 @@ setup_build_args (GFile *app_dir,
else
builddir = "/run/build/";
g_ptr_array_add (args, g_strdup_printf ("--env=FLATPAK_BUILDER_BUILDDIR=%s%s", builddir, module_name));
g_ptr_array_add (args, g_strdup ("--nofilesystem=host"));
/* We mount the canonical location, because bind-mounts of symlinks don't really work */