util-linux: update to 2.39.2
[openwrt/staging/pepe2k.git] / package / utils / util-linux / patches / 001-meson-properly-handle-gettext-non-existence.patch
1 From b8bed37a1493b913bf5bda938487ae0c06c11ce7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
3 Date: Sat, 5 Aug 2023 08:57:28 +0200
4 Subject: [PATCH] meson: properly handle gettext non-existence
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Commit e91a49c9747f ("meson: don't build po if no gettext")
10 tried to add the possibility to build util-linux without gettext.
11
12 Unfortunately by default the call to find_program() would abort the
13 build if the program is not found.
14 Avoid aborting the build.
15
16 Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
17 ---
18 po/meson.build | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/po/meson.build
22 +++ b/po/meson.build
23 @@ -1,4 +1,4 @@
24 -if not find_program('gettext').found()
25 +if not find_program('gettext', required : false).found()
26 subdir_done()
27 endif
28