]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: Start adding devel and rc suffixes to the project version
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 Feb 2024 10:04:36 +0000 (11:04 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 Feb 2024 14:36:34 +0000 (15:36 +0100)
commitea2a57bee3506c8a724034c3ba0de2c87b47173b
tree347b206885a81679b6d0916538b7c8c0249ebca1
parentc0561a05f5e3967a40e9ceb5e48b712c4574862e
meson: Start adding devel and rc suffixes to the project version

Let's make sure that versions generated by meson-vcs-tag.sh always
sort higher than official and stable releases. We achieve this by
immediately updating the meson version in meson.build after a new
release. To make sure this version always sorts lower than future
rcs, we suffix it with "~devel" which will sort lower than "~rcX".

The new release workflow is to update the version in meson.build
for each rc and the official release and to also update the version
number after a new release to the next development version.

The full version is exposed as PROJECT_VERSION_FULL and used where
it makes sense over PROJECT_VERSION.

We also switch to reading the version from a meson.version file in
the repo instead of hardcoding it in meson.build. This makes it
easier to access both inside and outside of the project.

The meson-vcs-tag.sh script is rewritten to query the version from
meson.version instead of passing it in via the command line. This
makes it easier to use outside of systemd since users don't have to
query the version themselves first.
15 files changed:
docs/RELEASE.md
meson.build
meson.version [new file with mode: 0644]
src/basic/build.c
src/boot/efi/meson.build
src/busctl/busctl.c
src/core/manager-dump.c
src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-fido2.c
src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-pkcs11.c
src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-tpm2.c
src/kernel-install/60-ukify.install.in
src/nspawn/test-nspawn-util.c
src/shared/varlink.c
src/ukify/ukify.py
tools/meson-vcs-tag.sh