Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1235093/?format=api
{ "id": 1235093, "url": "http://patchwork.ozlabs.org/api/patches/1235093/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20200207180829.165689-2-arnout@mind.be/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api", "name": "Buildroot development", "link_name": "buildroot", "list_id": "buildroot.buildroot.org", "list_email": "buildroot@buildroot.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20200207180829.165689-2-arnout@mind.be>", "list_archive_url": null, "date": "2020-02-07T18:08:20", "name": "[v3,01/10] package/rustc: install cargo config as toolchain post-install hook", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "c8d3f9551c529f7400818769e1f3864c5dbd64ec", "submitter": { "id": 11809, "url": "http://patchwork.ozlabs.org/api/people/11809/?format=api", "name": "Arnout Vandecappelle", "email": "arnout@mind.be" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20200207180829.165689-2-arnout@mind.be/mbox/", "series": [ { "id": 157387, "url": "http://patchwork.ozlabs.org/api/series/157387/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=157387", "date": "2020-02-07T18:08:19", "name": "Merge rust and cargo", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/157387/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1235093/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1235093/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<buildroot-bounces@busybox.net>", "X-Original-To": [ "incoming-buildroot@patchwork.ozlabs.org", "buildroot@lists.busybox.net" ], "Delivered-To": [ "patchwork-incoming-buildroot@bilbo.ozlabs.org", "buildroot@osuosl.org" ], "Authentication-Results": [ "ozlabs.org; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=busybox.net (client-ip=140.211.166.138;\n\thelo=whitealder.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=mind.be", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=mind.be header.i=@mind.be header.a=rsa-sha256\n\theader.s=google header.b=cExcWzdR; dkim-atps=neutral" ], "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 48Djwf5RJMz9sPJ\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n\tSat, 8 Feb 2020 05:08:50 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 37D3C86E55;\n\tFri, 7 Feb 2020 18:08:48 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id IpzeknbdISZv; Fri, 7 Feb 2020 18:08:40 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id B0E71810FC;\n\tFri, 7 Feb 2020 18:08:40 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 7F3721BF38E\n\tfor <buildroot@lists.busybox.net>;\n\tFri, 7 Feb 2020 18:08:39 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 7BC8E868EF\n\tfor <buildroot@lists.busybox.net>;\n\tFri, 7 Feb 2020 18:08:39 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id iLGwm3ulhcai for <buildroot@lists.busybox.net>;\n\tFri, 7 Feb 2020 18:08:39 +0000 (UTC)", "from mail-wm1-f41.google.com (mail-wm1-f41.google.com\n\t[209.85.128.41])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id B0CCA868D9\n\tfor <buildroot@buildroot.org>; Fri, 7 Feb 2020 18:08:38 +0000 (UTC)", "by mail-wm1-f41.google.com with SMTP id a5so3497035wmb.0\n\tfor <buildroot@buildroot.org>; Fri, 07 Feb 2020 10:08:38 -0800 (PST)", "from localhost.localdomain (ip-188-118-3-185.reverse.destiny.be.\n\t[188.118.3.185]) by smtp.gmail.com with ESMTPSA id\n\t133sm4563938wmd.5.2020.02.07.10.08.35\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 07 Feb 2020 10:08:36 -0800 (PST)" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=KKJ/4R+jaEwFLjfSrp+WjUkL6w+kl+rq/FRDzRrj/YU=;\n\tb=cExcWzdRwfnmY9zPMI5xzk1mr9PaAvw2dh489R485gvHuFvCU0XZQnmghncEFfmb4z\n\tbGrG4fvArR4De8fHiKMCF2wn2fg3rc93KhKQRIPb0lpyILwTgDgbJ366OmvIxwD/OFh1\n\tw7Fx98SjmXBWY+QE+QrWlJKYrII5KTNsePMrTNjvUWjbODRRBDSaoRj5wlOXyvA4Q+0h\n\t0ejNi+dZRMpS4unNCV2HQaop32gpfXJBLNZf0tqXd3zkOqkPl+fN/KlFd22memTcs/tJ\n\tLyzaWds/LGxI9prgkKrlDZyNWCLigG8uvDKAEiYf3SQ86GFBXcOiSPMmphEZy9/SYyp2\n\tpkFg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=KKJ/4R+jaEwFLjfSrp+WjUkL6w+kl+rq/FRDzRrj/YU=;\n\tb=HuFdRs+42m86hyqVCeHNTAM3h5Og3cu+DWyVq5/BtJbteJEY/IG9WU02OrPrfvYqTh\n\tqhcJZ4ZTDyq01T26LdNYvH1MsVFgDQ4Pc7CY80hSNRyvvg4PRE0uD+aDG95p4KcwxdhW\n\tzJKWc5cqD5fj1+YTUHK9bB8E4ULTZJ6xVvKsXAH7Ghkxx5TuoK2SkDF1iN7dKQl87jf9\n\tmjjol0PLGB9mMtfPLv2m/WR5DFhuphPEcES335kxo9pvztihybp6yoFVK4nfJdNICR1j\n\t0y2Qj/ZaB6ao73Q1/5jEe/CSpfTkrX5A46NTTMZz0ijHyakP7D19rBzGWSe2hu5yHAif\n\thtgg==", "X-Gm-Message-State": "APjAAAVwG0ErHa4FjjQpd7L/HB6LssyCQj7tA4V1NAWt/76M4FWhmGcb\n\tzrlj2hgWmkF74l12IQI+65/Yl1U5zzM=", "X-Google-Smtp-Source": "APXvYqzTixGrytg4SlxBTmVnGWXK06j5O+FfS3OI1DcvhfjvofWMFwOhGEyhtA5FK54rhPtad5E8yA==", "X-Received": "by 2002:a7b:cf39:: with SMTP id\n\tm25mr5520397wmg.146.1581098916809; \n\tFri, 07 Feb 2020 10:08:36 -0800 (PST)", "From": "\"Arnout Vandecappelle (Essensium/Mind)\" <arnout@mind.be>", "To": "buildroot@buildroot.org", "Date": "Fri, 7 Feb 2020 19:08:20 +0100", "Message-Id": "<20200207180829.165689-2-arnout@mind.be>", "X-Mailer": "git-send-email 2.24.1", "In-Reply-To": "<20200207180829.165689-1-arnout@mind.be>", "References": "<20200207180829.165689-1-arnout@mind.be>", "MIME-Version": "1.0", "Subject": "[Buildroot] [PATCH v3 01/10] package/rustc: install cargo config as\n\ttoolchain post-install hook", "X-BeenThere": "buildroot@busybox.net", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>", "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>", "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>", "List-Post": "<mailto:buildroot@busybox.net>", "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>", "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>", "Cc": "Eric Le Bihan <eric.le.bihan.dev@free.fr>,\n\tPatrick Havelange <patrick.havelange@essensium.com>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@busybox.net", "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>" }, "content": "The cargo config file is much like the cmake and meson configuration\nfiles, something that tells the cargo build system how the\ncross-toolchain is configured. It can be used not only with our own\nhost-cargo package, but also with a pre-installed cargo.\n\nTherefore, install the cargo config file as a toolchain post-install\nhook, just like we do for cmake and meson. However, we don't have a\npkg-cargo infrastructure (yet) so we can't put it there. The cargo\npackage itself will be removed soon, so that's not appropriate either.\nTherefore, put it in the rustc package - any cargo package will need\nrustc.\n\nRemove the config handling from the cargo package.\n\nSigned-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>\n---\n package/cargo/cargo.mk | 6 ------\n package/{cargo/config.in => rustc/cargo-config.in} | 0\n package/rustc/rustc.mk | 12 ++++++++++++\n 3 files changed, 12 insertions(+), 6 deletions(-)\n rename package/{cargo/config.in => rustc/cargo-config.in} (100%)", "diff": "diff --git a/package/cargo/cargo.mk b/package/cargo/cargo.mk\nindex a387281b4c..3f6646d027 100644\n--- a/package/cargo/cargo.mk\n+++ b/package/cargo/cargo.mk\n@@ -80,12 +80,6 @@ endef\n \n define HOST_CARGO_INSTALL_CMDS\n \t$(INSTALL) -D -m 0755 $(@D)/target/release/cargo $(HOST_DIR)/bin/cargo\n-\t$(INSTALL) -D package/cargo/config.in \\\n-\t\t$(HOST_DIR)/share/cargo/config\n-\t$(SED) 's/@RUSTC_TARGET_NAME@/$(RUSTC_TARGET_NAME)/' \\\n-\t\t$(HOST_DIR)/share/cargo/config\n-\t$(SED) 's/@CROSS_PREFIX@/$(notdir $(TARGET_CROSS))/' \\\n-\t\t$(HOST_DIR)/share/cargo/config\n endef\n \n $(eval $(host-generic-package))\ndiff --git a/package/cargo/config.in b/package/rustc/cargo-config.in\nsimilarity index 100%\nrename from package/cargo/config.in\nrename to package/rustc/cargo-config.in\ndiff --git a/package/rustc/rustc.mk b/package/rustc/rustc.mk\nindex 6eea9b4fc5..35ffc36106 100644\n--- a/package/rustc/rustc.mk\n+++ b/package/rustc/rustc.mk\n@@ -20,3 +20,15 @@ endif\n RUSTC_HOST_NAME = $(RUSTC_HOST_ARCH)-unknown-linux-gnu\n \n $(eval $(host-virtual-package))\n+\n+ifeq ($(BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS),y)\n+define RUSTC_INSTALL_CARGO_CONFIG\n+\tmkdir -p $(HOST_DIR)/share/cargo\n+\tsed -e 's/@RUSTC_TARGET_NAME@/$(RUSTC_TARGET_NAME)/' \\\n+\t\t-e 's/@CROSS_PREFIX@/$(notdir $(TARGET_CROSS))/' \\\n+\t\tpackage/rustc/cargo-config.in \\\n+\t\t> $(HOST_DIR)/share/cargo/config\n+endef\n+# check-package disable TypoInPackageVariable - TOOLCHAIN intended\n+TOOLCHAIN_POST_INSTALL_STAGING_HOOKS += RUSTC_INSTALL_CARGO_CONFIG\n+endif\n", "prefixes": [ "v3", "01/10" ] }