From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25242: Cannot build source derivations with a custom TMPDIR Date: Wed, 21 Dec 2016 22:29:38 +0100 Message-ID: <87d1glvum5.fsf@gnu.org> References: <20161221082240.GA30326@jasmine> <20161221085421.GA32042@jasmine> <87r351myej.fsf@gnu.org> <20161221164149.GA5931@jasmine> 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]:50047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJoSd-00034q-W4 for bug-guix@gnu.org; Wed, 21 Dec 2016 16:30:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJoSZ-0001fx-1v for bug-guix@gnu.org; Wed, 21 Dec 2016 16:30:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35193) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJoSY-0001fl-UR for bug-guix@gnu.org; Wed, 21 Dec 2016 16:30:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cJoSY-0000f4-Ng for bug-guix@gnu.org; Wed, 21 Dec 2016 16:30:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20161221164149.GA5931@jasmine> (Leo Famulari's message of "Wed, 21 Dec 2016 11:41:49 -0500") 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: Leo Famulari Cc: 25242@debbugs.gnu.org Leo Famulari skribis: > On Wed, Dec 21, 2016 at 10:20:20AM +0100, Ludovic Court=C3=A8s wrote: >> Good catch! >>=20 >> AFAICS the flaw is that there=E2=80=99s one place where I wrote: >>=20 >> if (useChroot && !isBuiltin(drv)) >>=20 >> while several other places just do something like: >>=20 >> if (useChroot) >>=20 >> Could the patch below solve the problem? > > I'm not sure how to test patches to the daemon. Does it require creating > a new guix-devel snapshot? You can apply it to your source tree and run: sudo ./pre-inst-env guix-daemon --build-users-group=3Dguixbuild from there (or similar). HTH! Ludo=E2=80=99.