From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#33171: TMPDIR and build containers Date: Thu, 01 Nov 2018 16:09:02 +0100 Message-ID: <87efc4u969.fsf@gnu.org> References: <20181027012336.glawlvz63m6kiiuu@florianbeaglebone.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIEbk-0004X4-24 for bug-guix@gnu.org; Thu, 01 Nov 2018 11:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIEbj-0004iu-CK for bug-guix@gnu.org; Thu, 01 Nov 2018 11:10:04 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIEbj-0004io-79 for bug-guix@gnu.org; Thu, 01 Nov 2018 11:10:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gIEbj-0005lu-1O for bug-guix@gnu.org; Thu, 01 Nov 2018 11:10:03 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <20181027012336.glawlvz63m6kiiuu@florianbeaglebone.fritz.box> (pelzflorian's message of "Sat, 27 Oct 2018 03:23:36 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: "pelzflorian (Florian Pelz)" Cc: 33171-done@debbugs.gnu.org Hello Florian, "pelzflorian (Florian Pelz)" skribis: > The manual says that TMPDIR does not leak into the build environment: > >> You can influence the directory where the daemon stores build trees >> via the =E2=80=98TMPDIR=E2=80=99 environment variable. However, the bui= ld tree within >> the chroot is always called =E2=80=98/tmp/guix-build-NAME.drv-0=E2=80=99= , where NAME is >> the derivation name=E2=80=94e.g., =E2=80=98coreutils-8.24=E2=80=99. Thi= s way, the value of >> =E2=80=98TMPDIR=E2=80=99 does not leak inside build environments, which = avoids >> discrepancies in cases where build processes capture the name of their >> build tree. > > > However, later it says: > >> When the daemon performs a build on behalf of the user, it creates a >> build directory under =E2=80=98/tmp=E2=80=99 or under the directory spec= ified by its >> =E2=80=98TMPDIR=E2=80=99 environment variable; this directory is shared = with the >> container for the duration of the build. Be aware that using a >> directory other than =E2=80=98/tmp=E2=80=99 can affect build results=E2= =80=94for example, with a >> longer directory name, a build process that uses Unix-domain sockets >> might hit the name length limitation for =E2=80=98sun_path=E2=80=99, whi= ch it would >> otherwise not hit. > > > This seems like a contradiction, or do I misunderstand? Indeed. The sentences that starts with =E2=80=9CBe aware=E2=80=9D is inacc= urate; I=E2=80=99ll remove it. Thank you! Ludo=E2=80=99.