Zbigniew Jędrzejewski-Szmek bca98c
From fe1781d10dd8734af21dbea8c070069829456c03 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek bca98c
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Zbigniew Jędrzejewski-Szmek bca98c
Date: Thu, 12 Nov 2020 13:05:05 +0100
Zbigniew Jędrzejewski-Szmek bca98c
Subject: [PATCH] meson: allow oomd to be enabled even in release mode
Zbigniew Jędrzejewski-Szmek bca98c
Zbigniew Jędrzejewski-Szmek bca98c
A distro (Fedora in particular) may want to enable oomd in a unstable
Zbigniew Jędrzejewski-Szmek bca98c
branch for testing, even though the package as a whole is compiled in release
Zbigniew Jędrzejewski-Szmek bca98c
mode. Let's emit a warning but otherwise allow this.
Zbigniew Jędrzejewski-Szmek bca98c
---
Zbigniew Jędrzejewski-Szmek bca98c
 meson.build | 2 +-
Zbigniew Jędrzejewski-Szmek bca98c
 1 file changed, 1 insertion(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek bca98c
Zbigniew Jędrzejewski-Szmek bca98c
diff --git a/meson.build b/meson.build
Zbigniew Jędrzejewski-Szmek bca98c
index 7996bc2c65..43e328f5a6 100644
Zbigniew Jędrzejewski-Szmek bca98c
--- a/meson.build
Zbigniew Jędrzejewski-Szmek bca98c
+++ b/meson.build
Zbigniew Jędrzejewski-Szmek bca98c
@@ -1419,7 +1419,7 @@ if have == 'auto'
Zbigniew Jędrzejewski-Szmek bca98c
 else
Zbigniew Jędrzejewski-Szmek bca98c
         have = have == 'true'
Zbigniew Jędrzejewski-Szmek bca98c
         if have and get_option('mode') != 'developer'
Zbigniew Jędrzejewski-Szmek bca98c
-                error('oomd is not available in release mode (yet)')
Zbigniew Jędrzejewski-Szmek bca98c
+                warning('oomd is not ready for release mode (yet)')
Zbigniew Jędrzejewski-Szmek bca98c
         endif
Zbigniew Jędrzejewski-Szmek bca98c
 endif
Zbigniew Jędrzejewski-Szmek bca98c
 conf.set10('ENABLE_OOMD', have)