From 74b3ef386f602ee69c0204525083aa45ade786ad Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Feb 17 2024 21:08:35 +0000 Subject: Stop passing %{release} to meson when building in upstream mode When building in upstream mode, the release doesn't really have any meaning so let's stop passing it as part of the version-tag and shared-library-tag arguments. This also makes it possible to make the release a timestamp so that each package built from upstream is guaranteed to be newer. If we pass the release to meson via version-tag and shared-library-tag and the release changes every build, we end up having constant rebuilds of various targets in meson that depend on the version. --- diff --git a/systemd.spec b/systemd.spec index 75720d8..10ad145 100644 --- a/systemd.spec +++ b/systemd.spec @@ -661,9 +661,9 @@ CONFIGURE_OPTS=( -Dsplit-bin=true -Db_ndebug=false -Dman=enabled - -Dversion-tag=%{version}-%{release} + -Dversion-tag=%{version}%[%{without upstream}?"-%{release}":""] # https://bugzilla.redhat.com/show_bug.cgi?id=1906010 - -Dshared-lib-tag=%{version_no_tilde}-%{release} + -Dshared-lib-tag=%{version_no_tilde}%[%{without upstream}?"-%{release}":""] -Dfallback-hostname="localhost" -Ddefault-dnssec=no -Ddefault-dns-over-tls=no