From bfd599cd4edd9d72ca377a14bb66d678a0c22b1e Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 5 Jul 2018 09:52:35 +0200 Subject: [PATCH] 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 --- src/builder-module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/builder-module.c b/src/builder-module.c index 497af3a4..938957ae 100644 --- a/src/builder-module.c +++ b/src/builder-module.c @@ -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 */