unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: bug-guix@gnu.org
Subject: Re: Grue Hunter: Can't create directories in the store
Date: Fri, 24 May 2013 17:32:44 +0200	[thread overview]
Message-ID: <878v34xujn.fsf@gnu.org> (raw)
In-Reply-To: <87d2sgwio8.fsf@karetnikov.org> (Nikita Karetnikov's message of "Fri, 24 May 2013 18:34:31 +0400")

Nikita Karetnikov <nikita@karetnikov.org> skribis:

> 				 (system* "tar" "xvf" tarball)

The ‘PATH’ environment variable is empty.  So this should be:

  (let ((tar (string-append (assoc-ref %build-inputs "tar")
             "/bin/tar")))
    (zero? (system* tar "xvf" tarball)))

And tar needs to be explicitly added as an input.

Note ‘zero?’ to make sure ‘tar’ exits normally.

See ‘package-from-tarball’ for an example, in bootstrap.scm.

HTH,
Ludo’.

  reply	other threads:[~2013-05-24 15:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14 19:36 Grue Hunter: Can't create directories in the store Nikita Karetnikov
2013-05-15  0:59 ` Cyril Roelandt
2013-05-15 12:11 ` Ludovic Courtès
2013-05-16  2:35   ` Nikita Karetnikov
2013-05-16 16:33     ` Ludovic Courtès
2013-05-24  9:24       ` Nikita Karetnikov
2013-05-24 12:51         ` Ludovic Courtès
2013-05-24 14:34           ` Nikita Karetnikov
2013-05-24 15:32             ` Ludovic Courtès [this message]
2013-05-30  3:40               ` [PATCH] gnu: Add Grue Hunter Nikita Karetnikov
2013-05-30 11:53                 ` Ludovic Courtès
2013-06-03  3:18                   ` Nikita Karetnikov
2013-06-03 10:14                     ` Ludovic Courtès

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=878v34xujn.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guix@gnu.org \
    --cc=nikita@karetnikov.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).