unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#57231] Fix rust-cargo build.
@ 2022-08-15 21:08 Nicolas Graves via Guix-patches via
  2022-08-15 21:14 ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) Nicolas Graves via Guix-patches via
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-08-15 21:08 UTC (permalink / raw)
  To: 57231


Small series of patches moving rust-cargo to rust-apps and fixing the
build of rust-cargo.

-- 
Best regards,
Nicolas Graves




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

* [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io).
  2022-08-15 21:08 [bug#57231] Fix rust-cargo build Nicolas Graves via Guix-patches via
@ 2022-08-15 21:14 ` Nicolas Graves via Guix-patches via
  2022-08-15 21:14   ` [bug#57231] [PATCH 2/3] gnu: rust-cargo-0.53: Rename package to rust-cargo Nicolas Graves via Guix-patches via
                     ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-08-15 21:14 UTC (permalink / raw)
  To: 57231; +Cc: Nicolas Graves

* gnu/packages/crates-io.scm (rust-cargo-0.53): Move from here…
* gnu/packages/rust-apps.scm (rust-cargo-0.53): …to here.
---
 gnu/packages/crates-io.scm | 86 --------------------------------------
 gnu/packages/rust-apps.scm | 86 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+), 86 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cfafce9aa3..7dacfaf4e7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9834,92 +9834,6 @@ (define-public rust-caps-0.3
         ("rust-error-chain" ,rust-error-chain-0.12)
         ("rust-libc" ,rust-libc-0.2))))))
 
