Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1241520/?format=api
{ "id": 1241520, "url": "http://patchwork.ozlabs.org/api/patches/1241520/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20200220160119.3407-10-patrick.havelange@essensium.com/", "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": "<20200220160119.3407-10-patrick.havelange@essensium.com>", "list_archive_url": null, "date": "2020-02-20T16:01:19", "name": "[v3,10/10] docs/manual/adding-packages-cargo: Update for legal-info", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "d632e3749d2617534985a459788a5d04daa61781", "submitter": { "id": 75424, "url": "http://patchwork.ozlabs.org/api/people/75424/?format=api", "name": "Patrick Havelange", "email": "patrick.havelange@essensium.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20200220160119.3407-10-patrick.havelange@essensium.com/mbox/", "series": [ { "id": 159771, "url": "http://patchwork.ozlabs.org/api/series/159771/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=159771", "date": "2020-02-20T16:01:10", "name": "[v3,01/10] package/pkg-cargo.mk: Introduce the cargo package infrastructure.", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/159771/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1241520/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1241520/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.137;\n\thelo=fraxinus.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dmarc=fail (p=none dis=none)\n\theader.from=essensium.com", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=essensium.com header.i=@essensium.com\n\theader.a=rsa-sha256 header.s=google header.b=Hf5Ovuuk; \n\tdkim-atps=neutral" ], "Received": [ "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 48NfVJ2Rn0z9sPK\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n\tFri, 21 Feb 2020 03:02:00 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id A8BFE8606C;\n\tThu, 20 Feb 2020 16:01:58 +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 KPd8NHG1yLQK; Thu, 20 Feb 2020 16:01:57 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 716F985FD4;\n\tThu, 20 Feb 2020 16:01:57 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 9446A1BF9B3\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 20 Feb 2020 16:01:48 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 8DF1887D1D\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 20 Feb 2020 16:01:48 +0000 (UTC)", "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id IqqpAIobhBhf for <buildroot@lists.busybox.net>;\n\tThu, 20 Feb 2020 16:01:47 +0000 (UTC)", "from mail-wr1-f43.google.com (mail-wr1-f43.google.com\n\t[209.85.221.43])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 991AC87B05\n\tfor <buildroot@buildroot.org>; Thu, 20 Feb 2020 16:01:47 +0000 (UTC)", "by mail-wr1-f43.google.com with SMTP id c9so5207185wrw.8\n\tfor <buildroot@buildroot.org>; Thu, 20 Feb 2020 08:01:47 -0800 (PST)", "from ph-ThinkPad-E560.local.ess-mail.com\n\t(ip-188-118-3-185.reverse.destiny.be. [188.118.3.185])\n\tby smtp.gmail.com with ESMTPSA id\n\th5sm5483691wmf.8.2020.02.20.08.01.44\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 20 Feb 2020 08:01:45 -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;\n\td=essensium.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=01gpnsTQNSRzaUzakRtTdSoJgglg+MdPpgGEuWJkrqo=;\n\tb=Hf5OvuukOi5Az3M/+6kaPrG7ZLCBnvV5cJke1+7ydDbt6Uh2oy/JdHk9ZKeEls2M3l\n\tBwiCOTCJKqoks9rH5gkknq1yJc+syptLDPpe2SFuPgIJELeBtzaEg2Uly6grpHQlBqUb\n\tesB2yaKhLpzBOq5CC8pp4LzoKR2NSs/MjcwCNeEutW8SFDk59dbsGcyWHbHKpsPyxfyf\n\tsp1Ov6hcpA7/6k7tTeYjxHI3Mal1WLYRnEEVcDJQYplKPfodpVCDeBSyryqW3feSkZiL\n\teFFhAbWBs7hSyr9IAs4hX6W4GEI4i2Ih8zt4cqldYvGgbug+H2lsuLuh+Yg2FcRJZT6m\n\tvRpQ==", "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=01gpnsTQNSRzaUzakRtTdSoJgglg+MdPpgGEuWJkrqo=;\n\tb=K8H4i6bU3A5RETdJDg8TKv5ZScZRd2msgRw5iZqJpcCggIYpvqEkivMdHToBcshxfZ\n\tKpKT7T3ZhpkK/WyqnAVm+NcZKImyDGpl76QxC8YYdy0xi7BQ1bB7bFpiIXCd7CGZlmnU\n\teEfUhvkMxCNqI54JrjHmEZJrv3QhaPae6m4mIl0iuTaMMgrCwBtZTRv/PBX4d7l3M4J0\n\t9DnQbNwZ32GST3HPz44bgRwduU2AwOQPtPPJk0oIcoqpt2HA7L2shg33mld77S3Utpt9\n\tNxLJsRll4XUOiRAbQZz3z8iOefXQVA+mI2ycFa6mlplGAExNE6slIEJGlG5qktRJSra7\n\tnSAg==", "X-Gm-Message-State": "APjAAAXoAXZndXqtpTYIDlHqmJnt5YhWHd9wtwGcTZwLdjE8Je2i9yHg\n\tSD/Ck7F7UGuaOLzpF6i+odyNNvdgEca/kw==", "X-Google-Smtp-Source": "APXvYqyAc3rJ7jahNteflJSrz47izYtSLuvOkMXFMRdqEfmH3L+uqIqoUvbTmYKWEvjeqC0hSCsTGg==", "X-Received": "by 2002:a5d:4687:: with SMTP id\n\tu7mr41544330wrq.176.1582214505723; \n\tThu, 20 Feb 2020 08:01:45 -0800 (PST)", "From": "Patrick Havelange <patrick.havelange@essensium.com>", "To": "buildroot@buildroot.org", "Date": "Thu, 20 Feb 2020 17:01:19 +0100", "Message-Id": "<20200220160119.3407-10-patrick.havelange@essensium.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20200220160119.3407-1-patrick.havelange@essensium.com>", "References": "<20200220160119.3407-1-patrick.havelange@essensium.com>", "MIME-Version": "1.0", "Subject": "[Buildroot] [PATCH v3 10/10] docs/manual/adding-packages-cargo:\n\tUpdate for legal-info", "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": "Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>,\n\tPatrick Havelange <patrick.havelange@essensium.com>,\n\tSam Voss <sam.voss@gmail.com>,\n\t\"Yann E . MORIN\" <yann.morin.1998@free.fr>, \n\tThomas Petazzoni <thomas.petazzoni@bootlin.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": "Added a bit of explanations regarding the vendored licenses.\n\nSigned-off-by: Patrick Havelange <patrick.havelange@essensium.com>\n---\n docs/manual/adding-packages-cargo.txt | 45 ++++++++++++++++++++-------\n 1 file changed, 34 insertions(+), 11 deletions(-)", "diff": "diff --git a/docs/manual/adding-packages-cargo.txt b/docs/manual/adding-packages-cargo.txt\nindex e7d03eb7b5..e92b8bc353 100644\n--- a/docs/manual/adding-packages-cargo.txt\n+++ b/docs/manual/adding-packages-cargo.txt\n@@ -38,19 +38,25 @@ with an example:\n 04: #\n 05: ################################################################################\n 06:\n-07: FOO_VERSION = 1.0\n-08: FOO_SOURCE = foo-$(FOO_VERSION).tar.gz\n-09: FOO_SITE = http://www.foosoftware.org/download\n-10: FOO_LICENSE = GPL-3.0+\n-11: FOO_LICENSE_FILES = COPYING\n-12:\n-13: $(eval $(cargo-package))\n+07: include package/foo/vendor.inc\n+08:\n+09: FOO_VERSION = 1.0\n+10: FOO_SOURCE = foo-$(FOO_VERSION).tar.gz\n+11: FOO_SITE = http://www.foosoftware.org/download\n+12: FOO_LICENSE = GPL-3.0+\n+13: FOO_LICENSE_FILES = COPYING $(FOO_VENDOR_LICENSE_FILES)\n+14:\n+15: $(eval $(cargo-package))\n --------------------------------\n \n-The Makefile starts with the definition of the standard variables for package\n-declaration (lines 7 to 11).\n+The Makefile starts with the inclusion of a second file that\n+contains the vendored licenses, more info on that topic later.\n+Then it continues with the definition of the standard variables\n+for package declaration (lines 9 to 13).\n \n-As seen in line 13, it is based on the cargo-package infrastructure. Cargo will\n+FOO_VENDOR_LICENSE_FILES is defined in the previously included file vendor.inc\n+\n+As seen in line 15, it is based on the cargo-package infrastructure. Cargo will\n be invoked automatically by this infrastructure. The required dependencies of the\n crate will be downloaded and the buildroot dependencies will also be set.\n \n@@ -58,7 +64,20 @@ It is still possible to define custom build commands or install commands (i.e.\n with FOO_BUILD_CMDS and FOO_INSTALL_TARGET_CMDS).\n Those will then replace the commands from the cargo infrastructure.\n \n-==== About Dependencies Management\n+The file vendor.inc contains only one variable :\n+\n+------------------------------\n+01: FOO_VENDOR_LICENSES_FILES = \\\n+02: \tVENDOR/bar/COPYING \\\n+03: \tVENDOR/blah/LICENSE-MIT \\\n+04:\tVENDOR/bleh/COPYING \\\n+05: \n+--------------------------------\n+\n+It is recommended to generate the list via scripting.\n+A script example can be found in the ripgrep directory.\n+\n+==== About Dependencies Management and Licenses\n \n A crate can depend on other libraries from crates.io or git repositories, listed\n in its Cargo.toml file. Before starting a build, the +cargo vendor+ command\n@@ -66,3 +85,7 @@ will be run and will take care of downloading those dependencies.\n \n The final source tarball will contain all the required dependencies, effectively\n permitting us to do an offline build.\n+\n+In order for the +legal-info+ target to work as expected, it is necessary to list\n+the licenses of the vendored dependencies. Each of those entries should be added\n+to the +.mk+ and +.hash+ files.\n", "prefixes": [ "v3", "10/10" ] }