get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/41090/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 41090,
    "url": "http://patchwork.dpdk.org/api/patches/41090/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180614095127.16245-4-gavin.hu@arm.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20180614095127.16245-4-gavin.hu@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180614095127.16245-4-gavin.hu@arm.com",
    "date": "2018-06-14T09:51:23",
    "name": "[v6,3/7] devtools: fix the Exec format error",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "89493c0ab7e7d5628c4a417ed13c0dcc464333fe",
    "submitter": {
        "id": 1018,
        "url": "http://patchwork.dpdk.org/api/people/1018/?format=api",
        "name": "Gavin Hu",
        "email": "gavin.hu@arm.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180614095127.16245-4-gavin.hu@arm.com/mbox/",
    "series": [
        {
            "id": 120,
            "url": "http://patchwork.dpdk.org/api/series/120/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=120",
            "date": "2018-06-14T09:51:20",
            "name": "*** fix the cross compile errors ***",
            "version": 6,
            "mbox": "http://patchwork.dpdk.org/series/120/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/41090/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/41090/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E4CC41E89F;\n\tThu, 14 Jun 2018 11:51:53 +0200 (CEST)",
            "from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70])\n\tby dpdk.org (Postfix) with ESMTP id C329D1E46C;\n\tThu, 14 Jun 2018 11:51:47 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 38E64164F;\n\tThu, 14 Jun 2018 02:51:47 -0700 (PDT)",
            "from net-debian.shanghai.arm.com (net-debian.shanghai.arm.com\n\t[10.169.36.53])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\tC07303F59D; Thu, 14 Jun 2018 02:51:46 -0700 (PDT)"
        ],
        "From": "Gavin Hu <gavin.hu@arm.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org",
        "Date": "Thu, 14 Jun 2018 17:51:23 +0800",
        "Message-Id": "<20180614095127.16245-4-gavin.hu@arm.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20180614095127.16245-1-gavin.hu@arm.com>",
        "References": "<1527590616-28299-1-git-send-email-gavin.hu@arm.com>\n\t<20180614095127.16245-1-gavin.hu@arm.com>",
        "Subject": "[dpdk-dev] [PATCH v6 3/7] devtools: fix the Exec format error",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "meson will natively compile and generate the sanitycheck.exe file.  It will\nbe spawned and run at the host side.  Export the cross compiler is not\nnecessary as it is already done by the cross-file, and even worse it\ngenerate the files in the wrong target format.\n\nThe fix to the following compiling error is select the native compiler for\nthe sanity test source file.\n\nTraceback (most recent call last): File\n\"/usr/share/meson/mesonbuild/mesonmain.py\", line 361, in run app.generate()\nFile \"/usr/share/meson/mesonbuild/mesonmain.py\", line 150, in generate\nself._generate(env) File \"/usr/share/meson/mesonbuild/mesonmain.py\", line\n189, in _generate intr = interpreter.Interpreter(b, g) File\n\"/usr/share/meson/mesonbuild/interpreter.py\", line 1444, in __init__\nself.parse_project() File \"/usr/share/meson/mesonbuild/interpreterbase.py\",\nline 159, in parse_project self.evaluate_codeblock(self.ast, end=1) File\n\"/usr/share/meson/mesonbuild/interpreterbase.py\", line 195, in\nevaluate_codeblock raise e File\n\"/usr/share/meson/mesonbuild/interpreterbase.py\", line 189, in\nevaluate_codeblock self.evaluate_statement(cur) File\n\"/usr/share/meson/mesonbuild/interpreterbase.py\", line 200, in\nevaluate_statement return self.function_call(cur) File\n\"/usr/share/meson/mesonbuild/interpreterbase.py\", line 456, in\nfunction_call return self.funcs[func_name](node, self.flatten(posargs),\nkwargs) File \"/usr/share/meson/mesonbuild/interpreterbase.py\", line 55, in\nwrapped return f(self, node, args, kwargs) File\n\"/usr/share/meson/mesonbuild/interpreterbase.py\", line 79, in wrapped\nreturn f(s, node_or_state, args, kwargs) File\n\"/usr/share/meson/mesonbuild/interpreter.py\", line 1947, in func_project\nself.add_languages(proj_langs, True) File\n\"/usr/share/meson/mesonbuild/interpreter.py\", line 2078, in add_languages\n(comp, cross_comp) = self.detect_compilers(lang, need_cross_compiler) File\n\"/usr/share/meson/mesonbuild/interpreter.py\", line 2047, in\ndetect_compilers comp.sanity_check(self.environment.get_scratch_dir(),\nself.environment) File \"/usr/share/meson/mesonbuild/compilers/c.py\", line\n254, in sanity_check return self.sanity_check_impl(work_dir, environment,\n'sanitycheckc.c', code) File \"/usr/share/meson/mesonbuild/compilers/c.py\",\nline 247, in sanity_check_impl pe = subprocess.Popen(cmdlist) File\n\"/usr/lib/python3.5/subprocess.py\", line 676, in __init__ restore_signals,\nstart_new_session) File \"/usr/lib/python3.5/subprocess.py\", line 1282, in\n_execute_child raise child_exception_type(errno_num, err_msg) OSError:\n[Errno 8] Exec format error\n\nBuild started at 2018-06-01T12:48:46.852286 Main binary: /usr/bin/python3\nPython system: Linux The Meson build system Version: 0.45.1 Build type:\ncross build Project name: DPDK Sanity testing C compiler:\naarch64-linux-gnu-gcc Is cross compiler: False.  Sanity check compiler\ncommand line: aarch64-linux-gnu-gcc\ndpdk/build-arm64-armv8/meson-private/sanitycheckc.c -o\ndpdk/build-arm64-armv8/meson-private/sanitycheckc.exe\n\nFixes: a55277a788 (\"devtools: add test script for meson builds\")\nCc: stable@dpdk.org\n\nSigned-off-by: Gavin Hu <gavin.hu@arm.com>\nReviewed-by: Phil Yang <phil.yang@arm.com>\nReviewed-by: Song Zhu <song.zhu@arm.com>\n---\n devtools/test-meson-builds.sh | 11 +++++++----\n 1 file changed, 7 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh\nindex 9868c325b..6bce3df7f 100755\n--- a/devtools/test-meson-builds.sh\n+++ b/devtools/test-meson-builds.sh\n@@ -1,6 +1,7 @@\n #! /bin/sh -e\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Intel Corporation\n+# Copyright(c) 2018 ARM Corporation\n \n # Run meson to auto-configure the various builds.\n # * all builds get put in a directory whose name starts with \"build-\"\n@@ -18,7 +19,6 @@ build () # <directory> <meson options>\n \t\toptions=\"--werror -Dexamples=all $*\"\n \t\techo \"$MESON $options $srcdir $builddir\"\n \t\t$MESON $options $srcdir $builddir\n-\t\tunset CC\n \tfi\n \techo \"ninja -C $builddir\"\n \tninja -C $builddir\n@@ -26,10 +26,11 @@ build () # <directory> <meson options>\n \n # shared and static linked builds with gcc and clang\n for c in gcc clang ; do\n+\texport CC=\"ccache $c\"\n \tfor s in static shared ; do\n-\t\texport CC=\"ccache $c\"\n \t\tbuild build-$c-$s --default-library=$s\n \tdone\n+\tunset CC\n done\n \n # test compilation with minimal x86 instruction set\n@@ -39,8 +40,10 @@ build build-x86-default -Dmachine=nehalem\n for f in config/arm/arm*gcc ; do\n \tc=aarch64-linux-gnu-gcc\n \tif ! command -v $c >/dev/null 2>&1 ; then\n-\t\tcontinue\n+\t\techo \"## ERROR: aarch64-linux-gnu-gcc is missing...\"\n+\t\texit 1\n \tfi\n-\texport CC=\"ccache $c\"\n+\texport CC=\"ccache gcc\"\n \tbuild build-$(basename $f | tr '_' '-' | cut -d'-' -f-2) --cross-file $f\n+\tunset CC\n done\n",
    "prefixes": [
        "v6",
        "3/7"
    ]
}