diff options
authorAli Alnubani <>2019-04-01 15:38:59 +0000
committerThomas Monjalon <>2019-04-01 18:54:17 +0200
commitb77c1d1c0ab7712827ad9b2bf4da796397546911 (patch)
parenta2fe4c1b3803f3b4c060c03fd51fdc376c05ec43 (diff)
build: fix meson build in CI environments
This is to fix a build error with meson in GNU/Linux that is caused by using the 'more' command to read the VERSION file. The error: config/ ERROR: String '::::::::::::::\n<RTE_SDK_PATH>VERSION\n::::::::::::::\n19' cannot be converted to int The command 'more' prints the file name before the actual contents of the file when it's being run without a controlling terminal. This could happen in CI environments. Please refer to: Fixes: c04172b5f031 ("build: add single source of DPDK version number") Fixes: d320fe56bd51 ("build: use version number from config file") Signed-off-by: Ali Alnubani <> Signed-off-by: Bruce Richardson <>
1 files changed, 3 insertions, 2 deletions
diff --git a/ b/
index fa6bf3d..6061c4b 100644
--- a/
+++ b/
@@ -3,8 +3,9 @@
project('DPDK', 'C',
# Get version number from file.
- # Use "more" rather than "cat" for windows compatibility.
- version: run_command('more', files('VERSION')).stdout().strip(),
+ # Fallback to "more" for Windows compatibility.
+ version: run_command(find_program('cat', 'more'),
+ files('VERSION')).stdout().strip(),
license: 'BSD',
default_options: ['buildtype=release', 'default_library=static'],
meson_version: '>= 0.47.1'