From 5b4edb1ebce6ab595f07917cce1da89278ed53ca Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sep 18 2023 12:27:59 +0000 Subject: Move file manipulation to %build Without this, in-place builds are broken: they don't execute %prep, so %install fails. (cherry picked from commit 32656b2b877cd089c38a8df4118f7d3120a56f67) [skip changelog] --- diff --git a/systemd.spec b/systemd.spec index 81297a3..2087b16 100644 --- a/systemd.spec +++ b/systemd.spec @@ -559,8 +559,6 @@ package and is meant for use in exitrds. # Let's disable the service. sed -r -i '/^enable systemd-boot-update.service/d' presets/90-systemd.preset -sed -r 's|/system/|/user/|g' %{SOURCE16} >10-timeout-abort.conf.user - %generate_buildrequires %if 0%{?have_gnu_efi} if grep -q gnu-efi meson_options.txt; then @@ -708,6 +706,8 @@ if ! diff -u %{SOURCE1} ${new_triggers}; then sleep 5 fi +sed -r 's|/system/|/user/|g' %{SOURCE16} >10-timeout-abort.conf.user + %install %meson_install