From: Yu Watanabe Date: Thu, 7 Dec 2017 08:19:11 +0000 (+0900) Subject: meson: warn if nobody-user and nobody-group are set to different name X-Git-Tag: v236~45^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7567%2Fhead;p=thirdparty%2Fsystemd.git meson: warn if nobody-user and nobody-group are set to different name It may work, but is very strange. So, let's warn about that. v2: Debian uses nobody and nogroup. Do not warn such case. --- diff --git a/meson.build b/meson.build index c70a9874ad5..bdde42b996a 100644 --- a/meson.build +++ b/meson.build @@ -680,6 +680,11 @@ if id_result.returncode() == 0 ' Your build will result in an group table setup that is incompatible with the local system.') endif endif +if nobody_user != nobody_group and not (nobody_user == 'nobody' and nobody_group == 'nogroup') + message('WARNING:\n' + + ' The configured user name "@0@" and group name "@0@" of the nobody user/group are not equivalent.\n'.format(nobody_user, nobody_group) + + ' Please re-check that both "nobody-user" and "nobody-group" options are correctly set.') +endif conf.set_quoted('NOBODY_USER_NAME', nobody_user) conf.set_quoted('NOBODY_GROUP_NAME', nobody_group)