From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wG4vEBBGOV+oMQAA0tVLHw (envelope-from ) for ; Sun, 16 Aug 2020 14:43:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YBYFDBBGOV+NBAAA1q6Kng (envelope-from ) for ; Sun, 16 Aug 2020 14:43:28 +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 AED359407C5 for ; Sun, 16 Aug 2020 14:43:27 +0000 (UTC) Received: from localhost ([::1]:57918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7Jsc-0005LT-DH for larch@yhetil.org; Sun, 16 Aug 2020 10:43:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7JsE-0005JQ-FA for guix-patches@gnu.org; Sun, 16 Aug 2020 10:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7JsE-0005Jz-4l for guix-patches@gnu.org; Sun, 16 Aug 2020 10:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k7JsE-0000Ek-3E for guix-patches@gnu.org; Sun, 16 Aug 2020 10:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Aug 2020 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42888 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Langlois Cc: 42888@debbugs.gnu.org X-Debbugs-Original-Cc: 42888@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by 42888-submit@debbugs.gnu.org id=B42888.1597588970870 (code B ref 42888); Sun, 16 Aug 2020 14:43:02 +0000 Received: (at 42888) by debbugs.gnu.org; 16 Aug 2020 14:42:50 +0000 Received: from localhost ([127.0.0.1]:58130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7Js1-0000Dy-Q3 for submit@debbugs.gnu.org; Sun, 16 Aug 2020 10:42:50 -0400 Received: from mout.gmx.net ([212.227.15.19]:50013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7Jry-0000Dj-U3 for 42888@debbugs.gnu.org; Sun, 16 Aug 2020 10:42:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597588960; bh=VlRBQs0f0XiHi8VwR2s6/L5fFXPX78q2Pd//6epk7jQ=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=W9HUsh3TvbqewUzmmqenqU0qfKxvItLgZxDlTdziy3l2JompI7fgIxYiyiUVzwqeR Ply50sBD9jeu1YDlnAmtA0wwIBwpPl34NScFHRDhu/JVWuHWj/1Vmih2f7fUcy1J92 6pWJGMCKkSQKtsq+oLBYrUnDwzRq0EAh7P3jClNA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MmUHj-1kXc3t2AhV-00iR4g; Sun, 16 Aug 2020 16:42:40 +0200 References: <87d03qptmv.fsf@gmx.com> User-agent: mu4e 1.4.13; emacs 26.3 From: Pierre Langlois In-reply-to: <87d03qptmv.fsf@gmx.com> Date: Sun, 16 Aug 2020 15:42:38 +0100 Message-ID: <875z9ips81.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:dRIYJDfRuGJrLsWL3mO8WL4AgeBUApDJpLLNGeXjtADrVmBxHny +OyqKyWfhUFHL1+aOMUnLsFLFkcgH9qNwO94y7/Y0+T35JRiUSAf7po/4790LAomX3+GG6M KFVgOeaGIadhqqEhqCT0CLO5340QP19FAfaXg9RrrlHcuOQ0QJoM5T2CiQXQrrgj4Hqye7P 4Qm79YPmdizn3clgC0BiA== X-UI-Out-Filterresults: notjunk:1;V03:K0:5lYAOBtstdI=:TOHGayriYe/jxYCyvfDYRN clYoMTJgu8VcYnX47SBVJHR7uG9OMF/o4DGcZn+ZMATBNZLNuB7z3LI52k6z9BfFOAWyb1fWn axkfhUbFuQ6nhjQIOlEBuFzZQDrIBkFKR7rZZOL5kvO3CxIzl01LxN1xoZW7wHD/XzJsHnY7D myUHZyudOZrJ9458UHFxVGziXbruImOCzXfGsQmjkOjCdkUIshMRpYMaAUee3DfXc3+gnczl4 h8/ORWVmFit5+BbfVQpMp+zwcbXnoqUJ+S6/3Y4zfBHQWoIWfqDq2D5+5blh8HJuy6RsTJAcv cA3JHoXQrT9JH9U0tWI13Qvwebjpu4PZbTZWmnsGztZl5BUjb3JW7TCXlaEbgbbOXkRphI3XL 580YS2tfTEOZCpFqKX/onFLyl3Nwo2n3pomS1SKZdfwIWTdrFQ1jrMTThC6RBIfzJB2kyBe4S j6scvFOkvTJt8IsMmSiwSKfhrG5G/dguP9CDw9QprSbHnPgG0IV1L96Ut6+s6/+PnMO++kDqO sXvAEpC49TGR1GXRhSxBKqTSfUZ/pRJ6QQhXqjOpNJ1SZg4I4LHmCP61KfjHb0Uxhvl6JHNaL kkkAEWoAOQjQM/6AKSpzYhQAoqHR22G7+WdV2R92a/rKKbdbNiTJUqbfxBW8zqD1Voj0KGHEV IcjpZuP4Spm8G72Aw7Tt3TOXyg+Dl3l7GO0Xv/jfudI7CTjNlED104Y+k5rJQDNUiJATjMHkV cKQSAqTg2gWULR+KiPJpnpgupGtO0JYfV0d+VsYrre8akUlgb4pH07WO983al+z9wrIt8BHPm glrHGdLWq0zPdS7fCrDXYwmzd1Hk6zOYz+VGgQ+ZYEObj89lsLS3HFdrvd/ofVOGbpFsvMcFj gxn2d+NZw9ruUHJZvdsP4UD6NPAZS/JGN+PABXCqKuypAPVWXBzX0VGJCXIv2t746b20iItJY 6WeA8VixuT4AchVPVnHRYJA+H+ZoqBwUqudhPXcmeJRi/4u2AJ1glAVBjy4e5yW0JERBf7SIQ /6IIbPSPk1z8c6KXSp/EDEJA106T96IIcyC1Do+EWgqmQqjogjrW6aWzuaUEUVv7RqoNqHNCM wW+CIOvgPYp1LvHahx5Icp6UT1tOsTV3N3UAFK+VZqiqmkiXSobQB78vtFTFgpwQOtWXRICBT ZbrjqDaMJyGaeAggRt6agU8mGF1QOgexJGEfKBXSP5kbKBLG+M1QvmCiWCZNb2KqkTawftw8p NV9V9lnUbMaPYZrJvHYQbfnszyJ+1Lc8oiYiLZw== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmx.net header.s=badeba3b8450 header.b=W9HUsh3T; 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-Spam-Score: -0.01 X-TUID: o0eaCimya80t --=-=-= Content-Type: text/plain Pierre Langlois writes: > Hello Guix! > > In an optimistic attempt to eventually have Icecat on a Pinebook Pro, I > thought I'd try and get rust building on aarch64. Here's a fix for the > post-install phase that had an x86 triplet hardcoded. With this we're > able to start off the bootstrap chain! > > That being said, each step takes ~5 hours on this machine so this is > going to take a while :-), it's currently working on 1.23. > > So, I suppose this should go into either core-updates or staging? WDYT? Whoops, I forgot the copyright line on that file. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-rust-Fix-install-phase-for-non-x86_64-platforms.patch Content-Transfer-Encoding: quoted-printable >From 199c76dc3d92056881fbebc4d1884b0283ed056b Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sun, 16 Aug 2020 12:17:18 +0100 Subject: [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. * gnu/packages/rust.scm (rust-1.20)[arguments]: Replace hardcoded x86_64 triplet with nix-system->gnu-triplet-for-rust in 'delete-install-logs phase. --- gnu/packages/rust.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 778aeaab05..17a99aed37 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -9,6 +9,7 @@ ;;; Copyright =C2=A9 2018 Danny Milosavljevic ;;; Copyright =C2=A9 2019 Ivan Petkov ;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka +;;; Copyright =C2=A9 2020 Pierre Langlois ;;; ;;; This file is part of GNU Guix. ;;; @@ -612,9 +613,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\" (cargo-out (assoc-ref outputs "cargo"))) (for-each (lambda (file) (delete-manifest-file out file)) - '("install.log" + `("install.log" "manifest-rust-docs" - "manifest-rust-std-x86_64-unknown-linux-gnu" + ,,(string-append "manifest-rust-std-" + (nix-system->gnu-triplet-for-rust)) "manifest-rustc")) (for-each (lambda (file) (delete-manifest-file cargo-out file)) --=20 2.28.0 --=-=-=--