Received: from eggs.gnu.org ([2001:4830:134:3::10]:43874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnwBH-0005aE-5U for qemu-devel@nongnu.org; Fri, 23 May 2014 16:35:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnwBC-0007pw-Bl for qemu-devel@nongnu.org; Fri, 23 May 2014 16:35:07 -0400 Message-ID: <537FB0F5.5010003@msgid.tls.msk.ru> Date: Sat, 24 May 2014 00:35:01 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1400861244-15972-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1400861244-15972-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] configure: Put tempfiles in a subdir of the build directory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Paolo Bonzini , patches@linaro.org 23.05.2014 20:07, 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 can't easily clean up. > > Put all our temporary files in a single temporary directory created > as a subdirectory of the build directory, so we can easily clean it up, > and don't need fragile or complicated code for creation to avoid it > clashing with temporary directories from other instances of QEMU > configure or being subject to attack from adversaries who can write > to /tmp. > > Since the temporaries now live in the build tree, we have no > need to jump through hoops with a trap handler to try to remove > them when configure exits; this fixes some weird bugs where hitting > ^C during a configure run wouldn't actually make it stop, because > we would run the trap handler but then not stop. (It is possible > to get the trap handler semantics right but it is convoluted largely > because of bugs in dash, so it is simpler to just avoid it.) > > Note that "temporary files go in the build directory, not /tmp" is > the way autoconf behaves. > > Signed-off-by: Peter Maydell > Reviewed-by: Eric Blake *ACK*. Applied to -trivial, thank you for doing this! /mjt