Fix some issues with musl

* Use realpath instead of canonicalize_file_name
* Add missing include
tingping/wmclass
André Klitzing 2017-03-10 23:58:15 +01:00 committed by Alexander Larsson
parent afc2dd3d75
commit 567802749c
4 changed files with 4 additions and 3 deletions

View File

@ -903,7 +903,7 @@ setup_build_args (GFile *app_dir,
g_ptr_array_add (args, g_strdup ("flatpak"));
g_ptr_array_add (args, g_strdup ("build"));
source_dir_path_canonical = canonicalize_file_name (source_dir_path);
source_dir_path_canonical = realpath (source_dir_path, NULL);
if (builder_context_get_build_runtime (context))
builddir = "/run/build-runtime/";

View File

@ -130,7 +130,7 @@ run_script (BuilderContext *context,
g_ptr_array_add (args, g_strdup ("flatpak"));
g_ptr_array_add (args, g_strdup ("build"));
source_dir_path_canonical = canonicalize_file_name (source_dir_path);
source_dir_path_canonical = realpath (source_dir_path, NULL);
g_ptr_array_add (args, g_strdup ("--nofilesystem=host"));
g_ptr_array_add (args, g_strdup_printf ("--filesystem=%s", source_dir_path_canonical));

View File

@ -2968,7 +2968,7 @@ flatpak_dir_run_triggers (FlatpakDir *self,
somewhere the bind mount will be on the target of that, not
at that exact path. */
g_autofree char *basedir_orig = g_file_get_path (self->basedir);
g_autofree char *basedir = canonicalize_file_name (basedir_orig);
g_autofree char *basedir = realpath (basedir_orig, NULL);
g_debug ("running trigger %s", name);

View File

@ -36,6 +36,7 @@
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <sys/types.h>
#include <sys/utsname.h>