unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: swedebugia <swedebugia@riseup.net>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Help with cargo-build-system error: chmod: No such file or directory
Date: Tue, 01 Jan 2019 16:33:23 +0800	[thread overview]
Message-ID: <87tvisg4ks.fsf@gmail.com> (raw)
In-Reply-To: <2415036f-6642-b2ae-3935-b4e139ae3b9a@riseup.net> (swedebugia's message of "Tue, 1 Jan 2019 09:02:04 +0100")

[-- Attachment #1: Type: text/plain, Size: 2555 bytes --]

Hello,

A build phase is a procedure. You forget to wrap it with a lambda:

            (add-after 'unpack 'permissions
              (lambda _
                (chmod ".cargo/config" #o755)
                #t)))))

Cheers,
Alex

swedebugia <swedebugia@riseup.net> writes:

> Hi
>
> I started packaging swc but hit a weird error:
>
> phase `patch-source-shebangs' succeeded after 0.7 seconds
> starting phase `configure'
> Backtrace:
>            5 (primitive-load "/gnu/store/s72cf8n348fl0xdxc9w5bzdag77?")
> In ice-9/eval.scm:
>    191:35  4 (_ _)
> In srfi/srfi-1.scm:
>    863:16  3 (every1 #<procedure 6d5e20 at /gnu/store/27qw1zxljzylv?> ?)
> In
> /gnu/store/27qw1zxljzylvm9b3jbi343gh6cngazq-module-import/guix/build/gnu-build-system.scm:
>    799:28  2 (_ _)
> In
> /gnu/store/27qw1zxljzylvm9b3jbi343gh6cngazq-module-import/guix/build/cargo-build-system.scm:
>     80:20  1 (configure #:inputs _)
> In unknown file:
>            0 (open-file ".cargo/config" "w" #:encoding "utf-8")
>
> ERROR: In procedure open-file:
> In procedure open-file: Permission denied: ".cargo/config"
>
> The permission on this file is: r-r-r
> The .cargo-dir has: drwxr-xr-x
>
> When I try chmodding the file via an argument I get:
>
> building
> /gnu/store/jhh3xf7305080ll95f13ll7xwhvb1012-swc-0.0-1.2e22397f4.drv...
> Backtrace:
>           16 (primitive-load "/gnu/store/6s73l7r1x17yvbiix1danlsj87b?")
> In ice-9/eval.scm:
>    191:35 15 (_ #f)
>    214:21 14 (_ #f)
>    217:50 13 (lp (#<procedure 6d65e0 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50 12 (lp (#<procedure 6d65c0 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50 11 (lp (#<procedure 6d65a0 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50 10 (lp (#<procedure 6d6580 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50  9 (lp (#<procedure 6d6560 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50  8 (lp (#<procedure 6d6540 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50  7 (lp (#<procedure 6d6520 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50  6 (lp (#<procedure 6d6500 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50  5 (lp (#<procedure 6d64e0 at ice-9/eval.scm:282:4 (env)> ?))
>    217:50  4 (lp (#<procedure 6d64c0 at ice-9/eval.scm:282:4 (env)> ?))
>    217:33  3 (lp (#<procedure 6d63c0 at ice-9/eval.scm:649:6 (env)> ?))
>    293:34  2 (_ #(#<directory (guile-user) 5ce140> ((# . #<pro?>) ?)))
>    173:55  1 (_ #(#<directory (guile-user) 5ce140> ((# . #<pro?>) ?)))
> In unknown file:
>            0 (chmod ".cargo/config" 493)
>
> ERROR: In procedure chmod:
> In procedure chmod: No such file or directory

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2019-01-01  8:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-01  8:02 Help with cargo-build-system error: chmod: No such file or directory swedebugia
2019-01-01  8:33 ` Alex Vong [this message]
2019-01-01 11:37 ` Help with cargo-build-system error (Was: Re: Help with cargo-build-system error: chmod: No such file or directory) swedebugia
2019-01-01 11:42   ` swedebugia

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=87tvisg4ks.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=swedebugia@riseup.net \
    /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).