all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: herman_rimm via Guix-patches via <guix-patches@gnu.org>
To: 66564@debbugs.gnu.org
Subject: [bug#66564] [PATCH rust-team] gnu: Add rust-1.73.
Date: Sun, 15 Oct 2023 15:33:24 +0000	[thread overview]
Message-ID: <kSr9PCClvC5o51UUK473cXUYhiTimgV6gDGP-wFA2YGVd5sgFHGT_jJVn8I-VYF3gOrBQy2N1MLzeupYegvoJq4CEkZXhET89iAw_B9NUpc=@protonmail.com> (raw)

From e9807f12b18ae7405fb63002d4f3f7b5b500b6f7 Mon Sep 17 00:00:00 2001
From: Herman Rimm <herman_rimm@protonmail.com>
Date: Sun, 15 Oct 2023 15:10:26 +0200
Subject: [PATCH rust-team] gnu: Add rust-1.73.

* gnu/packages/rust.scm (rust-1.73): New variable.
---
 gnu/packages/rust.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 5d81655423..b50d2fdf24 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2022 Jim Newsome <jnewsome@torproject.org>
 ;;; Copyright © 2022 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2023 Fries <fries1234@protonmail.com>
+;;; Copyright © 2023 Herman Rimm <herman_rimm@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -787,6 +788,28 @@ (define rust-1.72
                  (string-append "rustix = { version = \"=0.37.11\","
                                 " features = [\"use-libc\"] }"))))))))))
 
+(define rust-1.73
+  (let ((base-rust (rust-bootstrapped-package rust-1.72 "1.73.0"
+                    "0fmvn7vg3qg9xprgfwv10g3ygy8i4j4bkcxcr1xdy89d3xnjxmln")))
+    (package
+      (inherit base-rust)
+      (source
+       (origin
+         (inherit (package-source base-rust))
+         (snippet '(begin
+                     (for-each delete-file-recursively
+                               '("src/llvm-project"
+                                 "vendor/tikv-jemalloc-sys/jemalloc"))
+                     ;; Remove vendored dynamically linked libraries.
+                     ;; find . -not -type d -executable -exec file {} \+ | grep ELF
+                     ;; Also remove the bundled (mostly Windows) libraries.
+                     (for-each delete-file
+                               (find-files "vendor" "\\.(a|dll|exe|lib)$"))
+                     ;; Adjust vendored dependency to explicitly use rustix with libc backend.
+                     (substitute* "vendor/tempfile-3.6.0/Cargo.toml"
+                       (("features = \\[\"fs\"" all)
+                        (string-append all ", \"use-libc\""))))))))))
+
 (define (make-ignore-test-list strs)
   "Function to make creating a list to ignore tests a bit easier."
   (map (lambda (str)
-- 
2.41.0






             reply	other threads:[~2023-10-15 18:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-15 15:33 herman_rimm via Guix-patches via [this message]
2023-10-23  6:59 ` bug#66564: [PATCH rust-team] gnu: Add rust-1.73 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='kSr9PCClvC5o51UUK473cXUYhiTimgV6gDGP-wFA2YGVd5sgFHGT_jJVn8I-VYF3gOrBQy2N1MLzeupYegvoJq4CEkZXhET89iAw_B9NUpc=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=66564@debbugs.gnu.org \
    --cc=herman_rimm@protonmail.com \
    /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.