From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: Help with cargo-build-system error: chmod: No such file or directory Date: Tue, 01 Jan 2019 16:33:23 +0800 Message-ID: <87tvisg4ks.fsf@gmail.com> References: <2415036f-6642-b2ae-3935-b4e139ae3b9a@riseup.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geFUX-00021X-Qn for guix-devel@gnu.org; Tue, 01 Jan 2019 03:33:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1geFUU-0005ZZ-Ko for guix-devel@gnu.org; Tue, 01 Jan 2019 03:33:37 -0500 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:42908) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1geFUU-0005So-EQ for guix-devel@gnu.org; Tue, 01 Jan 2019 03:33:34 -0500 Received: by mail-pg1-x534.google.com with SMTP id d72so13390682pga.9 for ; Tue, 01 Jan 2019 00:33:34 -0800 (PST) In-Reply-To: <2415036f-6642-b2ae-3935-b4e139ae3b9a@riseup.net> (swedebugia's message of "Tue, 1 Jan 2019 09:02:04 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia Cc: guix-devel --=-=-= Content-Type: text/plain 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 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 # ?) > 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 (# ?)) > 217:50 12 (lp (# ?)) > 217:50 11 (lp (# ?)) > 217:50 10 (lp (# ?)) > 217:50 9 (lp (# ?)) > 217:50 8 (lp (# ?)) > 217:50 7 (lp (# ?)) > 217:50 6 (lp (# ?)) > 217:50 5 (lp (# ?)) > 217:50 4 (lp (# ?)) > 217:33 3 (lp (# ?)) > 293:34 2 (_ #(# ((# . #) ?))) > 173:55 1 (_ #(# ((# . #) ?))) > In unknown file: > 0 (chmod ".cargo/config" 493) > > ERROR: In procedure chmod: > In procedure chmod: No such file or directory --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQwb8uPLAHCXSnTBVZh71Au9gJS8gUCXCsl0wAKCRBh71Au9gJS 8sq2AQDuj9sNwYCkmWW5nVwyozFNr186kNbggXVog6wabUWD4gD7B2/nylrwcO9j IZw4iTeiZw4cnB5L7NJNJ7ISiCYUswA= =MUbZ -----END PGP SIGNATURE----- --=-=-=--