From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#25242: Cannot build source derivations with a custom TMPDIR Date: Wed, 21 Dec 2016 03:22:40 -0500 Message-ID: <20161221082240.GA30326@jasmine> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJcAz-00017v-N1 for bug-guix@gnu.org; Wed, 21 Dec 2016 03:23:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJcAw-0001eo-IU for bug-guix@gnu.org; Wed, 21 Dec 2016 03:23:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:34242) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJcAw-0001ef-Fo for bug-guix@gnu.org; Wed, 21 Dec 2016 03:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cJcAw-0001CG-B8 for bug-guix@gnu.org; Wed, 21 Dec 2016 03:23:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJcAj-0000Vi-LE for bug-guix@gnu.org; Wed, 21 Dec 2016 03:22:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJcAg-0001a1-Dq for bug-guix@gnu.org; Wed, 21 Dec 2016 03:22:49 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33627) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cJcAg-0001Zp-5w for bug-guix@gnu.org; Wed, 21 Dec 2016 03:22:46 -0500 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 14DAA243CF for ; Wed, 21 Dec 2016 03:22:42 -0500 (EST) Content-Disposition: inline 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: 25242@debbugs.gnu.org --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Since Guix 0.11.0-4.1f41, I can't build source derivations while using a custom $TMPDIR. I first described this issue in , but I'm splitting it into its own report. On my Debian system, I set 'TMPDIR=/home/leo/tmp/guix-build'. Then, I can do this: $ ./pre-inst-env guix build nmap guix build: error: build failed: while setting up the build environment: changing into `/home/leo/tmp/guix-build/guix-build-nmap-7.40.tar.bz2.drv-0': No such file or directory And some monitoring of the TMPDIR: $ cd /home/leo/tmp/guix-build && inotifywait --monitor . Setting up watches. Watches established. ./ CREATE,ISDIR guix-build-nmap-7.40.tar.bz2.drv-0 ./ ATTRIB,ISDIR guix-build-nmap-7.40.tar.bz2.drv-0 ./ ATTRIB,ISDIR guix-build-nmap-7.40.tar.bz2.drv-0 ./ OPEN,ISDIR guix-build-nmap-7.40.tar.bz2.drv-0 ./ ACCESS,ISDIR guix-build-nmap-7.40.tar.bz2.drv-0 ./ ACCESS,ISDIR guix-build-nmap-7.40.tar.bz2.drv-0 ./ CLOSE_NOWRITE,CLOSE,ISDIR guix-build-nmap-7.40.tar.bz2.drv-0 ./ DELETE,ISDIR guix-build-nmap-7.40.tar.bz2.drv-0 I ran the guix-daemon with strace, and I see these relevant lines: 15337 [pid 30675] mkdir("/home/leo/tmp/guix-build/guix-build-nmap-7.40.tar.bz2.drv-0", 0700) = 0 15338 [pid 30675] getegid() = 0 15339 [pid 30675] chown("/home/leo/tmp/guix-build/guix-build-nmap-7.40.tar.bz2.drv-0", -1, 0) = 0 ... and just a bit later ... 15438 [pid 30693] chdir("/tmp/guix-build-nmap-7.40.tar.bz2.drv-0") = -1 ENOENT (No such file or directory) I'm still trying to figure out where the problem is in the code. I guess it's somewhere in these commits or code they interact with: 05ceb8dca download: Use the built-in 'download' builder when available. f9aefa2d5 daemon: Add 'built-in-builders' RPC. 94d92c779 daemon: Add "builtin:download" derivation builder. --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlhaO8wACgkQJkb6MLrK fwj2YQ/+NfU3G24hSBj4g+Ul56XzT2+mi1B1B+TpkSYGnYUUPGN0gTmL7rAexrOQ csrQMnQyCcIigSnTx+BQoymIvS7TSaekozFEFORAh295byUjFx8om5XUmwZwPvHA SJ1Otv5xf5WkanTzhOrAANEDrKQsPecrZx2B3TenIvvELPbCf/a/cA6/b5r9GhQF 5yJyVeiKQXTIqUdAnw1kOJUhnyFw6g5T+PMmq5txgNh4KOPQVyoXx/k6DDGPgi6I RvADmgwbZ/iZ7xPvmS8taxmHUcqVw/BbvAdO3Yd3iwZIKoe1xwHj7VXgbUO/JINu Y3oJx8XgaMFDvrMwNSdQUAWJRHNs+LSXzLBJ9/8W/BheibPn+gePithx1QXsezcX rbGn0fRro+WWBCgljB/83HbHns61xRB2zvWGOtfE8O1fKqNCdPd7k5J9b8qPs/6a NxCuxAaiIdaMcQPbFbYZ8gDSoeHtNXZTC3DC0hJsBH0RVqgG3G8XhaEthGAVWgDa MZdGhqKLQMY1WumaVKQxOh2If1Mo8L8spmgm2+nbRT4ExyH2Y2wXJKk80kmypsNi QtlEatvu51NbCSsrBo5EY24UEqT2cTgA3EJUkxPajjvPtljMaM/wuWfV6g0Q3rOU JdU1Whl5It7qUmR2aS6Dqxokh8Uzgk9HJJ6vJCOH1zz6PaKXcPw= =8NWS -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--