get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 11786,
    "url": "http://patches.dpdk.org/api/patches/11786/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1459268154-29558-6-git-send-email-thomas.monjalon@6wind.com/",
    "project": {
        "id": 1,
        "url": "http://patches.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": "<1459268154-29558-6-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1459268154-29558-6-git-send-email-thomas.monjalon@6wind.com",
    "date": "2016-03-29T16:15:51",
    "name": "[dpdk-dev,5/8] scripts: allow tuning build options per test target",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e78df944e1291cc47e6aed9886a7a7b20949df41",
    "submitter": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1459268154-29558-6-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/11786/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/11786/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 34F875699;\n\tTue, 29 Mar 2016 18:18:16 +0200 (CEST)",
            "from mail-wm0-f43.google.com (mail-wm0-f43.google.com\n\t[74.125.82.43]) by dpdk.org (Postfix) with ESMTP id D21295680\n\tfor <dev@dpdk.org>; Tue, 29 Mar 2016 18:18:09 +0200 (CEST)",
            "by mail-wm0-f43.google.com with SMTP id p65so34108534wmp.0\n\tfor <dev@dpdk.org>; Tue, 29 Mar 2016 09:18:09 -0700 (PDT)",
            "from XPS13.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by smtp.gmail.com with ESMTPSA id\n\tjf6sm30004635wjb.2.2016.03.29.09.18.08\n\tfor <dev@dpdk.org> (version=TLSv1/SSLv3 cipher=OTHER);\n\tTue, 29 Mar 2016 09:18:09 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:subject:date:message-id:in-reply-to:references;\n\tbh=801G7+mDifyVXCiCqFsS/0tUgIHcvykprUtajFrqn5g=;\n\tb=x4K+ytWYQQeL82Xcylf/eKbK+VT/86S6y+pVB7Qa5czpXmuVkIO5uXVWbX6v8fhMxm\n\tu9mvZWx4e7AylKqiVpZYTquxdE7zKb8yFdJok56g4QHO7IyzC0anJa+TaL/Tg859R533\n\tkgUOhFHOtn4U9a0fdEjFGCAzpZp3pyT/ImOVMLMGc8s9Z2VHGiGTxzLE9wu5oArZV5im\n\t2UfAcAY3mQ5+7KYPVn3TBKcjsB2AyoBU+9IF1mP/YZDQhDUpq64pCukQyYLgAqSrr8gu\n\tnq9IZCbK8qiOT44BLdf6HxjsGyuiQ3gbwpiD9b6tZWLNp5GzJoGsgkcldOVik/twqL9X\n\tFzPg==",
        "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:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=801G7+mDifyVXCiCqFsS/0tUgIHcvykprUtajFrqn5g=;\n\tb=ldPjucmxLkq+/JKxfmnLWJkWtlvVInC8elwRiiE7i6gLE0g8pHPMvFMnzAjSuYQMwp\n\t1zP+Sy0MzEJUjkqKljtWXie3PJeu+CriwkkqrvynKS16Bi134O/Sd//T4wqFctXdQBXT\n\ts+xHqjI1T1+oaeZAfBs42OQhtCz8fC3e3DKDifTNyKNlW4JOPx3D5xWA/rR5abKO8qHE\n\tcZB7zvpuhoZOfVTM792AHZJ9hYPbzpSU6DWBvFbOLpbcS7HAP9UemLUkg7j7wUBre8uJ\n\trKlXrbjKMyexulLnWLPtJqeAep85Vh6kl/FOXOrQ5uy3CvuJ27QpmWuGCcQJX+/m3tmi\n\tioNg==",
        "X-Gm-Message-State": "AD7BkJLSLM3aEBnXXQC6IpV9fjqo49y3jGQkdrcW0QQu1fIluF+MZtbGEY6i/hyXlbgL/IO4",
        "X-Received": "by 10.194.47.237 with SMTP id g13mr3686195wjn.142.1459268289743; \n\tTue, 29 Mar 2016 09:18:09 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Tue, 29 Mar 2016 18:15:51 +0200",
        "Message-Id": "<1459268154-29558-6-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.7.0",
        "In-Reply-To": "<1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com>",
        "References": "<1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH 5/8] scripts: allow tuning build options per test\n\ttarget",
        "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": "The global variables are reloaded between each build to allow\nhaving different config options based on DPDK_TARGET.\n\nSome checks can now be removed from the script as they can\nbe done in the devel config file.\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n scripts/test-build.sh | 34 +++++++++++++++++++++++++++-------\n 1 file changed, 27 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/scripts/test-build.sh b/scripts/test-build.sh\nindex ffa7bea..f28c289 100755\n--- a/scripts/test-build.sh\n+++ b/scripts/test-build.sh\n@@ -30,6 +30,8 @@\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+default_path=$PATH\n+\n # Load config options:\n # - AESNI_MULTI_BUFFER_LIB_PATH\n # - DPDK_BUILD_TEST_CONFIGS (target1+option1+option2 target2)\n@@ -37,6 +39,10 @@\n # - DPDK_DEP_LDFLAGS\n # - DPDK_DEP_MOFED (y/[n])\n # - DPDK_DEP_PCAP (y/[n])\n+# - DPDK_DEP_SSL (y/[n])\n+# - DPDK_DEP_SZE (y/[n])\n+# - DPDK_DEP_ZLIB (y/[n])\n+# - DPDK_MAKE_JOBS (int)\n # - DPDK_NOTIFY (notify-send)\n . $(dirname $(readlink -e $0))/load-devel-config.sh\n \n@@ -94,6 +100,21 @@ trap on_exit EXIT\n \n cd $(dirname $(readlink -m $0))/..\n \n+reset_env ()\n+{\n+\texport PATH=$default_path\n+\tunset CROSS\n+\tunset DPDK_DEP_CFLAGS\n+\tunset DPDK_DEP_LDFLAGS\n+\tunset DPDK_DEP_MOFED\n+\tunset DPDK_DEP_PCAP\n+\tunset DPDK_DEP_SSL\n+\tunset DPDK_DEP_SZE\n+\tunset DPDK_DEP_ZLIB\n+\tunset AESNI_MULTI_BUFFER_LIB_PATH\n+\tunset PQOS_INSTALL_PATH\n+}\n+\n config () # <directory> <target> <options>\n {\n \tif [ ! -e $1/.config ] ; then\n@@ -103,16 +124,14 @@ config () # <directory> <target> <options>\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\techo $2 | grep -q '^i686' || \\\n+\t\t! echo $2 | grep -q '^x86_64' || \\\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\tsed -ri           's,(MLX._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\ttest \"$DPDK_DEP_ZLIB\" != y || \\\n \t\tsed -ri          's,(BNX2X_PMD=)n,\\1y,' $1/.config\n@@ -120,17 +139,13 @@ config () # <directory> <target> <options>\n \t\ttest \"$DPDK_DEP_PCAP\" != y || \\\n \t\tsed -ri               's,(PCAP=)n,\\1y,' $1/.config\n \t\ttest -z \"$AESNI_MULTI_BUFFER_LIB_PATH\" || \\\n-\t\t! echo $2 | grep -q '^x86_64' || \\\n \t\tsed -ri       's,(PMD_AESNI_MB=)n,\\1y,' $1/.config\n \t\ttest -z \"$AESNI_MULTI_BUFFER_LIB_PATH\" || \\\n-\t\t! echo $2 | grep -q '^x86_64' || \\\n \t\tsed -ri      's,(PMD_AESNI_GCM=)n,\\1y,' $1/.config\n \t\ttest \"$DPDK_DEP_SSL\" != y || \\\n \t\tsed -ri            's,(PMD_QAT=)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@@ -138,6 +153,11 @@ config () # <directory> <target> <options>\n \n for conf in $configs ; do\n \ttarget=$(echo $conf | cut -d'+' -f1)\n+\t# reload config with DPDK_TARGET set\n+\tDPDK_TARGET=$target\n+\treset_env\n+\t. $(dirname $(readlink -e $0))/load-devel-config.sh\n+\n \toptions=$(echo $conf | cut -d'+' -sf2- --output-delimiter='-')\n \tif [ -z \"$options\" ] ; then\n \t\tdir=$target\n",
    "prefixes": [
        "dpdk-dev",
        "5/8"
    ]
}