util-linux: use meson to build
[openwrt/staging/chunkeey.git] / package / utils / util-linux / patches / 120-meson-get-the-project-version-from-the-version-gen-s.patch
1 From e0c1a86bf88b568a7afe8ebaea1b9f84afb892c2 Mon Sep 17 00:00:00 2001
2 From: Eli Schwartz <eschwartz@archlinux.org>
3 Date: Wed, 4 May 2022 23:52:31 -0400
4 Subject: [PATCH] meson: get the project version from the version-gen script
5
6 This matches autotools and ensures that the version number is actually
7 reliable.
8 ---
9 meson.build | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 --- a/meson.build
13 +++ b/meson.build
14 @@ -1,5 +1,5 @@
15 project('util-linux', 'c',
16 - version : '2.37',
17 + version : run_command('tools/git-version-gen', check: true).stdout(),
18 license : 'GPLv2+')
19
20 pkgconfig = import('pkgconfig')