-(define-public rust-cargo-0.53
-  (package
-    (name "rust-cargo")
-    (version "0.53.0")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (crate-uri "cargo" version))
-       (file-name
-        (string-append name "-" version ".tar.gz"))
-       (sha256
-        (base32
-         "12ns9v4dd8vnvsaqgd897h2zc19w00i5ii3slda653zbhfzm6zna"))))
-    (build-system cargo-build-system)
-    (arguments
-     `(;; The test suite is disabled as the internal 'cargo-test-macro' and
-       ;; 'cargo-test-support' crates are not included in the release.
-       #:tests? #f
-       #:cargo-inputs
-       (("rust-anyhow" ,rust-anyhow-1)
-        ("rust-atty" ,rust-atty-0.2)
-        ("rust-bytesize" ,rust-bytesize-1)
-        ("rust-cargo-platform" ,rust-cargo-platform-0.1)
-        ("rust-clap" ,rust-clap-2)
-        ("rust-core-foundation" ,rust-core-foundation-0.9)
-        ("rust-crates-io" ,rust-crates-io-0.33)
-        ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8)
-        ("rust-crypto-hash" ,rust-crypto-hash-0.3)
-        ("rust-curl" ,rust-curl-0.4)
-        ("rust-curl-sys" ,rust-curl-sys-0.4)
-        ("rust-env-logger" ,rust-env-logger-0.8)
-        ("rust-filetime" ,rust-filetime-0.2)
-        ("rust-flate2" ,rust-flate2-1)
-        ("rust-flate2" ,rust-flate2-1)
-        ("rust-fwdansi" ,rust-fwdansi-1)
-        ("rust-git2" ,rust-git2-0.13)
-        ("rust-git2-curl" ,rust-git2-curl-0.14)
-        ("rust-glob" ,rust-glob-0.3)
-        ("rust-hex" ,rust-hex-0.4)
-        ("rust-home" ,rust-home-0.5)
-        ("rust-humantime" ,rust-humantime-2)
-        ("rust-ignore" ,rust-ignore-0.4)
-        ("rust-im-rc" ,rust-im-rc-15)
-        ("rust-jobserver" ,rust-jobserver-0.1)
-        ("rust-lazy-static" ,rust-lazy-static-1)
-        ("rust-lazycell" ,rust-lazycell-1)
-        ("rust-libc" ,rust-libc-0.2)
-        ("rust-libgit2-sys" ,rust-libgit2-sys-0.12)
-        ("rust-log" ,rust-log-0.4)
-        ("rust-memchr" ,rust-memchr-2)
-        ("rust-miow" ,rust-miow-0.3)
-        ("rust-num-cpus" ,rust-num-cpus-1)
-        ("rust-opener" ,rust-opener-0.4)
-        ("rust-openssl" ,rust-openssl-0.10)
-        ("rust-percent-encoding" ,rust-percent-encoding-2)
-        ("rust-pretty-env-logger" ,rust-pretty-env-logger-0.4)
-        ("rust-rand" ,rust-rand-0.8)
-        ("rust-rustc-workspace-hack" ,rust-rustc-workspace-hack-1)
-        ("rust-rustfix" ,rust-rustfix-0.5)
-        ("rust-same-file" ,rust-same-file-1)
-        ("rust-semver" ,rust-semver-0.10)
-        ("rust-serde" ,rust-serde-1)
-        ("rust-serde-ignored" ,rust-serde-ignored-0.1)
-        ("rust-serde-json" ,rust-serde-json-1)
-        ("rust-shell-escape" ,rust-shell-escape-0.1)
-        ("rust-strip-ansi-escapes" ,rust-strip-ansi-escapes-0.1)
-        ("rust-tar" ,rust-tar-0.4)
-        ("rust-tar" ,rust-tar-0.4)
-        ("rust-tempfile" ,rust-tempfile-3)
-        ("rust-termcolor" ,rust-termcolor-1)
-        ("rust-toml" ,rust-toml-0.5)
-        ("rust-unicode-width" ,rust-unicode-width-0.1)
-        ("rust-unicode-xid" ,rust-unicode-xid-0.2)
-        ("rust-url" ,rust-url-2)
-        ("rust-walkdir" ,rust-walkdir-2)
-        ("rust-winapi" ,rust-winapi-0.3))))
-    (native-inputs
-     (list pkg-config))
-    (inputs
-     (list curl libssh2 openssl zlib))
-    (home-page "https://crates.io")
-    (synopsis "Package manager for Rust")
-    (description "Cargo, a package manager for Rust.  This package provides
-the library crate of Cargo.")
-    (license (list license:expat license:asl2.0))))
-
 (define-public rust-cargo-audit-0.16
   (package
     (name "rust-cargo-audit")
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 0d5034ffb7..642219a329 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -1539,6 +1539,92 @@ (define-public rust-analyzer
 support for Rust.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-cargo-0.53
+  (package
+    (name "rust-cargo")
+    (version "0.53.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cargo" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "12ns9v4dd8vnvsaqgd897h2zc19w00i5ii3slda653zbhfzm6zna"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(;; The test suite is disabled as the internal 'cargo-test-macro' and
+       ;; 'cargo-test-support' crates are not included in the release.
+       #:tests? #f
+       #:cargo-inputs
+       (("rust-anyhow" ,rust-anyhow-1)
+        ("rust-atty" ,rust-atty-0.2)
+        ("rust-bytesize" ,rust-bytesize-1)
+        ("rust-cargo-platform" ,rust-cargo-platform-0.1)
+        ("rust-clap" ,rust-clap-2)
+        ("rust-core-foundation" ,rust-core-foundation-0.9)
+        ("rust-crates-io" ,rust-crates-io-0.33)
+        ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8)
+        ("rust-crypto-hash" ,rust-crypto-hash-0.3)
+        ("rust-curl" ,rust-curl-0.4)
+        ("rust-curl-sys" ,rust-curl-sys-0.4)
+        ("rust-env-logger" ,rust-env-logger-0.8)
+        ("rust-filetime" ,rust-filetime-0.2)
+        ("rust-flate2" ,rust-flate2-1)
+        ("rust-flate2" ,rust-flate2-1)
+        ("rust-fwdansi" ,rust-fwdansi-1)
+        ("rust-git2" ,rust-git2-0.13)
+        ("rust-git2-curl" ,rust-git2-curl-0.14)
+        ("rust-glob" ,rust-glob-0.3)
+        ("rust-hex" ,rust-hex-0.4)
+        ("rust-home" ,rust-home-0.5)
+        ("rust-humantime" ,rust-humantime-2)
+        ("rust-ignore" ,rust-ignore-0.4)
+        ("rust-im-rc" ,rust-im-rc-15)
+        ("rust-jobserver" ,rust-jobserver-0.1)
+        ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-lazycell" ,rust-lazycell-1)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-libgit2-sys" ,rust-libgit2-sys-0.12)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-memchr" ,rust-memchr-2)
+        ("rust-miow" ,rust-miow-0.3)
+        ("rust-num-cpus" ,rust-num-cpus-1)
+        ("rust-opener" ,rust-opener-0.4)
+        ("rust-openssl" ,rust-openssl-0.10)
+        ("rust-percent-encoding" ,rust-percent-encoding-2)
+        ("rust-pretty-env-logger" ,rust-pretty-env-logger-0.4)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-rustc-workspace-hack" ,rust-rustc-workspace-hack-1)
+        ("rust-rustfix" ,rust-rustfix-0.5)
+        ("rust-same-file" ,rust-same-file-1)
+        ("rust-semver" ,rust-semver-0.10)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-ignored" ,rust-serde-ignored-0.1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-shell-escape" ,rust-shell-escape-0.1)
+        ("rust-strip-ansi-escapes" ,rust-strip-ansi-escapes-0.1)
+        ("rust-tar" ,rust-tar-0.4)
+        ("rust-tar" ,rust-tar-0.4)
+        ("rust-tempfile" ,rust-tempfile-3)
+        ("rust-termcolor" ,rust-termcolor-1)
+        ("rust-toml" ,rust-toml-0.5)
+        ("rust-unicode-width" ,rust-unicode-width-0.1)
+        ("rust-unicode-xid" ,rust-unicode-xid-0.2)
+        ("rust-url" ,rust-url-2)
+        ("rust-walkdir" ,rust-walkdir-2)
+        ("rust-winapi" ,rust-winapi-0.3))))
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list curl libssh2 openssl zlib))
+    (home-page "https://crates.io")
+    (synopsis "Package manager for Rust")
+    (description "Cargo, a package manager for Rust.  This package provides
+the library crate of Cargo.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-cargo-c
   (package
     (name "rust-cargo-c")
-- 
2.37.2





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

* [bug#57231] [PATCH 2/3] gnu: rust-cargo-0.53: Rename package to rust-cargo.
  2022-08-15 21:14 ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) Nicolas Graves via Guix-patches via
@ 2022-08-15 21:14   ` Nicolas Graves via Guix-patches via
  2022-08-15 21:14   ` [bug#57231] [PATCH 3/3] gnu: rust-cargo: Repare build phase Nicolas Graves via Guix-patches via
  2022-08-16 17:03   ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) ( via Guix-patches via
  2 siblings, 0 replies; 7+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-08-15 21:14 UTC (permalink / raw)
  To: 57231; +Cc: Nicolas Graves

* gnu/packages/rust-apps.scm (rust-cargo-0.53): Define in terms of
'deprecated-package'.
(rust-cargo): New variable, formerly known as "rust-cargo-0.53".
---
 gnu/packages/rust-apps.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 642219a329..4d3e9cdcfb 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -1539,7 +1539,7 @@ (define-public rust-analyzer
 support for Rust.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-cargo-0.53
+(define-public rust-cargo
   (package
     (name "rust-cargo")
     (version "0.53.0")
@@ -1642,7 +1642,7 @@ (define-public rust-cargo-c
     (arguments
      `(#:cargo-inputs
        (("rust-cbindgen" ,rust-cbindgen-0.19)
-        ("rust-cargo" ,rust-cargo-0.53) ;
+        ("rust-cargo" ,rust-cargo)
         ("rust-anyhow" ,rust-anyhow-1)
         ("rust-pretty-env-logger" ,rust-pretty-env-logger-0.4)
         ("rust-structopt" ,rust-structopt-0.3)
-- 
2.37.2





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

* [bug#57231] [PATCH 3/3] gnu: rust-cargo: Repare build phase.
  2022-08-15 21:14 ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) Nicolas Graves via Guix-patches via
  2022-08-15 21:14   ` [bug#57231] [PATCH 2/3] gnu: rust-cargo-0.53: Rename package to rust-cargo Nicolas Graves via Guix-patches via
@ 2022-08-15 21:14   ` Nicolas Graves via Guix-patches via
  2022-08-16 17:03   ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) ( via Guix-patches via
  2 siblings, 0 replies; 7+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-08-15 21:14 UTC (permalink / raw)
  To: 57231; +Cc: Nicolas Graves

* gnu/packages/rust-apps.scm (rust-cargo): Repare build phase.
  [inputs]: Add libgit2-1.3.
---
 gnu/packages/rust-apps.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 4d3e9cdcfb..089b3377d5 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -1618,7 +1618,7 @@ (define-public rust-cargo
     (native-inputs
      (list pkg-config))
     (inputs
-     (list curl libssh2 openssl zlib))
+     (list curl libssh2 openssl zlib libgit2-1.3))
     (home-page "https://crates.io")
     (synopsis "Package manager for Rust")
     (description "Cargo, a package manager for Rust.  This package provides
-- 
2.37.2





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

* [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io).
  2022-08-15 21:14 ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) Nicolas Graves via Guix-patches via
  2022-08-15 21:14   ` [bug#57231] [PATCH 2/3] gnu: rust-cargo-0.53: Rename package to rust-cargo Nicolas Graves via Guix-patches via
  2022-08-15 21:14   ` [bug#57231] [PATCH 3/3] gnu: rust-cargo: Repare build phase Nicolas Graves via Guix-patches via
@ 2022-08-16 17:03   ` ( via Guix-patches via
  2022-08-20 22:57     ` Nicolas Graves via Guix-patches via
  2 siblings, 1 reply; 7+ messages in thread
From: ( via Guix-patches via @ 2022-08-16 17:03 UTC (permalink / raw)
  To: Nicolas Graves, 57231

On Mon Aug 15, 2022 at 10:14 PM BST, Nicolas Graves via Guix-patches via wrote:
> * gnu/packages/rust-apps.scm (rust-cargo-0.53): …to here.

Huh? I don't think rust-cargo is actually an "app", since:

> +    (description "Cargo, a package manager for Rust.  This package provides
> +the library crate of Cargo.")

(Emphasis on the second sentence.)

    -- (




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

* [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io).
  2022-08-16 17:03   ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) ( via Guix-patches via
@ 2022-08-20 22:57     ` Nicolas Graves via Guix-patches via
       [not found]       ` <87bkqy1h4y.fsf@ngraves.fr>
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-08-20 22:57 UTC (permalink / raw)
  To: (, 57231

On 2022-08-16 18:03, ( wrote:

> Huh? I don't think rust-cargo is actually an "app"

I don't believe so, it pulls from the same crate detailed as the real
one on crates.io (https://crates.io/crates/cargo).

There might be some duplicate code here. I don't see source code in
my rust:cargo store folder, but I believe this should be the same code,
making this package unnecessary (with some work we could add rust:cargo
in inputs for rust-cargo-c, since it's the only place it's used in).

Can't delve in this next week however.

-- 
Best regards,
Nicolas Graves




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

* bug#57231: [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io).
       [not found]       ` <87bkqy1h4y.fsf@ngraves.fr>
@ 2022-09-29 13:04         ` Nicolas Graves via Guix-patches via
  0 siblings, 0 replies; 7+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-09-29 13:04 UTC (permalink / raw)
  To: (, 57231-done

> I'm closing this.
done trick error

-- 
Best regards,
Nicolas Graves




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

end of thread, other threads:[~2022-09-29 14:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-15 21:08 [bug#57231] Fix rust-cargo build Nicolas Graves via Guix-patches via
2022-08-15 21:14 ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) Nicolas Graves via Guix-patches via
2022-08-15 21:14   ` [bug#57231] [PATCH 2/3] gnu: rust-cargo-0.53: Rename package to rust-cargo Nicolas Graves via Guix-patches via
2022-08-15 21:14   ` [bug#57231] [PATCH 3/3] gnu: rust-cargo: Repare build phase Nicolas Graves via Guix-patches via
2022-08-16 17:03   ` [bug#57231] [PATCH 1/3] gnu: rust-cargo-0.53: Move to (gnu packages crates-io) ( via Guix-patches via
2022-08-20 22:57     ` Nicolas Graves via Guix-patches via
     [not found]       ` <87bkqy1h4y.fsf@ngraves.fr>
2022-09-29 13:04         ` bug#57231: " Nicolas Graves via Guix-patches via

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