forked from Mirrors/flatpak-builder
Fix some issues with musl
* Use realpath instead of canonicalize_file_name * Add missing includetingping/wmclass
parent
afc2dd3d75
commit
567802749c
|
@ -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/";
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue