From: Jean-Baptiste Note <jean-baptiste.note@m4x.org>
To: 70674@debbugs.gnu.org
Cc: Jean-Baptiste Note <jean-baptiste.note@m4x.org>,
Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#70674] [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.
Date: Tue, 30 Apr 2024 14:17:49 +0000 [thread overview]
Message-ID: <2fc16ba2adb60b61fba0ebc7bd76ceac2da229e5.1714485108.git.jean-baptiste.note@m4x.org> (raw)
In-Reply-To: <cover.1714485108.git.jean-baptiste.note@m4x.org>
* 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
next prev parent reply other threads:[~2024-04-30 14:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2024-12-26 13:43 ` bug#70674: [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path Efraim Flashner
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2fc16ba2adb60b61fba0ebc7bd76ceac2da229e5.1714485108.git.jean-baptiste.note@m4x.org \
--to=jean-baptiste.note@m4x.org \
--cc=70674@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
/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 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.