Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/453148/?format=api
{ "id": 453148, "url": "http://patchwork.ozlabs.org/api/patches/453148/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/93d0033f46edcbeeb4de1e7bfad36e7970fb24b4.1427037564.git.yann.morin.1998@free.fr/", "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": "<93d0033f46edcbeeb4de1e7bfad36e7970fb24b4.1427037564.git.yann.morin.1998@free.fr>", "list_archive_url": null, "date": "2015-03-22T15:21:02", "name": "[3/7,v3] support/download: add explicit no-hash support", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "573157cbc244924f59602beafd0b23a1c401702b", "submitter": { "id": 13903, "url": "http://patchwork.ozlabs.org/api/people/13903/?format=api", "name": "Yann E. MORIN", "email": "yann.morin.1998@free.fr" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/93d0033f46edcbeeb4de1e7bfad36e7970fb24b4.1427037564.git.yann.morin.1998@free.fr/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/453148/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/453148/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<buildroot-bounces@busybox.net>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "buildroot@lists.busybox.net" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "buildroot@osuosl.org" ], "Received": [ "from silver.osuosl.org (silver.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id E2C64140146\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 23 Mar 2015 02:21:42 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 1A06B32BE4;\n\tSun, 22 Mar 2015 15:21:41 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id RFqNlseBPJF6; Sun, 22 Mar 2015 15:21:36 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id E6CAE32C52;\n\tSun, 22 Mar 2015 15:21:24 +0000 (UTC)", "from silver.osuosl.org (silver.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id CD6511CEEBB\n\tfor <buildroot@lists.busybox.net>;\n\tSun, 22 Mar 2015 15:21:16 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id BEA0430BFD\n\tfor <buildroot@lists.busybox.net>;\n\tSun, 22 Mar 2015 15:21:16 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id NlxXXoJWZYti for <buildroot@lists.busybox.net>;\n\tSun, 22 Mar 2015 15:21:13 +0000 (UTC)", "from mail-we0-f180.google.com (mail-we0-f180.google.com\n\t[74.125.82.180])\n\tby silver.osuosl.org (Postfix) with ESMTPS id 5159432C0F\n\tfor <buildroot@buildroot.org>; Sun, 22 Mar 2015 15:21:13 +0000 (UTC)", "by weop45 with SMTP id p45so118935837weo.0\n\tfor <buildroot@buildroot.org>; Sun, 22 Mar 2015 08:21:11 -0700 (PDT)", "from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66])\n\tby mx.google.com with ESMTPSA id\n\t14sm15244710wjv.29.2015.03.22.08.21.10\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 22 Mar 2015 08:21:11 -0700 (PDT)" ], "Authentication-Results": "ozlabs.org; dkim=fail\n\treason=\"verification failed; unprotected key\"\n\theader.d=gmail.com header.i=@gmail.com header.b=IgQIrSKZ;\n\tdkim-adsp=none (unprotected policy); dkim-atps=neutral", "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=gmail.com; s=20120113;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=JrruyEuBUgLEGphtgimYyS0/h/7OMxE/XjlwfiIabng=;\n\tb=IgQIrSKZ3CM4sAJuOS25Dtmj5+BVz28t0KSVNZbQSACAsMaLuYhRF8Mg1TpTGsJEgG\n\tui8SthkVcU0syzgNzxGT+yyyytwB/CDKx17MXg4g+zAlSagcu8ngbdXOYPtiqZ1zC8m+\n\tiqRQlCApGdTeQ0hBd7XdBR4s9yInroeypd2HpRr26F9SC7HxvQFz8R2Oy2QvTMddh63w\n\tn8nSD5xXcqNKu1M/VVCY7SZhG2aTYKC3gKBh/GjH4j84c6Tcl32IcUpV/SGsvxbIUBR0\n\tOIZ8KRKuX2FGaWalYKnlVtdWBmamZ4QgPptiHrTk4In/hzO5HbNXMRgqEaqFEMbQiEkT\n\t5PuQ==", "X-Received": "by 10.180.105.136 with SMTP id gm8mr12353815wib.13.1427037671723;\n\tSun, 22 Mar 2015 08:21:11 -0700 (PDT)", "From": "\"Yann E. MORIN\" <yann.morin.1998@free.fr>", "To": "buildroot@buildroot.org", "Date": "Sun, 22 Mar 2015 16:21:02 +0100", "Message-Id": "<93d0033f46edcbeeb4de1e7bfad36e7970fb24b4.1427037564.git.yann.morin.1998@free.fr>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<cover.1427037564.git.yann.morin.1998@free.fr>", "References": "<cover.1427037564.git.yann.morin.1998@free.fr>", "Cc": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\t\"Yann E. MORIN\" <yann.morin.1998@free.fr>", "Subject": "[Buildroot] [PATCH 3/7 v3] support/download: add explicit no-hash\n\tsupport", "X-BeenThere": "buildroot@busybox.net", "X-Mailman-Version": "2.1.18-1", "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>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@busybox.net", "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>" }, "content": "Add support to explicitly state that an archive has no hash.\n\nThis can be used for archives downloaded from a repository, like a\ngit-clone or a subversion checkout, or using the github helper.\n\nThis will come in handy when we'll eventually make hashes mandatory as\nsoon as a .hash file exists: for some packages, like gcc, some versions\nare downloaded as archives from upstream, while other versions may come\nfrom a GitHub repository (via the github herlper).\n\nIn this case, a .hash file would exist, that contains hashes for the\ndownloaded tarballs, but archives downloaded from the repository would\nnot have a hash (since it is currently not possible to have reproducible\nsuch archives). So, we'd need a way to explicitly state there is no\nhash, on purpose, for those archives.\n\nSo, add 'none' as a new type of hash.\n\nSigned-off-by: \"Yann E. MORIN\" <yann.morin.1998@free.fr>\nCc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\nCc: Arnout Vandecappelle <arnout@mind.be>\n---\n docs/manual/adding-packages-directory.txt | 13 +++++++++++--\n support/download/check-hash | 2 ++\n 2 files changed, 13 insertions(+), 2 deletions(-)", "diff": "diff --git a/docs/manual/adding-packages-directory.txt b/docs/manual/adding-packages-directory.txt\nindex 132c702..0f8bb64 100644\n--- a/docs/manual/adding-packages-directory.txt\n+++ b/docs/manual/adding-packages-directory.txt\n@@ -423,8 +423,9 @@ The format of this file is one line for each file for which to check the\n hash, each line being space-separated, with these three fields:\n \n * the type of hash, one of:\n-** +sha1+, +sha224+, +sha256+, +sha384+, +sha512+\n+** +sha1+, +sha224+, +sha256+, +sha384+, +sha512+, +none+\n * the hash of the file:\n+** for +none+, one or more non-space chars, usually just the string +xxx+\n ** for +sha1+, 40 hexadecimal characters\n ** for +sha224+, 56 hexadecimal characters\n ** for +sha256+, 64 hexadecimal characters\n@@ -448,9 +449,14 @@ comment line above the hashes.\n *Note:* the number of spaces does not matter, so one can use spaces to\n properly align the different fields.\n \n+The +none+ hash type is reserved to those archives downloaded from a\n+repository, like a 'git clone', a 'subversion checkout'... or archives\n+downloaded with the xref:github-download-url[github helper].\n+\n The example below defines a +sha1+ and a +sha256+ published by upstream for\n the main +libfoo-1.2.3.tar.bz2+ tarball, plus two locally-computed hashes,\n-a +sha256+ for a downloaded patch, and a +sha1+ for a downloaded binary blob:\n+a +sha256+ for a downloaded patch, a +sha1+ for a downloaded binary blob,\n+and an archive with no hash:\n \n ----\n # Hashes from: http://www.foosoftware.org/download/libfoo-1.2.3.tar.bz2.{sha1,sha256}:\n@@ -460,6 +466,9 @@ sha256 efc8103cc3bcb06bda6a781532d12701eb081ad83e8f90004b39ab81b65d4369 libfoo-1\n # No upstream hashes for the following:\n sha256 ff52101fb90bbfc3fe9475e425688c660f46216d7e751c4bbdb1dc85cdccacb9 libfoo-fix-blabla.patch\n sha1 2d608f3c318c6b7557d551a5a09314f03452f1a1 libfoo-data.bin\n+\n+# Explicitly no hash for that file, comes from a git-clone:\n+none xxx libfoo-1234.tar.gz\n ----\n \n If the +.hash+ file is present, and it contains one or more hashes for a\ndiff --git a/support/download/check-hash b/support/download/check-hash\nindex cee64ef..d0a4ab9 100755\n--- a/support/download/check-hash\n+++ b/support/download/check-hash\n@@ -38,7 +38,9 @@ check_one_hash() {\n # Note: md5 is supported, but undocumented on purpose.\n # Note: sha3 is not supported, since there is currently no implementation\n # (the NIST has yet to publish the parameters).\n+ # Note: 'none' means there is explicitly no hash for that file.\n case \"${_h}\" in\n+ none) return 0;;\n md5|sha1) ;;\n sha224|sha256|sha384|sha512) ;;\n *) # Unknown hash, exit with error\n", "prefixes": [ "3/7", "v3" ] }