all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#70674] [PATCH core-updates 0/1] Allow cargo to use custom SSL certificates
@ 2024-04-30 14:11 Jean-Baptiste Note
  2024-04-30 14:17 ` [bug#70674] [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path Jean-Baptiste Note
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 14:11 UTC (permalink / raw)
  To: 70674; +Cc: Jean-Baptiste Note, Efraim Flashner

Cargo, just like git, allows certificate validation against a customized set
of certificates. Add the required native-path for this, just like
GIT_SSL_CAINFO for git.

Jean-Baptiste Note (1):
  gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.

 gnu/packages/rust.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

-- 
2.41.0





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

* [bug#70674] [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.
  2024-04-30 14:11 [bug#70674] [PATCH core-updates 0/1] Allow cargo to use custom SSL certificates Jean-Baptiste Note
@ 2024-04-30 14:17 ` Jean-Baptiste Note
  2024-12-26 13:43   ` bug#70674: " Efraim Flashner
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 14:17 UTC (permalink / raw)
  To: 70674; +Cc: Jean-Baptiste Note, Efraim Flashner

* gnu/packages/rust.scm (rust-1.55): Add CARGO_HTTP_CAINFO native-search-path
so that Cargo honors custom certificates (a la GIT_SSL_CAINFO).
---
 gnu/packages/rust.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 60aa9b1ea0..aaba458933 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -539,9 +539,18 @@ (define-public rust-1.55
     (inputs
      `(("llvm" ,llvm-13)
        ("openssl" ,openssl)))
-    ;; rustc invokes gcc, so we need to set its search paths accordingly.
     (native-search-paths
-      %gcc-search-paths)
+     (cons
+      ;; For HTTPS access, Cargo reads from a single-file certificate
+      ;; specified with $CARGO_HTTP_CAINFO. See
+      ;; https://doc.rust-lang.org/cargo/reference/environment-variables.html
+      (search-path-specification
+       (variable "CARGO_HTTP_CAINFO")
+       (file-type 'regular)
+       (separator #f)              ;single entry
+       (files '("etc/ssl/certs/ca-certificates.crt")))
+      ;; rustc invokes gcc, so we need to set its search paths accordingly.
+      %gcc-search-paths))
     ;; Limit this to systems where the final rust compiler builds successfully.
     (supported-systems '("x86_64-linux" "aarch64-linux" "riscv64-linux"))
     (synopsis "Compiler for the Rust programming language")
-- 
2.41.0





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

* bug#70674: [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.
  2024-04-30 14:17 ` [bug#70674] [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path Jean-Baptiste Note
@ 2024-12-26 13:43   ` Efraim Flashner
  0 siblings, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2024-12-26 13:43 UTC (permalink / raw)
  To: Jean-Baptiste Note; +Cc: 70674-done

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

Better late than never! I've moved it from rust-1.55 to the last rust
package. I pushed it to the rust-team branch so it wouldn't cause a
world rebuild on master.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

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

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

end of thread, other threads:[~2024-12-26 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30 14:11 [bug#70674] [PATCH core-updates 0/1] Allow cargo to use custom SSL certificates Jean-Baptiste Note
2024-04-30 14:17 ` [bug#70674] [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path Jean-Baptiste Note
2024-12-26 13:43   ` bug#70674: " Efraim Flashner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.