]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Add --noclean when running rpmbuild
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 16 Apr 2024 11:59:20 +0000 (13:59 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 16 Apr 2024 13:25:37 +0000 (15:25 +0200)
The entire build environment is ephemeral anyway so everything is
cleaned regardless. By specifying --noclean, we make debugging
easier as the rpm build root can be inspected when using --debug-shell.

mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot

index 242fc4aa407586aa77b884a35bdf8a3f8af4c6d4..371af8f4b9fc85d28d64cfd03ae14bee76ab73fe 100755 (executable)
@@ -48,6 +48,7 @@ rpmbuild \
     --define "__elf_exclude_path ^/usr/lib/systemd/tests/unit-tests/.*$" \
     --define "__script_requires %{nil}" \
     --undefine _lto_cflags \
+    --noclean \
     "pkg/$ID/systemd.spec"
 
 cp "$OUTPUTDIR"/*.rpm "$PACKAGEDIR"
index 62b329998d8f702d912db0edf6a7241e63139530..5bc78aee3bf7faa45dcf46be04a657d78e516514 100755 (executable)
@@ -49,6 +49,7 @@ build() {
         --define "__os_install_post /usr/lib/rpm/brp-suse %{nil}" \
         --define "__elf_exclude_path ^/usr/lib/systemd/tests/unit-tests/.*$" \
         --define "__script_requires %{nil}" \
+        --noclean \
         "$@" \
         "pkg/$ID/systemd.spec"
 }