summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-30 11:39:36 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-30 11:39:36 +0200
commit744fe45b8ff1fef5354d803c4d97b57feaa8391d (patch)
tree90a467195ee148622cad39119161ec28759bcbc4
parentMerge pull request #32567 from DaanDeMeyer/profile (diff)
downloadsystemd-744fe45b8ff1fef5354d803c4d97b57feaa8391d.tar.xz
systemd-744fe45b8ff1fef5354d803c4d97b57feaa8391d.zip
mkosi: Simplify rpm build scripts
-rwxr-xr-xmkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot11
-rwxr-xr-xmkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot8
2 files changed, 7 insertions, 12 deletions
diff --git a/mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot b/mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
index fb3ca65ab3..498c52e011 100755
--- a/mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
+++ b/mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
@@ -46,24 +46,21 @@ ANNOBIN="no-active-checks" rpmbuild \
--build-in-place \
--with upstream \
$( ((WITH_TESTS)) || echo "--nocheck") \
- $( ((WITH_DOCS)) || echo "--without docs") \
+ $( ((WITH_DOCS)) || echo "--without=docs") \
--define "_topdir /var/tmp" \
--define "_sourcedir pkg/$ID" \
--define "_rpmdir $OUTPUTDIR" \
- ${BUILDDIR:+--define} \
- ${BUILDDIR:+"_vpath_builddir $BUILDDIR"} \
+ ${BUILDDIR:+"--define=_vpath_builddir $BUILDDIR"} \
--define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
--define "_binary_payload w.ufdio" \
- $( ((WITH_DEBUG)) || echo --define) \
- $( ((WITH_DEBUG)) || echo "debug_package %{nil}") \
+ $( ((WITH_DEBUG)) || echo "--define=debug_package %{nil}") \
--define "version_override $VERSION" \
--define "release_override $RELEASE" \
--define "build_cflags $CFLAGS" \
--define "meson_build %{shrink:%{__meson} compile -C %{_vpath_builddir} -j %{_smp_build_ncpus} %{nil}}" \
--define "meson_install %{shrink:DESTDIR=%{buildroot} %{__meson} install -C %{_vpath_builddir} --no-rebuild --quiet %{nil}}" \
--define "meson_extra_configure_options -D mode=developer -D b_sanitize=${SANITIZERS:-none}" \
- $( ((WITH_DEBUG)) || echo --define) \
- $( ((WITH_DEBUG)) || echo "__brp_strip %{nil}") \
+ $( ((WITH_DEBUG)) || echo "--define=__brp_strip %{nil}") \
--define "__brp_compress %{nil}" \
--define "__brp_mangle_shebangs %{nil}" \
--define "__brp_strip_comment_note %{nil}" \
diff --git a/mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot b/mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot
index da4c1df556..8a2df74236 100755
--- a/mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot
+++ b/mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot
@@ -52,16 +52,14 @@ build() {
-bb \
--build-in-place \
--with upstream \
- $( ((WITH_TESTS)) || echo --nocheck) \
+ $( ((WITH_TESTS)) || echo "--nocheck") \
--define "_topdir /var/tmp" \
--define "_sourcedir pkg/$ID" \
--define "_rpmdir $OUTPUTDIR" \
- ${BUILDDIR:+--define} \
- ${BUILDDIR:+"_vpath_builddir $BUILDDIR"} \
+ ${BUILDDIR:+"--define=_vpath_builddir $BUILDDIR"} \
--define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
--define "_binary_payload w.ufdio" \
- $( ((WITH_DEBUG)) || echo --define) \
- $( ((WITH_DEBUG)) || echo "debug_package %{nil}") \
+ $( ((WITH_DEBUG)) || echo "--define=debug_package %{nil}") \
--define "vendor openSUSE" \
--define "version_override $VERSION" \
--define "release_override $RELEASE" \