]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Install binaries to prefix
authorKai Lüke <kailueke@riseup.net>
Thu, 14 Jul 2022 21:49:16 +0000 (23:49 +0200)
committerKai Lüke <kailueke@riseup.net>
Thu, 14 Jul 2022 21:57:06 +0000 (23:57 +0200)
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 <kailueke@riseup.net>
meson.build

index 536bb36facd12e7634dee0d9560d6a253bbaa1c3..73d67d1ddade741a2bf0795bb4ed80cf174602e6 100644 (file)
@@ -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'))