From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ABLqF0ZqfWCUFAEAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 13:32:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aObAE0ZqfWA6NwAA1q6Kng (envelope-from ) for ; Mon, 19 Apr 2021 11:32:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E60FB25903 for ; Mon, 19 Apr 2021 13:32:21 +0200 (CEST) Received: from localhost ([::1]:39574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYS8b-0002ZE-4V for larch@yhetil.org; Mon, 19 Apr 2021 07:32:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYS8L-0002Xl-B3 for guix-patches@gnu.org; Mon, 19 Apr 2021 07:32:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYS8I-0001GU-Gr for guix-patches@gnu.org; Mon, 19 Apr 2021 07:32:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYS8I-0001rV-EQ for guix-patches@gnu.org; Mon, 19 Apr 2021 07:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47890] [PATCH][CORE-UPDATES] gnu: rust: Re-use llvm versions. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Apr 2021 11:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47890 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47890@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16188318724573 (code B ref -1); Mon, 19 Apr 2021 11:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Apr 2021 11:31:12 +0000 Received: from localhost ([127.0.0.1]:48555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYS7O-00015x-Ga for submit@debbugs.gnu.org; Mon, 19 Apr 2021 07:31:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:39872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYS7L-000132-MA for submit@debbugs.gnu.org; Mon, 19 Apr 2021 07:31:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYS7L-0001zg-G9 for guix-patches@gnu.org; Mon, 19 Apr 2021 07:31:03 -0400 Received: from flashner.co.il ([178.62.234.194]:54120) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYS7J-0000HL-9C for guix-patches@gnu.org; Mon, 19 Apr 2021 07:31:03 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id 9732640363; Mon, 19 Apr 2021 11:30:28 +0000 (UTC) From: Efraim Flashner Date: Mon, 19 Apr 2021 14:29:41 +0300 Message-Id: <20210419112941.10155-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618831942; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3HA2qvIFEUzYL/Es5T31zCVZIHF1Dn5TPj1vRfsoMIQ=; b=PFLfmlk6i1gPEiG+fqzIWTLUdvdemP9D7O2NKSxWLjKb5GcevQXAZ5RduCACynP4CJLEwv VelMckUa4Ls5TBSOTGskuJXv6SBzzfIIG7EbZuRBXxIJx7HcvYVMza2rS+iz4IkIKpDJ2L blPG2f+U040iKDXcJReWYf11hfe5fvI2uOjBEW6cxm7w+2cIg6cxW9ERF2pLXzGlPBdAAS U87pD9j5ZLy40gTNXKcX9QqylZ06m6GpxDERnOnQgFfre2BfvEmBPD2aYPRse3qZTCVXyW W3IMa55btq2EUjFidsfmztBHmtcCGPn5mNABxIHnmbGXMX8J3tH/GDbrkkYeBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618831942; a=rsa-sha256; cv=none; b=UR/4pZfJQnKzMDsWZrHgYoiWDCxNgrmVlq8haRBwlH0Uuzknc9CdBSthNfc+u6ZTOQMpOj tApRnCkUrqVDmy2PwB/ysXHRzi969VrUC3pkgiFDWmiLYg3+J2p0OvbT/8OE7Sd5okC0ff 19bGahEyA3jYvy1XfiuesnbUxIm9hVsYFLMA5rWs9BZHPJ+W+3Eee9n0Xvu+5VgOelG0X2 CbYtzse+0jaeO8JCihi2f/X3jpe4OPMArH7ciMhH19tJvDvtkftXZiic2rI38jTrYD4du5 Tsrq1I1EQDuRgFY2+5oboJezmxvhb+YfNhsJtMwEFAprzQgJfnPZUwPJL5UgEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E60FB25903 X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: TBYEWQDPO5AP * gnu/packages/rust.scm (rust-1.35)[inputs]: Don't replace llvm. (rust-1.38)[inputs]: Same. (rust-1.44)[inputs]: Switch to llvm-10. (rust-1.45)[inputs]: Don't replace llvm. (rust-1.47)[inputs]: Same. --- gnu/packages/rust.scm | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 162371026c..cc056456e9 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2016 Nikita ;;; Copyright © 2017 Ben Woodcroft ;;; Copyright © 2017, 2018 Nikolai Merinov -;;; Copyright © 2017, 2019, 2020 Efraim Flashner +;;; Copyright © 2017, 2019, 2020, 2021 Efraim Flashner ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Danny Milosavljevic ;;; Copyright © 2019 Ivan Petkov @@ -157,6 +157,7 @@ `(("libcurl" ,curl) ("libssh2" ,libssh2) ;; Use llvm-7, which enables rust to be built reproducibly. + ;; Versions newer than 7 fail to compile. ("llvm" ,llvm-7) ("openssl" ,openssl) ("zlib" ,zlib))) @@ -546,8 +547,6 @@ safety and thread safety guarantees.") "0bbizy6b7002v1rdhrxrf5gijclbyizdhkglhp81ib3bf5x66kas"))) (package (inherit base-rust) - (inputs - (alist-replace "llvm" (list llvm-8) (package-inputs base-rust))) (arguments (substitute-keyword-arguments (package-arguments base-rust) ((#:phases phases) @@ -575,13 +574,8 @@ safety and thread safety guarantees.") (setenv "CARGO_HOME" cargo-home))))))))))) (define rust-1.38 - (let ((base-rust (rust-bootstrapped-package - rust-1.37 "1.38.0" - "101dlpsfkq67p0hbwx4acqq6n90dj4bbprndizpgh1kigk566hk4"))) - (package - (inherit base-rust) - (inputs - (alist-replace "llvm" (list llvm-9) (package-inputs base-rust)))))) + (rust-bootstrapped-package + rust-1.37 "1.38.0" "101dlpsfkq67p0hbwx4acqq6n90dj4bbprndizpgh1kigk566hk4")) (define rust-1.39 (let ((base-rust (rust-bootstrapped-package @@ -649,9 +643,15 @@ safety and thread safety guarantees.") (rust-bootstrapped-package rust-1.42 "1.43.0" "18akhk0wz1my6y9vhardriy2ysc482z0fnjdcgs9gy59kmnarxkm")) +;; This version needs llvm >= 8.0 and NOT 11 (define rust-1.44 - (rust-bootstrapped-package - rust-1.43 "1.44.1" "0ww4z2v3gxgn3zddqzwqya1gln04p91ykbrflnpdbmcd575n8bky")) + (let ((base-rust (rust-bootstrapped-package + rust-1.43 "1.44.1" + "0ww4z2v3gxgn3zddqzwqya1gln04p91ykbrflnpdbmcd575n8bky"))) + (package + (inherit base-rust) + (inputs + (alist-replace "llvm" (list llvm-10) (package-inputs base-rust)))))) (define rust-1.45 (let ((base-rust (rust-bootstrapped-package @@ -659,8 +659,6 @@ safety and thread safety guarantees.") "0273a1g3f59plyi1n0azf21qjzwml1yqdnj5z472crz37qggr8xp"))) (package (inherit base-rust) - (inputs - (alist-replace "llvm" (list llvm-10) (package-inputs base-rust))) (arguments (substitute-keyword-arguments (package-arguments base-rust) ((#:phases phases) @@ -718,14 +716,9 @@ safety and thread safety guarantees.") (format #f "prefix = ~s" (assoc-ref outputs "rustfmt")))) (invoke "./x.py" "install" "rustfmt")))))))))) -(define-public rust-1.47 - (let ((base-rust (rust-bootstrapped-package - rust-1.46 "1.47.0" - "07fqd2vp7cf1ka3hr207dnnz93ymxml4935vp74g4is79h3dz19i"))) - (package - (inherit base-rust) - (inputs - (alist-replace "llvm" (list llvm-11) (package-inputs base-rust)))))) +(define rust-1.47 + (rust-bootstrapped-package + rust-1.46 "1.47.0" "07fqd2vp7cf1ka3hr207dnnz93ymxml4935vp74g4is79h3dz19i")) (define rust-1.48 (rust-bootstrapped-package base-commit: b66269db5f91ea79524505fdad018aac2055bd99 -- 2.31.1