mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r4987] Purpose:
Bug Fix Description: When doing an install of dynamic executables on some platforms, the "mktemp" command may fail which causes the contents of "tmpdir" to go away. If it's a failure, we still need the previous value of tmpdir. Solution: I replicated some code so that tmpdir's old value before the mktemp call is regen'ed if the mktemp call failed. Platforms tested: HP-UX SysV
This commit is contained in:
parent
cf16f383ec
commit
8c035746cc
@ -3483,6 +3483,11 @@ libdir='$install_libdir'\
|
|||||||
tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null`
|
tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null`
|
||||||
if test $? = 0 ; then :
|
if test $? = 0 ; then :
|
||||||
else
|
else
|
||||||
|
## HACK: Added the following two lines. The "mktemp" line
|
||||||
|
## above overwrites "tmpdir" on a failure. So, we need to
|
||||||
|
## regen the "tmpdir" value on a failure...Hence...
|
||||||
|
tmpdir="/tmp"
|
||||||
|
test -n "$TMPDIR" && tmpdir="$TMPDIR"
|
||||||
tmpdir="$tmpdir/libtool-$$"
|
tmpdir="$tmpdir/libtool-$$"
|
||||||
fi
|
fi
|
||||||
if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
|
if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
|
||||||
|
Loading…
Reference in New Issue
Block a user