From: Zbigniew Jędrzejewski-Szmek Date: Thu, 9 Jun 2022 18:33:29 +0000 (+0200) Subject: meson: use status-unit-format-default=name in developer mode X-Git-Tag: v252-rc1~830^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=819c0dcbf510dab8044e77e98e7593b384ad908c;p=thirdparty%2Fsystemd.git meson: use status-unit-format-default=name in developer mode I think developers are particularly unlikely to find the descriptions useful, and would benefit from being able to copy&paste unit names. Let's make this choice automatically. --- diff --git a/meson.build b/meson.build index 630f84d702b..d6391d45a25 100644 --- a/meson.build +++ b/meson.build @@ -226,6 +226,9 @@ endif memory_accounting_default = get_option('memory-accounting-default') status_unit_format_default = get_option('status-unit-format-default') +if status_unit_format_default == 'auto' + status_unit_format_default = conf.get('BUILD_MODE_DEVELOPER') == 1 ? 'name' : 'description' +endif conf.set_quoted('BINFMT_DIR', binfmtdir) conf.set_quoted('BOOTLIBDIR', bootlibdir) diff --git a/meson_options.txt b/meson_options.txt index 3bb25c6f763..267c8293686 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -214,7 +214,7 @@ option('extra-net-naming-schemes', type : 'string', option('default-net-naming-scheme', type : 'string', value : 'latest', description : 'default net.naming-scheme= value') option('status-unit-format-default', type : 'combo', - choices : ['description', 'name', 'combined'], + choices : ['auto', 'description', 'name', 'combined'], description : 'use unit name or description in messages by default') option('time-epoch', type : 'integer', value : '-1', description : 'time epoch for time clients')