[Qemu-devel] [PATCH] configure: Put tempfiles in subdir so we can clean up libtool files

2014-05-06 Thread Peter Maydell
When libtool support was added to configure, the new temporary files were left out of the list of files cleaned up on exit; this results in a lot of stale .lo files being left around in /tmp. Worse, libtool creates a /tmp/.libs directory which we can't easily clean up. Put all our temporary files

Re: [Qemu-devel] [PATCH] configure: Put tempfiles in subdir so we can clean up libtool files

2014-05-06 Thread Eric Blake
On 05/06/2014 07:17 AM, Peter Maydell wrote: When libtool support was added to configure, the new temporary files were left out of the list of files cleaned up on exit; this results in a lot of stale .lo files being left around in /tmp. Worse, libtool creates a /tmp/.libs directory which we

Re: [Qemu-devel] [PATCH] configure: Put tempfiles in subdir so we can clean up libtool files

2014-05-06 Thread Peter Maydell
On 6 May 2014 15:36, Eric Blake ebl...@redhat.com wrote: mktemp is not POSIX. BSD mktemp lacks -t: http://www.freebsd.org/cgi/man.cgi?query=mktempapropos=0sektion=1manpath=Red+Hat+Linux%2Fi386+9format=html Sigh. and there are probably systems that lack mktemp(1) altogether. You'll need to

Re: [Qemu-devel] [PATCH] configure: Put tempfiles in subdir so we can clean up libtool files

2014-05-06 Thread Eric Blake
On 05/06/2014 08:53 AM, Peter Maydell wrote: # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 mktemp -d ./confXX) 2/dev/null` test -d $tmp } || { tmp=./conf$$-$RANDOM (umask 077 mkdir $tmp) } || as_fn_error $? cannot create a temporary directory in .