From: Leo Famulari <leo@famulari.name>
To: 25242@debbugs.gnu.org
Subject: bug#25242: Cannot build source derivations with a custom TMPDIR
Date: Wed, 21 Dec 2016 03:22:40 -0500 [thread overview]
Message-ID: <20161221082240.GA30326@jasmine> (raw)
[-- Attachment #1: Type: text/plain, Size: 1809 bytes --]
Since Guix 0.11.0-4.1f41, I can't build source derivations while using a
custom $TMPDIR.
I first described this issue in <http://bugs.gnu.org/25089>, 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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2016-12-21 8:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-21 8:22 Leo Famulari [this message]
2016-12-21 8:54 ` bug#25242: Cannot build source derivations with a custom TMPDIR Leo Famulari
2016-12-21 9:20 ` Ludovic Courtès
2016-12-21 16:41 ` Leo Famulari
2016-12-21 21:29 ` Ludovic Courtès
2016-12-23 0:11 ` Leo Famulari
2016-12-29 17:23 ` Ludovic Courtès
2016-12-29 17:28 ` Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161221082240.GA30326@jasmine \
--to=leo@famulari.name \
--cc=25242@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).