get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 856382,
    "url": "http://patchwork.ozlabs.org/api/patches/856382/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20180106145349.3225-1-marcus.folkesson@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": "<20180106145349.3225-1-marcus.folkesson@gmail.com>",
    "list_archive_url": null,
    "date": "2018-01-06T14:53:49",
    "name": "libsepol: set PREFIX to generate proper .pc file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "63fe80209988af84cf3e5c84dc1d89df3425ca0c",
    "submitter": {
        "id": 46679,
        "url": "http://patchwork.ozlabs.org/api/people/46679/?format=api",
        "name": "Marcus Folkesson",
        "email": "marcus.folkesson@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20180106145349.3225-1-marcus.folkesson@gmail.com/mbox/",
    "series": [
        {
            "id": 21708,
            "url": "http://patchwork.ozlabs.org/api/series/21708/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=21708",
            "date": "2018-01-06T14:53:49",
            "name": "libsepol: set PREFIX to generate proper .pc file",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/21708/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/856382/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/856382/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=\"EXXEkH59\"; 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 3zDPgY0ymQz9s4s\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  7 Jan 2018 01:54:01 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 1D8B4273A1;\n\tSat,  6 Jan 2018 14:53:57 +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 xxu2uPZyHhOI; Sat,  6 Jan 2018 14:53:54 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id BA39527379;\n\tSat,  6 Jan 2018 14:53:54 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 15A761C1734\n\tfor <buildroot@lists.busybox.net>;\n\tSat,  6 Jan 2018 14:53:53 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 1203188BAF\n\tfor <buildroot@lists.busybox.net>;\n\tSat,  6 Jan 2018 14:53:53 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 6f0MKchSNdvp for <buildroot@lists.busybox.net>;\n\tSat,  6 Jan 2018 14:53:52 +0000 (UTC)",
            "from mail-lf0-f68.google.com (mail-lf0-f68.google.com\n\t[209.85.215.68])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 4DBFD88B9C\n\tfor <buildroot@buildroot.org>; Sat,  6 Jan 2018 14:53:52 +0000 (UTC)",
            "by mail-lf0-f68.google.com with SMTP id w196so7928124lff.5\n\tfor <buildroot@buildroot.org>; Sat, 06 Jan 2018 06:53:52 -0800 (PST)",
            "from localhost.localdomain (c-2ec264ee-74736162.cust.telenor.se.\n\t[46.194.100.238]) by smtp.gmail.com with ESMTPSA id\n\te192sm1442694lfg.83.2018.01.06.06.53.49\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 06 Jan 2018 06:53:49 -0800 (PST)"
        ],
        "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;\n\tbh=J1rMBQKBzDmi2lh8RwXvvVvjcqvYfejHx+aiqKP/Xco=;\n\tb=EXXEkH59pxsjdsB3GMH4iXvh4QYsaewmjJ3c3Taw+MxgQ3wc7ElRycu5qQ3f7iEZdq\n\tpIVXBU9tFb0aohkGETvenIHH7pFh1FTKAsJENbD3Ono9TizhxYKYgVtJ8xTxvrShO+L5\n\tjbKbls0gXTAKxzony3NalD3/N/ZGILobrnh8+ocfIWnWRM1E71manPZeZwyeOVIbNWS8\n\tpJuh8ncSIsElhIDqaV05aTEIDPDFh5kd9gja4S45pfz005m8VQokT91VMxVz1Em/6D1f\n\tfpf7JqTgrs9QV5aeuqNWX67isRsXIDn2VmrFFcxT4vKcke4EVU92vD8ZRIcGoi4FkTed\n\t8EuA==",
        "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;\n\tbh=J1rMBQKBzDmi2lh8RwXvvVvjcqvYfejHx+aiqKP/Xco=;\n\tb=QwFW5SoUFifLuDHUcDPsGQgCriP4yigbKWYlHgQFBaf+3RggkI9xxs17x4I/UWdqRt\n\tJFedxA/4+WWlQGH4hDVsur177mQk/mjSZRTCBE7X3y+g0Tyla6QCIF6DSAR9mrywt16I\n\tFu6iW/gCDcsIVLtd1c73R33awqSJB5l3rKfHgjtipzEi9riiRLa1FBnry302nhhTdRtS\n\t4HN89vrpxHtuKKReMlPhMmGgw6aZslBx8uiBHGAi4yL26EGfnTUKqD5ChE6NCnCaObSS\n\tOHmpfyFjuqPG/B1y+UdrOumFk8GCmC3E5eCRmIAslsJ+Qmp06KjWfXYM2PKoLZDgK9lN\n\tAc8A==",
        "X-Gm-Message-State": "AKwxytfa0pWQ6G8bupSNKL3utU9PS1V+3CgJWv/bt/45fTDw13QoelwV\n\ti2q5S7qx0UrMdmt/ecJBzHePmRih",
        "X-Google-Smtp-Source": "ACJfBouJ8h1RmjxfreeANPYdNBzmhDvLZ97auU3G/aOqIhWJWmuyiJtasXsug22d6yplFTmbUY5Pkg==",
        "X-Received": "by 10.25.213.13 with SMTP id m13mr3092824lfg.4.1515250430467;\n\tSat, 06 Jan 2018 06:53:50 -0800 (PST)",
        "From": "Marcus Folkesson <marcus.folkesson@gmail.com>",
        "To": "buildroot@buildroot.org",
        "Date": "Sat,  6 Jan 2018 15:53:49 +0100",
        "Message-Id": "<20180106145349.3225-1-marcus.folkesson@gmail.com>",
        "X-Mailer": "git-send-email 2.15.1",
        "Subject": "[Buildroot] [PATCH] libsepol: set PREFIX to generate proper .pc file",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.24",
        "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>",
        "Cc": "Marcus Folkesson <marcus.folkesson@gmail.com>,\n\tAdam Duskett <aduskett@gmail.com>",
        "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": "Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>\n---\n package/libsepol/libsepol.mk | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/package/libsepol/libsepol.mk b/package/libsepol/libsepol.mk\nindex c54c3bfc42..d94955023c 100644\n--- a/package/libsepol/libsepol.mk\n+++ b/package/libsepol/libsepol.mk\n@@ -19,10 +19,11 @@ ifeq ($(BR2_STATIC_LIBS),y)\n LIBSEPOL_MAKE_FLAGS += STATIC=1\n endif\n \n+# DESTDIR is needed during the compile to compute library and header paths.\n define LIBSEPOL_BUILD_CMDS\n \t# DESTDIR is needed during the compile to compute library and\n \t# header paths.\n-\t$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(STAGING_DIR)\n+\t$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(STAGING_DIR) PREFIX=/usr\n endef\n \n define LIBSEPOL_INSTALL_STAGING_CMDS\n@@ -33,6 +34,7 @@ define LIBSEPOL_INSTALL_TARGET_CMDS\n \t$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(TARGET_DIR)\n endef\n \n+# DESTDIR is needed during the compile to compute library and header paths.\n HOST_LIBSEPOL_MAKE_ENV = \\\n \t$(HOST_MAKE_ENV) \\\n \tDESTDIR=$(HOST_DIR) \\\n",
    "prefixes": []
}