1From c6a59d512706978e8c67f9a2d84ec650f8763368 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 8 May 2023 18:02:52 -0700
4Subject: [PATCH] Do not use $MKTEMP_PROG in cross-build
5
6$MKTEMP_PROG points to native location which could be absolute path that
7wont exist on target rootfs. Therefore use it from PATH
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 configure.ac | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/configure.ac b/configure.ac
16index 4852a2f..d23b384 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -186,7 +186,7 @@ ye_PATH_LOCALE_ALIAS
20
21 dnl Random filename generation in scripts
22 if test -n "$MKTEMP_PROG"; then
23-  SHELL_RANDOM_FILENAME='`'$MKTEMP_PROG' /tmp/enca-$$-XXXXXXXX`'
24+  SHELL_RANDOM_FILENAME='`mktemp /tmp/enca-$$-XXXXXXXX`'
25 else
26   SHELL_RANDOM_FILENAME='/tmp/enca-$$-$RANDOM'
27 fi
28--
292.40.1
30
31