From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Francisco_G=C3=B3mez_Garc=C3=ADa?= Subject: Cargo build system: Lock file cannot be updated Date: Sat, 24 Dec 2016 01:43:31 +0100 Message-ID: <104949EB-C468-4F56-B27B-F7C533CE5129@kydara.com> Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_C5692316-FEAB-43FD-91D3-938273A7E299" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKaRE-0006bT-H1 for help-guix@gnu.org; Fri, 23 Dec 2016 19:43:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKaR9-0007L2-Kh for help-guix@gnu.org; Fri, 23 Dec 2016 19:43:52 -0500 Received: from mail.kydara.com ([188.165.218.131]:45450) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cKaR9-0007JS-9N for help-guix@gnu.org; Fri, 23 Dec 2016 19:43:47 -0500 Received: from mail.kydara.com (localhost [127.0.0.1]) by mail.kydara.com (Postfix) with ESMTP id F1EA7200208 for ; Sat, 24 Dec 2016 01:43:33 +0100 (CET) Received: from mail.kydara.com ([127.0.0.1]) by mail.kydara.com (mail.kydara.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7k5pwFAOsDKO for ; Sat, 24 Dec 2016 01:43:33 +0100 (CET) Received: from [192.168.1.35] (247.red-79-144-205.dynamicip.rima-tde.net [79.144.205.247]) by mail.kydara.com (Postfix) with ESMTPSA id D2453200207 for ; Sat, 24 Dec 2016 01:43:32 +0100 (CET) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --Apple-Mail=_C5692316-FEAB-43FD-91D3-938273A7E299 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99m relatively new to Guix =E2=80=93 been casually trying it out = from time to time this last 2 years, but never used it beyond installing = Emacs and a few extra packages. I decided, for some reason, to learn to = create packages by using the new Cargo build system for crates. I ended = up going for `ansi-term` (https://crates.io/crates/ansi_term). After = managing to get a working script (not hard at all, if you know how!), I = attempt to build the package, and after a few seconds the following log = appears and the process aborts: starting phase `build' error: the lock file needs to be updated but --locked was passed to = prevent this phase `build' failed after 0.0 seconds I can assume it=E2=80=99s attempting to modify the current crate's = Cargo.lock, but obviously is unable to do so. Is this some sort of bug = on the build system, or is there any parameter which the script is = missing? My .scm has been attached to the mail, for those who want to take a = look. Thank you in advance! --Apple-Mail=_C5692316-FEAB-43FD-91D3-938273A7E299 Content-Disposition: attachment; filename=rust-ansi-term.scm Content-Type: application/octet-stream; x-unix-mode=0644; name="rust-ansi-term.scm" Content-Transfer-Encoding: 7bit (define-module (rust-ansi-term) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system cargo) #:use-module (guix licenses)) (define-public rust-ansi-term (package (name "rust-ansi-term") (version "0.9.0") (source (origin (method url-fetch) (uri (crate-uri "ansi_term" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1xif1bh938qpfc3d0f9xgidibpm65xix11w9gszwqnia00q7rb13")))) (build-system cargo-build-system) (home-page "https://github.com/ogham/rust-ansi-term") (synopsis "Library for ANSI terminal colours and styles (bold, underline)") (description "Library for ANSI terminal colours and styles (bold, underline)") (license expat))) --Apple-Mail=_C5692316-FEAB-43FD-91D3-938273A7E299--