mkosi: Add --noclean when running rpmbuild

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.
This commit is contained in:
Daan De Meyer
2024-04-16 13:59:20 +02:00
parent 2400b3a590
commit f1884281a0
2 changed files with 2 additions and 0 deletions

View File

@@ -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"

View File

@@ -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"
}