get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 9037,
    "url": "http://patchwork.dpdk.org/api/patches/9037/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1448242808-16101-3-git-send-email-thomas.monjalon@6wind.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": "<1448242808-16101-3-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1448242808-16101-3-git-send-email-thomas.monjalon@6wind.com",
    "date": "2015-11-23T01:40:08",
    "name": "[dpdk-dev,v2,2/2] scripts: add build tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "27720d5d2c4085b3e1646ad537de5693fa2ae84f",
    "submitter": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1448242808-16101-3-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patchwork.dpdk.org/api/patches/9037/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/9037/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id BEEA98E87;\n\tMon, 23 Nov 2015 02:41:34 +0100 (CET)",
            "from mail-wm0-f53.google.com (mail-wm0-f53.google.com\n\t[74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 653C88E74\n\tfor <dev@dpdk.org>; Mon, 23 Nov 2015 02:41:31 +0100 (CET)",
            "by wmec201 with SMTP id c201so140274825wme.0\n\tfor <dev@dpdk.org>; Sun, 22 Nov 2015 17:41:31 -0800 (PST)",
            "from localhost.localdomain (136-92-190-109.dsl.ovh.fr.\n\t[109.190.92.136]) by smtp.gmail.com with ESMTPSA id\n\tq6sm10802275wjx.28.2015.11.22.17.41.30\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tSun, 22 Nov 2015 17:41:30 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=x+9abbOh4yBhuVoDntBDx+RYpEWasFHKExlOdg5430Y=;\n\tb=IiD46PgHxVXRjQeS4Wp2ZmdN8DY2nCL+tg9zyj/F3Dir+sWJE7Pqr2C+H78rPHOPAP\n\tO0v6y7pQwgj9RNAs3O68VsAsQo3k1rc8eabkmx2vtcpzQVrikrYFbQgYxdiv7I60IHfb\n\tMCSe39OWr5l+MS6f7AB9+/SUB+ha9KtavTyzH9xWz3t+gGlyzqRa/Kmh85/WTfgrcLHQ\n\tRmyMoWj8QVN+oT2bYaxFb8WL8ya0h2tPJIJwuzD6pexGLD3q3E4IPCj2tEPD2rrxU/mz\n\tABGnsJzpwxt36FszSqznbxs2W2xyLjVQICore0XbjluKoixqi50tXLYMcrIAUJJVwiS1\n\t6Q9w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=x+9abbOh4yBhuVoDntBDx+RYpEWasFHKExlOdg5430Y=;\n\tb=bfS79ciBzvgI9o3uIeV9bQ5eQuLAUG5VYifsQa63Uo+tcjE74tzBkYFmhgQHG6vZ97\n\tGfS5uJE7cn1thDUMqivAdkf3PEm5PHagegjGq6TDX0PolB0b56qK4Quv02pasouSiEr5\n\tZntzc+nac1SxT6qCtFqq9wMYZ9RaOgNMYNWjak9wEy43065dd3x5121D7/BDDDWTc3ch\n\thAdwTXVecA/HGXQGxZ2f4rBq4fTt5moVNJdAiLw7SY/LYl2g3Kj/23Jq9rCCKf44Zz1m\n\tpUzzclkficVZ+R9VU0fD1iyGKIyTFCF8kExee0Aa0wtdgVwcrP+THrGYsuug44Sex3RM\n\t8nDg==",
        "X-Gm-Message-State": "ALoCoQl3zW2npiG5tbpTpZRD2Xfmdv4X31YIbYEJqzxlyM7IN5YNYH5OkirQ5pSXBEoXL8dgSBol",
        "X-Received": "by 10.28.104.197 with SMTP id d188mr14146673wmc.55.1448242891289;\n\tSun, 22 Nov 2015 17:41:31 -0800 (PST)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 23 Nov 2015 02:40:08 +0100",
        "Message-Id": "<1448242808-16101-3-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.5.2",
        "In-Reply-To": "<1448242808-16101-1-git-send-email-thomas.monjalon@6wind.com>",
        "References": "<1445615606-3885-1-git-send-email-thomas.monjalon@6wind.com>\n\t<1448242808-16101-1-git-send-email-thomas.monjalon@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH v2 2/2] scripts: add build tests",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "This script helps to build a list of target with some custom options.\nIt tries to enable most of the options.\nThe examples and documentation are also built.\n\nIt uses some configuration from exported variables.\nThis config works on my machine:\nexport DPDK_DEP_PCAP=y\nexport DPDK_DEP_MOFED=y\n       mlxdep=/opt/mofed-3.0\nexport DPDK_DEP_CFLAGS=-I$mlxdep/include\nexport DPDK_DEP_LDFLAGS=-L$mlxdep/lib\nexport DPDK_BUILD_TEST_CONFIGS='x86_64-native-linuxapp-gcc+shared+next\n       x86_64-native-linuxapp-clang+shared+combined\n       i686-native-linuxapp-gcc+combined'\nexport DPDK_MAKE_JOBS=8\nexport DPDK_NOTIFY=notify-send\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\nv2:\n- conditionally enable szedata2\n- add quotes for CFLAGS and LDFLAGS\n\n scripts/test-build.sh | 145 ++++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 145 insertions(+)\n create mode 100755 scripts/test-build.sh",
    "diff": "diff --git a/scripts/test-build.sh b/scripts/test-build.sh\nnew file mode 100755\nindex 0000000..3d3cf9f\n--- /dev/null\n+++ b/scripts/test-build.sh\n@@ -0,0 +1,145 @@\n+#! /bin/sh -e\n+\n+# BSD LICENSE\n+#\n+# Copyright 2015 6WIND S.A.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+#   * Redistributions of source code must retain the above copyright\n+#     notice, this list of conditions and the following disclaimer.\n+#   * Redistributions in binary form must reproduce the above copyright\n+#     notice, this list of conditions and the following disclaimer in\n+#     the documentation and/or other materials provided with the\n+#     distribution.\n+#   * Neither the name of 6WIND S.A. nor the names of its\n+#     contributors may be used to endorse or promote products derived\n+#     from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+# Load config options:\n+# - DPDK_BUILD_TEST_CONFIGS (target1+option1+option2 target2)\n+# - DPDK_DEP_CFLAGS\n+# - DPDK_DEP_LDFLAGS\n+# - DPDK_DEP_MOFED (y/[n])\n+# - DPDK_DEP_PCAP (y/[n])\n+# - DPDK_NOTIFY (notify-send)\n+. scripts/load-devel-config.sh\n+\n+print_usage () {\n+\techo \"usage: $(basename $0) [-jX] [-q] [config1 [config2] ...]]\"\n+}\n+\n+J=$DPDK_MAKE_JOBS\n+quick=false\n+while getopts hj:q ARG ; do\n+\tcase $ARG in\n+\t\tj ) J=$OPTARG ;;\n+\t\tq ) quick=true ;;\n+\t\th ) print_usage ; exit 0 ;;\n+\t\t? ) print_usage ; exit 1 ;;\n+\tesac\n+done\n+shift $(($OPTIND - 1))\n+configs=${*:-$DPDK_BUILD_TEST_CONFIGS}\n+\n+success=false\n+on_exit ()\n+{\n+\tif [ \"$DPDK_NOTIFY\" = notify-send ] ; then\n+\t\tif $success ; then\n+\t\t\tnotify-send -u low --icon=dialog-information 'DPDK build' 'finished'\n+\t\telif [ -z \"$signal\" ] ; then\n+\t\t\tnotify-send -u low --icon=dialog-error 'DPDK build' 'failed'\n+\t\tfi\n+\tfi\n+}\n+# catch manual interrupt to ignore notification\n+trap \"signal=INT ; trap - INT ; kill -INT $$\" INT\n+# notify result on exit\n+trap on_exit EXIT\n+\n+cd $(dirname $(readlink -m $0))/..\n+\n+config () # <directory> <target> <options>\n+{\n+\tif [ ! -e $1/.config ] ; then\n+\t\techo Custom configuration\n+\t\tmake T=$2 O=$1 config\n+\t\techo $3 | grep -q next || \\\n+\t\tsed -ri           's,(NEXT_ABI=)y,\\1n,' $1/.config\n+\t\t! echo $3 | grep -q shared || \\\n+\t\tsed -ri         's,(SHARED_LIB=)n,\\1y,' $1/.config\n+\t\t! echo $3 | grep -q combined || \\\n+\t\tsed -ri       's,(COMBINE_LIBS=)n,\\1y,' $1/.config\n+\t\techo $2 | grep -q '^i686' || \\\n+\t\tsed -ri               's,(NUMA=)n,\\1y,' $1/.config\n+\t\tsed -ri         's,(PCI_CONFIG=)n,\\1y,' $1/.config\n+\t\tsed -ri    's,(LIBRTE_IEEE1588=)n,\\1y,' $1/.config\n+\t\tsed -ri             's,(BYPASS=)n,\\1y,' $1/.config\n+\t\ttest \"$DPDK_DEP_MOFED\" != y || \\\n+\t\techo $2 | grep -q '^clang$' || \\\n+\t\techo $3 | grep -q 'shared.*combined' || \\\n+\t\tsed -ri           's,(MLX4_PMD=)n,\\1y,' $1/.config\n+\t\ttest \"$DPDK_DEP_SZE\" != y || \\\n+\t\techo $2 | grep -q '^i686' || \\\n+\t\tsed -ri       's,(PMD_SZEDATA2=)n,\\1y,' $1/.config\n+\t\techo $2 | grep -q '^i686' || \\\n+\t\tsed -ri          's,(BNX2X_PMD=)n,\\1y,' $1/.config\n+\t\ttest \"$DPDK_DEP_PCAP\" != y || \\\n+\t\tsed -ri               's,(PCAP=)n,\\1y,' $1/.config\n+\t\tsed -ri        's,(KNI_VHOST.*=)n,\\1y,' $1/.config\n+\t\tsed -ri           's,(SCHED_.*=)n,\\1y,' $1/.config\n+\t\t! echo $2 | grep -q '^i686' || \\\n+\t\tsed -ri              's,(POWER=)y,\\1n,' $1/.config\n+\t\tsed -ri 's,(TEST_PMD_RECORD_.*=)n,\\1y,' $1/.config\n+\t\tsed -ri            's,(DEBUG.*=)n,\\1y,' $1/.config\n+\tfi\n+}\n+\n+for conf in $configs ; do\n+\ttarget=$(echo $conf | cut -d'+' -f1)\n+\toptions=$(echo $conf | cut -d'+' -sf2- --output-delimiter='-')\n+\tif [ -z \"$options\" ] ; then\n+\t\tdir=$target\n+\t\tconfig $dir $target\n+\t\t# Use install rule\n+\t\tmake -j$J T=$target install EXTRA_CFLAGS=\"$DPDK_DEP_CFLAGS\" EXTRA_LDFLAGS=\"$DPDK_DEP_LDFLAGS\"\n+\t\t$quick || make -j$J T=$target examples O=$dir/examples EXTRA_LDFLAGS=\"$DPDK_DEP_LDFLAGS\"\n+\telse\n+\t\tdir=$target-$options\n+\t\tconfig $dir $target $options\n+\t\techo \"================== Build $dir\"\n+\t\t# Use O variable without install\n+\t\tmake -j$J O=$dir EXTRA_CFLAGS=\"$DPDK_DEP_CFLAGS\" EXTRA_LDFLAGS=\"$DPDK_DEP_LDFLAGS\"\n+\t\techo \"================== Build examples for $dir\"\n+\t\tmake -j$J -sC examples RTE_SDK=$(pwd) RTE_TARGET=$dir O=$(readlink -m $dir/examples) EXTRA_LDFLAGS=\"$DPDK_DEP_LDFLAGS\"\n+\tfi\n+\techo \"################## $dir done.\"\n+\t! $quick || break\n+done\n+\n+if ! $quick ; then\n+\tmkdir -p .check\n+\techo \"================== Build doxygen HTML API\"\n+\tmake doc-api-html >/dev/null 2>.check/doc.txt\n+\techo \"================== Build sphinx HTML guides\"\n+\tmake doc-guides-html >/dev/null 2>>.check/doc.txt\n+\techo \"================== Check docs\"\n+\tdiff -u /dev/null .check/doc.txt\n+fi\n+\n+success=true\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/2"
    ]
}