From: Ramkumar Chinchani Date: Wed, 23 Nov 2022 19:49:30 +0000 (+0000) Subject: meson.build: strip newline for variable assignments X-Git-Tag: lxc-5.0.2~50^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4227%2Fhead;p=thirdparty%2Flxc.git meson.build: strip newline for variable assignments Unfortunately, builds using alpine:edge still break! Apparently, run_command(...).stdout() must be strip()'ed for variable assignments Addendum to d5600cf76a4d932a03ea75aea6dd6c997a4e2f35 Fixes issue #4223 Signed-off-by: Ramkumar Chinchani --- diff --git a/meson.build b/meson.build index fe6808696..fdf51dd5e 100644 --- a/meson.build +++ b/meson.build @@ -330,7 +330,7 @@ endif # Fallback to current epoch. if time_epoch == '' - time_epoch = run_command(date, '+%s', check: true).stdout() + time_epoch = run_command(date, '+%s', check: true).stdout().strip() endif generate_date = run_command(date, '--utc', '--date=@' + time_epoch, '+%Y-%m-%d', check: true).stdout().strip()