get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809137,
    "url": "http://patchwork.ozlabs.org/api/patches/809137/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20170902200741.2878-1-romain.naour@gmail.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": "<20170902200741.2878-1-romain.naour@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-02T20:07:41",
    "name": "[v2] package/xmlstarlet: fix host build",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "ccbd7ff9b65923eb59b44fd9f4b8cdd185fb09ac",
    "submitter": {
        "id": 67942,
        "url": "http://patchwork.ozlabs.org/api/people/67942/?format=api",
        "name": "Romain Naour",
        "email": "romain.naour@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20170902200741.2878-1-romain.naour@gmail.com/mbox/",
    "series": [
        {
            "id": 1177,
            "url": "http://patchwork.ozlabs.org/api/series/1177/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=1177",
            "date": "2017-09-02T20:07:41",
            "name": "[v2] package/xmlstarlet: fix host build",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/1177/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809137/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809137/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"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.136; helo=silver.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"HSLOzbxL\"; dkim-atps=neutral"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xl6bw2Q4Nz9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 06:07:56 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 27C3D305C2;\n\tSat,  2 Sep 2017 20:07:51 +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 CEQzNALwNKux; Sat,  2 Sep 2017 20:07:49 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 393F42F407;\n\tSat,  2 Sep 2017 20:07:49 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id F2CAC1BFF90\n\tfor <buildroot@lists.busybox.net>;\n\tSat,  2 Sep 2017 20:07:47 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id ED6DC88F4B\n\tfor <buildroot@lists.busybox.net>;\n\tSat,  2 Sep 2017 20:07:47 +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 vQaq2VjVyWFB for <buildroot@lists.busybox.net>;\n\tSat,  2 Sep 2017 20:07:47 +0000 (UTC)",
            "from mail-wm0-f66.google.com (mail-wm0-f66.google.com\n\t[74.125.82.66])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 1D49788EF1\n\tfor <buildroot@buildroot.org>; Sat,  2 Sep 2017 20:07:47 +0000 (UTC)",
            "by mail-wm0-f66.google.com with SMTP id 187so2811001wmn.0\n\tfor <buildroot@buildroot.org>; Sat, 02 Sep 2017 13:07:47 -0700 (PDT)",
            "from localhost.localdomain\n\t([2a01:e35:1391:67d0:e6f9:2d2f:1a1e:79bf])\n\tby smtp.gmail.com with ESMTPSA id\n\t16sm2899607wmg.10.2017.09.02.13.07.44\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 02 Sep 2017 13:07:44 -0700 (PDT)"
        ],
        "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=20161025;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=EYEplgpyRBh9AVJc5GtTh7zNemKyzvjf8nGxZ1u6KVY=;\n\tb=HSLOzbxLqnAKMrqPIsqCP3naLGOdWjqUxXLKAl6I4c8CoVSsiP0DAUWTO+KDCCqNxk\n\t9wkoYRQxcnDn9yXI7PqyUBqWGXL3vSJ0at6U4yzyWnMgrj4EUbcM45qicjMqabKjVBX3\n\tHKEM+1K5Id4jn6R0PeBg0gfmpYFjV6UfFFKcFXsj6bQN/sbpfR9D20Qbs4XtRT5GgqW7\n\ti8EwirD95v2d0ChtpVNHZx4e1ZtLaxOByr2Mww/BZ+KIXjqyliMFIFtO+Q1A9e/rY9iS\n\txeMdDOv4Z7bOXIFqOciVus4tgsBuyMZxKeUtWzu/E3p/kfqPXJFxalDAmbhJfnM880iP\n\tzm6g==",
        "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:mime-version\n\t:content-transfer-encoding;\n\tbh=EYEplgpyRBh9AVJc5GtTh7zNemKyzvjf8nGxZ1u6KVY=;\n\tb=ddhZ0qrPRfhCBNOTpFYZpXsxf11o0HYsyMhrGXvu82N2FyTWsHHYlDTSoOuw6swH63\n\t9pxP5M/+Uw2hZTDJs0aCeRtnMEIP/UHGOGb7W0OPt1qI4+N4r1/56B9Se+EFmRnL6yWC\n\trb9yGGJ9i68tK9JVEm2DGNl29P6MlDpBQdQknBNWKijUU6cnxUPy/8NcuP57G9Z9Dkss\n\taUEhkLzPAvfaT8xbMLdfGfMc5RMs1AkD1OjacbTtyarnHLoCg1+0yZ0WYbtMSWhHLymk\n\tyyowLaW9nXpLguGQeZNEs+vHBw2xdtaL3ymVaUwrnCVHnoHuTxiJUlRqliZAa331gK/7\n\tOLBQ==",
        "X-Gm-Message-State": "AHPjjUgtWY/M1tQWK2DqPvvUNGutR//AGf4DF2UhSfrPtkXEEghW579F\n\tCBIjLY/N3WfrQL3PGpg=",
        "X-Google-Smtp-Source": "ADKCNb6xLOBFsPUIHLAOobfKFBG2akdjPsICS5SpTtmvWx4sOHVN5rcyTuK7eiymABvMH84XwsKlVQ==",
        "X-Received": "by 10.28.72.87 with SMTP id v84mr1121027wma.45.1504382865362;\n\tSat, 02 Sep 2017 13:07:45 -0700 (PDT)",
        "From": "Romain Naour <romain.naour@gmail.com>",
        "To": "buildroot@buildroot.org",
        "Date": "Sat,  2 Sep 2017 22:07:41 +0200",
        "Message-Id": "<20170902200741.2878-1-romain.naour@gmail.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "MIME-Version": "1.0",
        "Cc": "Bernd Kuhls <bernd.kuhls@t-online.de>,\n\tRomain Naour <romain.naour@gmail.com>",
        "Subject": "[Buildroot] [PATCH v2] package/xmlstarlet: fix host build",
        "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>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "Provide the path to HOST_DIR for libxml, libxslt and libiconv like for\nthe target variant to avoid a build issue on host where /bin is a\nsymlink to /usr/bin.\n\nIndeed, the configure script use a custom m4 macro XSTAR_LIB_CHECK to\nfind xml2-config:\n\nXSTAR_LIB_CHECK([LIBXML], [xml2-config])\n\nThis macro come from a local m4 file m4/xstar-check-libs.m4 where it\nuse:\n\nAC_PATH_PROG(LIBXXX()_CONFIG, xxx_config(),\n               [], [$LIBXXX()_PREFIX/bin$PATH_SEPARATOR$PATH]\n\nSince no prefix seems to be defined by $LIBXXX()_PREFIX, AC_PATH_PROG\nlook by itself at /bin/ for xml2-config. So the PATH variable set\nby Buildroot containing HOST_DIR/bin is ignored.\n\nThe wrong xml2-config is used during the build and the build fail\nwhen no xml2 headers are installed on the host.\n\nFixes:\nsrc/xml_C14N.c:12:31: erreur fatale : libxml/xmlversion.h : No such file or directory\n #include <libxml/xmlversion.h>\n                               ^\nIn file included from src/trans.c:4:0:\nsrc/trans.h:32:30: erreur fatale : libxml/xmlmemory.h : No such file or directory\n #include <libxml/xmlmemory.h>\n\nSigned-off-by: Romain Naour <romain.naour@gmail.com>\nCc: Bernd Kuhls <bernd.kuhls@t-online.de>\n---\nv2: improve the commit message (ThomasP)\n---\n package/xmlstarlet/xmlstarlet.mk | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/package/xmlstarlet/xmlstarlet.mk b/package/xmlstarlet/xmlstarlet.mk\nindex 9920dcf..673eedb 100644\n--- a/package/xmlstarlet/xmlstarlet.mk\n+++ b/package/xmlstarlet/xmlstarlet.mk\n@@ -26,5 +26,10 @@ endif\n \n HOST_XMLSTARLET_DEPENDENCIES += host-libxml2 host-libxslt\n \n+HOST_XMLSTARLET_CONF_OPTS += \\\n+\t--with-libxml-prefix=$(HOST_DIR)/usr \\\n+\t--with-libxslt-prefix=$(HOST_DIR)/usr \\\n+\t--with-libiconv-prefix=$(HOST_DIR)/usr\n+\n $(eval $(autotools-package))\n $(eval $(host-autotools-package))\n",
    "prefixes": [
        "v2"
    ]
}