GNU bug report logs - #72327
[PATCH] gnu: Add rust-1.80.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Jean SIMARD <woshilapin@HIDDEN>; Keywords: patch; dated Sat, 27 Jul 2024 21:21:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added indication that bug 72327 blocks73154 Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Jul 2024 21:20:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 27 17:20:51 2024
Received: from localhost ([127.0.0.1]:42493 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sXoqR-0008JT-G7
	for submit <at> debbugs.gnu.org; Sat, 27 Jul 2024 17:20:51 -0400
Received: from lists.gnu.org ([209.51.188.17]:58598)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <woshilapin@HIDDEN>) id 1sXoqP-0008JL-44
 for submit <at> debbugs.gnu.org; Sat, 27 Jul 2024 17:20:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <woshilapin@HIDDEN>)
 id 1sXoqD-0006rY-4L
 for guix-patches@HIDDEN; Sat, 27 Jul 2024 17:20:38 -0400
Received: from mail-4018.proton.ch ([185.70.40.18])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <woshilapin@HIDDEN>)
 id 1sXoqA-0003rK-Iw
 for guix-patches@HIDDEN; Sat, 27 Jul 2024 17:20:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuziwo.info;
 s=protonmail2; t=1722115226; x=1722374426;
 bh=0MdnwipW+quQv8t1w/jsoggqu9T5WcqxuDqT1rhJy34=;
 h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
 Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
 b=VMkIsYlGhXaRgqiVfzumdQXh72IqVmJbXPWeRvuADmCtV9mRI+5jp/9oKCf/qWrXz
 F31WcuDr6vhlRS7sUReYG6R+NOYvEnZAUagcZNZx/6eO0TOHv4+SdnJHo+B/Hoc/Qf
 5w9zcCWYSH64DipctsHZlEQbXuv1804gqOjv+E8E1zQlocGBBjnSnf0oT8UEUK4gzo
 1U4RBxPtb+Hj/B+Lf/9KLtJqkNGkowamSdu7wx6KfG6o3sylXQ7nrmYN3qCJVgGAdB
 +7Bm3GlgG1aMktGDn6NuQM6T2rUzOHWplAInNPcbc1t4Da+aBGpeBWK1ppmljD7LhW
 /XMH5gJvR6Pyg==
Date: Sat, 27 Jul 2024 21:20:20 +0000
To: guix-patches@HIDDEN
From: Jean SIMARD <woshilapin@HIDDEN>
Subject: [PATCH] gnu: Add rust-1.80.
Message-ID: <d410b2800c2bd4ed5a8aaf58f22db9d4e80b04bf.1722114999.git.woshilapin@HIDDEN>
Feedback-ID: 30348956:user:proton
X-Pm-Message-ID: 6ae0c769ea5b21ed68a45fe5caaf6de505acc0ed
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.70.40.18; envelope-from=woshilapin@HIDDEN;
 helo=mail-4018.proton.ch
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: Jean SIMARD <woshilapin@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

* gnu/packages/rust.scm (rust-1.80): New variable.

Change-Id: I9ab121ebb83bb5fca38c5dc530ae34cd50734017
---
Last version of rust 1.80.0 have been released on the 25th of July (see
https://blog.rust-lang.org/2024/07/25/Rust-1.80.0.html).

I've been able to test the resulting package by building a variant
of `ripgrep`, only customizing the `cargo-build-system` argument
with `#:rust rust-1.80` and running
`./pre-inst-env guix build --file=3Dripgrep.scm`.  The output binary of
the build, `rg` runs just fine.

 gnu/packages/rust.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 465899fe9d..58b1dcd93a 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1013,6 +1013,34 @@ (define-public rust-1.79
                (("features =3D \\[\"fs\"" all)
                 (string-append all ", \"use-libc\""))))))))))
=20
+(define-public rust-1.80
+  (let ((base-rust (rust-bootstrapped-package rust-1.79 "1.80.0"
+                    "0wnn44spsy1gnbwxn4gzbnrgkxah9nrgfxj5mqn6n3r37wcnqq3g"=
)))
+    (package
+      (inherit base-rust)
+      (source
+       (origin
+         (inherit (package-source base-rust))
+         (snippet
+          '(begin
+             (for-each delete-file-recursively
+                       '("src/llvm-project"
+                         "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc=
"
+                         "vendor/jemalloc-sys-0.5.4+5.3.0-patched/jemalloc=
"
+                         "vendor/openssl-src-111.28.2+1.1.1w/openssl"
+                         "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jem=
alloc"))
+             ;; 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 l=
ibc backend.
+             (substitute* '("vendor/tempfile-3.4.0/Cargo.toml"
+                            "vendor/tempfile-3.7.1/Cargo.toml"
+                            "vendor/tempfile-3.10.1/Cargo.toml")
+               (("features =3D \\[\"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)

base-commit: 46a64c7fdd057283063aae6df058579bb07c4b6a
prerequisite-patch-id: 4f98409565d53cc8795ab7f4a1618cc4224d8105
prerequisite-patch-id: 4d4336c9b775dc61815bd427718da4ba05e207df
prerequisite-patch-id: 1033e26576f3c3669f8511217b73e9aaf29b6afa
prerequisite-patch-id: 651aa8b2cf8b006c08abfc44a190ee3197d06e95
prerequisite-patch-id: 8f846f42eb6a122e494da39e564be336a8ab90bc
prerequisite-patch-id: 0ede82ec9b487cab87b18c5631900629e9228f36
prerequisite-patch-id: 64e12c5820833a1ba2b8fce6095c03b65b7ecdd6
--=20
2.45.2






Acknowledgement sent to Jean SIMARD <woshilapin@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#72327; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.