From: Thomas De Schampheleire Date: Tue, 2 Sep 2014 09:25:45 +0000 (+0200) Subject: check-kernel-headers: mktemp --tmpdir not available on RedHat RHEL5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53223cbb4e775ce88c036ddbfcca260e23c5739e;p=buildroot.git check-kernel-headers: mktemp --tmpdir not available on RedHat RHEL5 mktemp --tmpdir is not available on older Redhat RHEL5 machines. The alternative that has the same behavior is 'mktemp -t'. Signed-off-by: Thomas De Schampheleire Reviewed-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- diff --git a/support/scripts/check-kernel-headers.sh b/support/scripts/check-kernel-headers.sh index 82cf9ac274..a8cca78b27 100755 --- a/support/scripts/check-kernel-headers.sh +++ b/support/scripts/check-kernel-headers.sh @@ -8,7 +8,7 @@ HDR_M="${HDR_VER%%.*}" HDR_V="${HDR_VER#*.}" HDR_m="${HDR_V%%.*}" -EXEC="$(mktemp --tmpdir check-headers.XXXXXX)" +EXEC="$(mktemp -t check-headers.XXXXXX)" # We do not want to account for the patch-level, since headers are # not supposed to change for different patchlevels, so we mask it out.