From patchwork Sun Feb 21 07:51:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1442752 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=cScrCYup; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DjyFW2zcVz9sRf for ; Sun, 21 Feb 2021 18:51:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A9D006F509 for ; Sun, 21 Feb 2021 07:51:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0J5Hrp3law4K for ; Sun, 21 Feb 2021 07:51:51 +0000 (UTC) Received: by smtp3.osuosl.org (Postfix, from userid 1001) id A4F686F4DC; Sun, 21 Feb 2021 07:51:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 0010B6F48D; Sun, 21 Feb 2021 07:51:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1840A1BF3D6 for ; Sun, 21 Feb 2021 07:51:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id F3657835CA for ; Sun, 21 Feb 2021 07:51:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cG3Htk0hBdk6 for ; Sun, 21 Feb 2021 07:51:40 +0000 (UTC) Received: by smtp1.osuosl.org (Postfix, from userid 1001) id 34050835ED; Sun, 21 Feb 2021 07:51:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by smtp1.osuosl.org (Postfix) with ESMTPS id CEB88835CA for ; Sun, 21 Feb 2021 07:51:38 +0000 (UTC) Received: by mail-wr1-f41.google.com with SMTP id n8so15585722wrm.10 for ; Sat, 20 Feb 2021 23:51:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ZoXQQIsfITWn2ZDk9L44r6AGQE7gD15RjCNltXHd7c=; b=cScrCYupmM6BD+orAbKhA5BGDfTDeIQLxnwl0pcYJmnWcJlsxxbyDo/7jSchxVGoyI /SJbIxGCxO6pArX1nmp/eHPrQJU3xjytWGpAxfZT2N3M8OY/d9b8zzCtoKOoW5AJbEV8 6anY4jP8GPWrNdlc6OIhTAhJ7uiLMa6M2gz4oxXtXqTPc0yGTc4TIRxj69DDMwdOBCz3 Mg7lKLa4kxzG8FujM+t1XHVL/pMdFzqMJgMVwSmtcPx2CtadZf6t2M4quLyUji+dbfNt WX5Eu1NeNqwI/a636jrXPz208NU3NP4yK+zFl9wLX4FDG1aOT9z8UmZz4xtcBWA8m1nb TQ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ZoXQQIsfITWn2ZDk9L44r6AGQE7gD15RjCNltXHd7c=; b=MJjvEc72nLE/s/v0/pQtK81o8kVuaRijmROjS7zDNVoHp2YAjFiqULXuRIPj4Is4kC daG6K/wX1xMfP+KoGmylpMxk0lyFwo9+k6qYGHRUW3dovyQKAbK7PteObY7CU4PYlgQB /b4SNfbvy5QU3e2zoB8mUlKOBYLkAYIvelIy4zXeA/fG66WOr5WR573dWuhLeDVQZkbB RneVw9ynMckCwfbBMJJ3GiJC/rxoI5dWv0wZ3xDcrjBrfxhUWPVYmdjNtTff7efTQePv 2MGPlESuarYlWf7qRqmCNBFRcbCZTKsCEH8gtPRN8kTAJYlca/quDChg8hOScpPHHSfn r85g== X-Gm-Message-State: AOAM530EL5egg20OWb1EwtGxBXDo6jmlGzcBYLL8E3tAfK96MhXwo3UC iZ0TRnwHFDE8Oo7SRZoq7QMIWViAeEQ= X-Google-Smtp-Source: ABdhPJzX42h2vSUHi6vpWdt2TOCu9/Shid6kLW4EcaZZeP2B8cA1WurdwD4orfYm4UwD0FuHJtYs4g== X-Received: by 2002:a5d:62d1:: with SMTP id o17mr16791170wrv.111.1613893896707; Sat, 20 Feb 2021 23:51:36 -0800 (PST) Received: from pc-140.home ([2a01:cb15:81d3:300:7285:c2ff:fea6:cc85]) by smtp.gmail.com with ESMTPSA id m6sm124938wrv.73.2021.02.20.23.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Feb 2021 23:51:36 -0800 (PST) From: guillaume.bressaix@gmail.com To: buildroot@busybox.net Date: Sun, 21 Feb 2021 08:51:34 +0100 Message-Id: <20210221075134.11739-1-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/rustc: allow cargo sub packages to download using 'git' X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Guillaume W. Bres" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Guillaume W. Bres" Adding this simple command to the general cargo configuration will allow sub packages (with their own cargo.toml file) to resolve dependencies using 'git'. Without this, we only support builtin packages or manually downloaded packages refered to with a local full path. Signed-off-by: Guillaume W. Bres --- package/rustc/cargo-config.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/rustc/cargo-config.in b/package/rustc/cargo-config.in index 47fad026be..be4c401f97 100644 --- a/package/rustc/cargo-config.in +++ b/package/rustc/cargo-config.in @@ -1,2 +1,5 @@ [target.@RUSTC_TARGET_NAME@] linker = "@CROSS_PREFIX@gcc" + +[net] +git-fetch-with-cli = true