From: goodoldpaul@autistici.org
To: 36667@debbugs.gnu.org
Subject: bug#36667: crates-io.scm packages should build on master
Date: Mon, 15 Jul 2019 14:21:15 +0000 [thread overview]
Message-ID: <625406f416329b6b7787020d9143416a@autistici.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
Rust libraries contained in gnu/packages/crates-io.scm are not building
anymore because cargo wants to download crate dependencies inside the
store.
The attached patch sets the CARGO_HOME environment variable to "." much
earlier than it previously was, just after the configure phase. With the
attached patch all packages in crates-io.scm build without errors.
I hope I did everything right,
Bye,
Giacomo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-guix-Fix-cargo-build-system.patch --]
[-- Type: text/x-diff; name=0001-guix-Fix-cargo-build-system.patch, Size: 1473 bytes --]
From 867b8bd5fc43305b3dac3d9c8e7574344170d8aa Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Mon, 15 Jul 2019 16:07:00 +0200
Subject: [PATCH] guix: Fix cargo-build-system.
* guix/build/cargo-build-system.scm (install): Moved CARGO_HOME setting
to...
* guix/build/cargo-build-system.scm (configure): ... here.
---
guix/build/cargo-build-system.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index 1f36304b15..a34bd0632a 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -118,6 +118,9 @@ directory = '" port)
;; upgrading the compiler for example.
(setenv "RUSTFLAGS" "--cap-lints allow")
(setenv "CC" (string-append (assoc-ref inputs "gcc") "/bin/gcc"))
+ ;; Force cargo to honor our .cargo/config definitions
+ ;; https://github.com/rust-lang/cargo/issues/6397
+ (setenv "CARGO_HOME" ".")
#t)
(define* (build #:key
@@ -148,9 +151,6 @@ directory = '" port)
;; Make cargo reuse all the artifacts we just built instead
;; of defaulting to making a new temp directory
(setenv "CARGO_TARGET_DIR" "./target")
- ;; Force cargo to honor our .cargo/config definitions
- ;; https://github.com/rust-lang/cargo/issues/6397
- (setenv "CARGO_HOME" ".")
;; Only install crates which include binary targets,
;; otherwise cargo will raise an error.
--
2.22.0
next reply other threads:[~2019-07-15 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-15 14:21 goodoldpaul [this message]
2019-07-21 23:21 ` bug#36667: crates-io.scm packages should build on master Chris Marusich
2021-10-26 21:02 ` paul via Bug reports for GNU Guix
2022-01-20 22:02 ` bug#36667: (No Subject) Attila Lendvai
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=625406f416329b6b7787020d9143416a@autistici.org \
--to=goodoldpaul@autistici.org \
--cc=36667@debbugs.gnu.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).