From: Ramkumar Chinchani Date: Wed, 23 Nov 2022 19:49:30 +0000 (+0000) Subject: meson.build: strip newline for variable assignments X-Git-Tag: v6.0.0~84^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcf85308cb90125a5fc393abc7c3f02190ecb969;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 60e292c64a5d72b1061a46386688ccf8b7d78b1e Fixes issue #4223 Signed-off-by: Ramkumar Chinchani --- diff --git a/meson.build b/meson.build index cfc9b9713..9bf328215 100644 --- a/meson.build +++ b/meson.build @@ -336,7 +336,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()