]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: allow oomd to be enabled even in release mode
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 12 Nov 2020 12:05:05 +0000 (13:05 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 12 Nov 2020 12:25:40 +0000 (13:25 +0100)
A distro (Fedora in particular) may want to enable oomd in a unstable
branch for testing, even though the package as a whole is compiled in release
mode. Let's emit a warning but otherwise allow this.

NEWS
meson.build

diff --git a/NEWS b/NEWS
index 4bda0b2977019b7a7fd1a3f3a4d40b208155b07d..468a7a55763c616c9162712bec18df6149364575 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -530,13 +530,15 @@ CHANGES WITH 247 in spe:
           contention for selected parts of the unit hierarchy using the PSI
           information reported by the kernel, and kills processes when memory
           or swap pressure is above configured limits. This service is only
-          enabled in developer mode (see below) and should be considered a
-          preview in this release. Behaviour details and option names are
-          subject to change without the usual backwards-compatibility promises.
+          enabled by default in developer mode (see below) and should be
+          considered a preview in this release. Behaviour details and option
+          names are subject to change without the usual backwards-compatibility
+          promises.
 
         * A new helper oomctl has been added to introspect systemd-oomd state.
-          If also is only available in developer mode and should be considered
-          a preview without the usual backwards-compatibility promises.
+          If also is only enabled by default in developer mode and should be
+          considered a preview without the usual backwards-compatibility
+          promises.
 
         * New meson option -Dcompat-mutable-uid-boundaries= has been added. If
           enabled, systemd reads the system UID boundaries from /etc/login.defs
index 7996bc2c65917ed8487832c4e03b8d5435ca1d19..43e328f5a6a7a3e71451baec2ab2c1faa9f501e5 100644 (file)
@@ -1419,7 +1419,7 @@ if have == 'auto'
 else
         have = have == 'true'
         if have and get_option('mode') != 'developer'
-                error('oomd is not available in release mode (yet)')
+                warning('oomd is not ready for release mode (yet)')
         endif
 endif
 conf.set10('ENABLE_OOMD', have)