From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UOY+DXYU3F+MagAA0tVLHw (envelope-from ) for ; Fri, 18 Dec 2020 02:31:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4OT/CHYU3F/qNgAAbx9fmQ (envelope-from ) for ; Fri, 18 Dec 2020 02:31:18 +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 D14C09402D4 for ; Fri, 18 Dec 2020 02:31:17 +0000 (UTC) Received: from localhost ([::1]:54112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kq5Y4-0006ZT-Q1 for larch@yhetil.org; Thu, 17 Dec 2020 21:31:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kq5Vu-0005Fl-UL for guix-patches@gnu.org; Thu, 17 Dec 2020 21:29:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kq5Vu-0005IA-Mp for guix-patches@gnu.org; Thu, 17 Dec 2020 21:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kq5Vu-0003ez-K2 for guix-patches@gnu.org; Thu, 17 Dec 2020 21:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45307] [PATCH]: build-system/cargo: Use argument "--no-track" in "cargo install" Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Dec 2020 02:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45307 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45307@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160825848714001 (code B ref -1); Fri, 18 Dec 2020 02:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2020 02:28:07 +0000 Received: from localhost ([127.0.0.1]:37390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kq5V1-0003dk-G3 for submit@debbugs.gnu.org; Thu, 17 Dec 2020 21:28:07 -0500 Received: from lists.gnu.org ([209.51.188.17]:43420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kq5Uy-0003dc-J2 for submit@debbugs.gnu.org; Thu, 17 Dec 2020 21:28:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kq5Ux-0004Rh-Dd for guix-patches@gnu.org; Thu, 17 Dec 2020 21:28:04 -0500 Received: from mail-m974.mail.163.com ([123.126.97.4]:49988) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kq5Us-0005DY-Ah for guix-patches@gnu.org; Thu, 17 Dec 2020 21:28:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=Q4TKY EkNHxJDYzE64NM+WcZ4vf89GUc04VnrnufF1NY=; b=FsZSPJZJs6rXYb95xLVYl 7fS8uRlk/zgO7AMA/x3gLR0OLDzEUkFqD0K7Ojo1EXnGmacpsMsfraq4lMQd0fHR g9m5NSgH3wad6VHMlhzIMK4cYkvVsgWVWfB4Z2oMAOMLc6rv/CwNDx/a3B44sEbA v6zUOhtt0m7OBbaYk7L05Q= Received: from asus-laptop (unknown [27.39.89.162]) by smtp4 (Coremail) with SMTP id HNxpCgD3wEGhE9xfA5urcw--.27202S2; Fri, 18 Dec 2020 10:27:46 +0800 (CST) User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao Date: Fri, 18 Dec 2020 10:27:39 +0800 Message-ID: <86h7oj4zms.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: HNxpCgD3wEGhE9xfA5urcw--.27202S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU5E__DUUUU X-Originating-IP: [27.39.89.162] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbB8RD+r12MYUBkaAABsN Received-SPF: pass client-ip=123.126.97.4; envelope-from=all_but_last@163.com; helo=mail-m974.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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 X-Migadu-Spam-Score: -3.32 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=163.com header.s=s110527 header.b=FsZSPJZJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=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: D14C09402D4 X-Spam-Score: -3.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: cCmsXUAdi69u --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain After we update rust to rust-1.45, cargo install now create .crates2.json instead of .crates.toml. So the hack we use in c1cc0c4865a8bfff43c5c9bd6ae8dcadb061c8a0 doesn't work. I checked the ArchLinux Rust packaging guideline and found that we should use --no-track in "cargo install" to prevent cargo install these files to prefix. --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIsEARYIADMWIQTUepyLKuOQW1Y9kTW+QrNSqfaCHwUCX9wTmxUcYWxsX2J1dF9s YXN0QDE2My5jb20ACgkQvkKzUqn2gh9kqgD9FLW7CoS1GtfRuyh3Jxe0SogGP83j CvPxrlLMmKwYIuAA/2zeQ8yiEx5lmzXiC5sBRuSN5MgtDaB6jNguowuvBOEA =hdbA -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-build-system-cargo-Use-argument-no-track-in-cargo-in.patch >From fadf6149f998758c1d663d3dbe1c6fe8a85e5700 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Fri, 18 Dec 2020 10:13:48 +0800 Subject: [PATCH] build-system/cargo: Use argument "--no-track" in "cargo install" Prevent cargo install .crates.toml or .crates2.json to prefix. * guix/build/cargo-build-system(install): Add argument "--no-track" in "cargo install". Remove stale hack. --- guix/build/cargo-build-system.scm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index c7beffc6e4..1d21b33895 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -183,13 +183,9 @@ directory = '" port) ;; otherwise cargo will raise an error. (or skip-build? (not (has-executable-target?)) - (invoke "cargo" "install" "--path" "." "--root" out + (invoke "cargo" "install" "--no-track" "--path" "." "--root" out "--features" (string-join features))) - ;; This is a file which we definitely don't need installed. - (when (file-exists? (string-append out "/.crates.toml")) - (delete-file (string-append out "/.crates.toml"))) - #t)) (define %standard-phases -- 2.29.2 --=-=-= Content-Type: text/plain -- Retrieve my PGP public key: gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F Zihao --=-=-=--