From 0eb2a4769100667d619de55ba7eabc9fc64a1dd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kai=20L=C3=BCke?= Date: Thu, 14 Jul 2022 23:49:16 +0200 Subject: [PATCH] meson: Install binaries to prefix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When compiled in Flatpak /usr is read-only and the /app prefix is used. However, the binary installation did not use the prefix but had /usr hardcoded. Use the prefix instead of /usr when assembling the prefix/(s)bin paths. Signed-off-by: Kai Lüke --- meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 536bb36fac..73d67d1dda 100644 --- a/meson.build +++ b/meson.build @@ -22,9 +22,9 @@ sysconfstaticdir = join_paths(prefixdir, 'lib') docdir = join_paths(prefixdir, get_option('datadir'), 'doc', 'util-linux') mandir = join_paths(prefixdir, get_option('mandir')) runstatedir = '/run' -execprefixdir = '/usr' -usrbin_exec_dir = join_paths(execprefixdir, 'bin') -usrsbin_exec_dir = join_paths(execprefixdir, 'sbin') +execprefixdir = prefixdir +usrbin_exec_dir = join_paths(execprefixdir, bindir) +usrsbin_exec_dir = join_paths(execprefixdir, sbindir) sysconfdir = '/etc' localstatedir = '/var' bash_completion = dependency('bash-completion', required : get_option('build-bash-completion')) -- 2.47.3