2020-07-13 06:25:49 +01:00
|
|
|
diff --git a/src/builder-context.c b/src/builder-context.c
|
|
|
|
index dde12790..3a379297 100644
|
2018-02-13 00:53:39 +00:00
|
|
|
--- a/src/builder-context.c
|
|
|
|
+++ b/src/builder-context.c
|
2020-07-13 06:25:49 +01:00
|
|
|
@@ -256,7 +256,7 @@ builder_context_init (BuilderContext *self)
|
|
|
|
g_autofree char *path = NULL;
|
|
|
|
|
|
|
|
self->rofiles_file_lock = init;
|
|
|
|
- path = g_find_program_in_path ("rofiles-fuse");
|
|
|
|
+ path = g_find_program_in_path ("@rofilesfuse@");
|
|
|
|
self->have_rofiles = path != NULL;
|
|
|
|
}
|
|
|
|
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -800,7 +800,7 @@ builder_context_enable_rofiles (BuilderContext *self,
|
2018-02-13 00:53:39 +00:00
|
|
|
g_autoptr(GFile) rofiles_base = NULL;
|
|
|
|
g_autoptr(GFile) rofiles_dir = NULL;
|
|
|
|
g_autofree char *tmpdir_name = NULL;
|
|
|
|
- char *argv[] = { "rofiles-fuse",
|
|
|
|
+ char *argv[] = { "@rofilesfuse@",
|
|
|
|
"-o",
|
|
|
|
"kernel_cache,entry_timeout=60,attr_timeout=60,splice_write,splice_move",
|
|
|
|
(char *)flatpak_file_get_path_cached (self->app_dir),
|
2020-07-13 06:25:49 +01:00
|
|
|
diff --git a/src/builder-git.c b/src/builder-git.c
|
|
|
|
index ef517adb..6ab095f0 100644
|
2018-02-13 00:53:39 +00:00
|
|
|
--- a/src/builder-git.c
|
|
|
|
+++ b/src/builder-git.c
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -44,7 +44,7 @@ git (GFile *dir,
|
2018-02-13 00:53:39 +00:00
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start (ap, error);
|
|
|
|
- res = flatpak_spawn (dir, output, flags, error, "git", ap);
|
|
|
|
+ res = flatpak_spawn (dir, output, flags, error, "@git@", ap);
|
|
|
|
va_end (ap);
|
|
|
|
|
|
|
|
return res;
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -58,7 +58,7 @@ cp (GError **error,
|
2018-02-13 00:53:39 +00:00
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start (ap, error);
|
|
|
|
- res = flatpak_spawn (NULL, NULL, 0, error, "cp", ap);
|
|
|
|
+ res = flatpak_spawn (NULL, NULL, 0, error, "@cp@", ap);
|
|
|
|
va_end (ap);
|
|
|
|
|
|
|
|
return res;
|
2020-07-13 06:25:49 +01:00
|
|
|
diff --git a/src/builder-source-archive.c b/src/builder-source-archive.c
|
|
|
|
index 3c694e57..0de62318 100644
|
2018-02-13 00:53:39 +00:00
|
|
|
--- a/src/builder-source-archive.c
|
|
|
|
+++ b/src/builder-source-archive.c
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -443,7 +443,7 @@ tar (GFile *dir,
|
2018-02-13 00:53:39 +00:00
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start (ap, error);
|
|
|
|
- res = flatpak_spawn (dir, NULL, 0, error, "tar", ap);
|
|
|
|
+ res = flatpak_spawn (dir, NULL, 0, error, "@tar@", ap);
|
|
|
|
va_end (ap);
|
|
|
|
|
|
|
|
return res;
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -458,7 +458,7 @@ unzip (GFile *dir,
|
2018-02-13 00:53:39 +00:00
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start (ap, error);
|
|
|
|
- res = flatpak_spawn (dir, NULL, 0, error, "unzip", ap);
|
|
|
|
+ res = flatpak_spawn (dir, NULL, 0, error, "@unzip@", ap);
|
|
|
|
va_end (ap);
|
|
|
|
|
|
|
|
return res;
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -483,7 +483,7 @@ unrpm (GFile *dir,
|
2018-02-13 00:53:39 +00:00
|
|
|
GError **error)
|
|
|
|
{
|
|
|
|
gboolean res;
|
|
|
|
- const gchar *argv[] = { "sh", "-c", "rpm2cpio \"$1\" | cpio -i -d",
|
|
|
|
+ const gchar *argv[] = { "sh", "-c", "@rpm2cpio@ \"$1\" | @cpio@ -i -d",
|
|
|
|
"sh", /* shell's $0 */
|
|
|
|
rpm_path, /* shell's $1 */
|
|
|
|
NULL };
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -631,7 +631,7 @@ git (GFile *dir,
|
2018-07-15 18:10:02 +01:00
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start (ap, error);
|
|
|
|
- res = flatpak_spawn (dir, NULL, 0, error, "git", ap);
|
|
|
|
+ res = flatpak_spawn (dir, NULL, 0, error, "@git@", ap);
|
|
|
|
va_end (ap);
|
|
|
|
|
|
|
|
return res;
|
2020-07-13 06:25:49 +01:00
|
|
|
diff --git a/src/builder-source-bzr.c b/src/builder-source-bzr.c
|
|
|
|
index ceeec94a..8abe6f53 100644
|
2018-02-13 00:53:39 +00:00
|
|
|
--- a/src/builder-source-bzr.c
|
|
|
|
+++ b/src/builder-source-bzr.c
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -124,7 +124,7 @@ bzr (GFile *dir,
|
2020-07-13 06:25:49 +01:00
|
|
|
gboolean res;
|
2018-02-13 00:53:39 +00:00
|
|
|
va_list ap;
|
|
|
|
|
2020-07-13 06:25:49 +01:00
|
|
|
- brz = g_find_program_in_path ("brz");
|
|
|
|
+ brz = g_find_program_in_path ("@brz@");
|
2018-02-13 00:53:39 +00:00
|
|
|
|
2020-07-13 06:25:49 +01:00
|
|
|
va_start (ap, error);
|
|
|
|
res = flatpak_spawn (dir, output, 0, error, brz ? brz : "bzr", ap);
|
|
|
|
diff --git a/src/builder-source-patch.c b/src/builder-source-patch.c
|
|
|
|
index 8721e1e4..d7f4d840 100644
|
2018-02-13 00:53:39 +00:00
|
|
|
--- a/src/builder-source-patch.c
|
|
|
|
+++ b/src/builder-source-patch.c
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -247,15 +247,15 @@ patch (GFile *dir,
|
2018-02-13 00:53:39 +00:00
|
|
|
|
|
|
|
args = g_ptr_array_new ();
|
|
|
|
if (use_git) {
|
|
|
|
- g_ptr_array_add (args, "git");
|
|
|
|
+ g_ptr_array_add (args, "@git@");
|
|
|
|
g_ptr_array_add (args, "apply");
|
|
|
|
g_ptr_array_add (args, "-v");
|
2018-07-15 18:10:02 +01:00
|
|
|
} else if (use_git_am) {
|
|
|
|
- g_ptr_array_add (args, "git");
|
|
|
|
+ g_ptr_array_add (args, "@git@");
|
|
|
|
g_ptr_array_add (args, "am");
|
|
|
|
g_ptr_array_add (args, "--keep-cr");
|
2018-02-13 00:53:39 +00:00
|
|
|
} else {
|
|
|
|
- g_ptr_array_add (args, "patch");
|
|
|
|
+ g_ptr_array_add (args, "@patch@");
|
|
|
|
}
|
|
|
|
for (i = 0; extra_options != NULL && extra_options[i] != NULL; i++)
|
|
|
|
g_ptr_array_add (args, (gchar *) extra_options[i]);
|
2020-07-13 06:25:49 +01:00
|
|
|
diff --git a/src/builder-utils.c b/src/builder-utils.c
|
|
|
|
index f1c06db5..2e3347c5 100644
|
2018-02-13 00:53:39 +00:00
|
|
|
--- a/src/builder-utils.c
|
|
|
|
+++ b/src/builder-utils.c
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -149,7 +149,7 @@ strip (GError **error,
|
2018-02-13 00:53:39 +00:00
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start (ap, error);
|
|
|
|
- res = flatpak_spawn (NULL, NULL, 0, error, "strip", ap);
|
|
|
|
+ res = flatpak_spawn (NULL, NULL, 0, error, "@strip@", ap);
|
|
|
|
va_end (ap);
|
|
|
|
|
|
|
|
return res;
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -163,7 +163,7 @@ eu_strip (GError **error,
|
2018-02-13 00:53:39 +00:00
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start (ap, error);
|
|
|
|
- res = flatpak_spawn (NULL, NULL, 0, error, "eu-strip", ap);
|
|
|
|
+ res = flatpak_spawn (NULL, NULL, 0, error, "@eustrip@", ap);
|
|
|
|
va_end (ap);
|
|
|
|
|
|
|
|
return res;
|
2020-03-20 23:13:06 +00:00
|
|
|
@@ -177,7 +177,7 @@ eu_elfcompress (GError **error,
|
2018-02-13 00:53:39 +00:00
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start (ap, error);
|
|
|
|
- res = flatpak_spawn (NULL, NULL, 0, error, "eu-elfcompress", ap);
|
|
|
|
+ res = flatpak_spawn (NULL, NULL, 0, error, "@euelfcompress@", ap);
|
|
|
|
va_end (ap);
|
|
|
|
|
|
|
|
return res;
|