From f71229150eb25937a06a3729687f9c1718485fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 27 Oct 2022 08:31:30 +0200 Subject: [PATCH] meson: systemd-repart.standalone Repart is growing into an important tool on its own, and users might want to install newer versions on systems that have older systemd. Let's make this easier by providing a standalone binary. Related to https://github.com/systemd/mkosi/issues/1228. --- meson.build | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/meson.build b/meson.build index f6db7559099fa..6b7fbc70518f3 100644 --- a/meson.build +++ b/meson.build @@ -3706,6 +3706,25 @@ if conf.get('ENABLE_REPART') == 1 install : true, install_dir : rootbindir) public_programs += exe + + if have_standalone_binaries + exe = executable( + 'systemd-repart.standalone', + systemd_repart_sources, + include_directories : includes, + c_args : '-DSTANDALONE', + link_with : [libshared_static, + libbasic, + libbasic_gcrypt, + libsystemd_static], + dependencies : [threads, + libblkid, + libfdisk, + libopenssl], + install_rpath : rootpkglibdir, + install : true, + install_dir : rootbindir) + endif endif executable(