]> git.pld-linux.org Git - packages/libtool.git/blob - libtool-mktemp.patch
- updated to 1.5.8
[packages/libtool.git] / libtool-mktemp.patch
1 --- libtool-1.5.4/ltmain.in.orig        2004-04-02 05:46:15.000000000 +0200
2 +++ libtool-1.5.4/ltmain.in     2004-04-06 23:28:13.336768688 +0200
3 @@ -5691,6 +5691,9 @@
4             if test "$finalize" = yes && test -z "$run"; then
5               tmpdir="/tmp"
6               test -n "$TMPDIR" && tmpdir="$TMPDIR"
7 +             tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null`
8 +             if test $? = 0 ; then :
9 +             else
10               tmpdir="$tmpdir/libtool-$$"
11               save_umask=`umask`
12               umask 0077
13 @@ -5701,6 +5704,7 @@
14                 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
15                 continue
16               fi
17 +             fi
18               file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
19               outputname="$tmpdir/$file"
20               # Replace the output file specification.
21 --- libtool-1.5.4/ltmain.sh.orig        2004-04-06 23:31:43.000000000 +0200
22 +++ libtool-1.5.4/ltmain.sh     2004-04-06 23:33:28.728821808 +0200
23 @@ -5704,6 +5704,9 @@
24             if test "$finalize" = yes && test -z "$run"; then
25               tmpdir="/tmp"
26               test -n "$TMPDIR" && tmpdir="$TMPDIR"
27 +             tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null`
28 +             if test $? = 0 ; then :
29 +             else
30               tmpdir="$tmpdir/libtool-$$"
31               save_umask=`umask`
32               umask 0077
33 @@ -5714,6 +5717,7 @@
34                 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
35                 continue
36               fi
37 +             fi
38               file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
39               outputname="$tmpdir/$file"
40               # Replace the output file specification.
This page took 0.029847 seconds and 3 git commands to generate.