bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grue Hunter: Can't create directories in the store


From: Ludovic Courtès
Subject: Re: Grue Hunter: Can't create directories in the store
Date: Fri, 24 May 2013 17:32:44 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Nikita Karetnikov <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]