[Buildroot] [PATCH 1 of 2] check-kernel-headers: mktemp --tmpdir not available on RedHat 5

Yann E. MORIN yann.morin.1998 at free.fr
Tue Sep 2 09:39:02 UTC 2014


Thomas, All,

On 2014-09-02 11:25 +0200, Thomas De Schampheleire spake thusly:
> # HG changeset patch
> # User Thomas De Schampheleire <thomas.de_schampheleire at alcatel-lucent.com>
> # Date 1407153076 -7200
> #      Mon Aug 04 13:51:16 2014 +0200
> # Node ID 2c7735c0247a4c83a3c2ea1d58e74be613465255
> # Parent  6af0c3866b64670bb6d62302b64f3164b1f70fb6
> check-kernel-headers: mktemp --tmpdir not available on RedHat 5
> 
> mktemp --tmpdir is not available on older Redhat 5 machines. The alternative
> that has the same behavior is 'mktemp -t'.
> 
> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>

Reviewed-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>

Regards,
Yann E. MORIN.

> ---
>  support/scripts/check-kernel-headers.sh |  2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/support/scripts/check-kernel-headers.sh b/support/scripts/check-kernel-headers.sh
> --- a/support/scripts/check-kernel-headers.sh
> +++ b/support/scripts/check-kernel-headers.sh
> @@ -8,7 +8,7 @@
>  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.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list