unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36667: crates-io.scm packages should build on master
@ 2019-07-15 14:21 goodoldpaul
  2019-07-21 23:21 ` Chris Marusich
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: goodoldpaul @ 2019-07-15 14:21 UTC (permalink / raw)
  To: 36667

[-- 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#36667: crates-io.scm packages should build on master
  2019-07-15 14:21 bug#36667: crates-io.scm packages should build on master goodoldpaul
@ 2019-07-21 23:21 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: Chris Marusich @ 2019-07-21 23:21 UTC (permalink / raw)
  To: goodoldpaul; +Cc: 36667

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

Hi Giacomo,

Thank you for taking the time to submit a patch!

goodoldpaul@autistici.org writes:

> Rust libraries contained in gnu/packages/crates-io.scm are not
> building anymore because cargo wants to download crate dependencies
> inside the store.

Curious!  I wonder when this changed.

> 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,

Unfortunately, your patch does not apply cleanly to the current tip of
the master branch (d1e766e5c6b9e25ff0fa8e0a2adf3e764401a3a2).  Could you
please tell me what commit or branch it applies against, or send a new
patch that applies cleanly to the current tip of the master branch?

Thank you,

-- 
Chris

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#36667: crates-io.scm packages should build on master
  2019-07-15 14:21 bug#36667: crates-io.scm packages should build on master goodoldpaul
  2019-07-21 23:21 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: paul via Bug reports for GNU Guix @ 2021-10-26 21:02 UTC (permalink / raw)
  To: 36667

close 36667





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#36667: (No Subject)
  2019-07-15 14:21 bug#36667: crates-io.scm packages should build on master goodoldpaul
  2019-07-21 23:21 ` Chris Marusich
  2021-10-26 21:02 ` paul via Bug reports for GNU Guix
@ 2022-01-20 22:02 ` Attila Lendvai
  2 siblings, 0 replies; 4+ messages in thread
From: Attila Lendvai @ 2022-01-20 22:02 UTC (permalink / raw)
  To: 36667-close@debbugs.gnu.org

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

Empty Message

[-- Attachment #2: Type: text/html, Size: 24 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-20 23:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15 14:21 bug#36667: crates-io.scm packages should build on master goodoldpaul
2019-07-21 23:21 ` 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

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).