get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 495237,
    "url": "http://patchwork.ozlabs.org/api/patches/495237/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1436905227-26937-9-git-send-email-clayton.shotwell@rockwellcollins.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": "<1436905227-26937-9-git-send-email-clayton.shotwell@rockwellcollins.com>",
    "list_archive_url": null,
    "date": "2015-07-14T20:20:20",
    "name": "[v9,08/15] sysvinit: added libselinux dependency",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "7d970154a7ffb73974fde8f14b4105f7a41118ea",
    "submitter": {
        "id": 64481,
        "url": "http://patchwork.ozlabs.org/api/people/64481/?format=api",
        "name": "Clayton Shotwell",
        "email": "clayton.shotwell@rockwellcollins.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1436905227-26937-9-git-send-email-clayton.shotwell@rockwellcollins.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/495237/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/495237/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"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 5D6531402AC\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 15 Jul 2015 06:21:23 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 123342E70F;\n\tTue, 14 Jul 2015 20:21:22 +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 yBp8j9bRn3Oz; Tue, 14 Jul 2015 20:21:18 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 5B4C6264A8;\n\tTue, 14 Jul 2015 20:21:18 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id DC8981C1FCC\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 14 Jul 2015 20:21:16 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id D80FAA43E1\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 14 Jul 2015 20:21:16 +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 mLpDKtLv362i for <buildroot@lists.busybox.net>;\n\tTue, 14 Jul 2015 20:21:15 +0000 (UTC)",
            "from ch3vs01.rockwellcollins.com (ch3vs01.rockwellcollins.com\n\t[205.175.226.27])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 6A2A6A438D\n\tfor <buildroot@buildroot.org>; Tue, 14 Jul 2015 20:20:47 +0000 (UTC)",
            "from ofwch3n02.rockwellcollins.com (HELO\n\tcrulimr02.rockwellcollins.com) ([205.175.226.14])\n\tby ch3vs01.rockwellcollins.com with ESMTP; 14 Jul 2015 15:20:46 -0500"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-Received": "from thehammer.rockwellcollins.com (unknown [192.168.141.197])\n\tby crulimr02.rockwellcollins.com (Postfix) with ESMTP id A1CA760150; \n\tTue, 14 Jul 2015 15:20:46 -0500 (CDT)",
        "From": "Clayton Shotwell <clayton.shotwell@rockwellcollins.com>",
        "To": "buildroot@buildroot.org",
        "Date": "Tue, 14 Jul 2015 15:20:20 -0500",
        "Message-Id": "<1436905227-26937-9-git-send-email-clayton.shotwell@rockwellcollins.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1436905227-26937-1-git-send-email-clayton.shotwell@rockwellcollins.com>",
        "References": "<1436905227-26937-1-git-send-email-clayton.shotwell@rockwellcollins.com>",
        "Subject": "[Buildroot] [PATCH v9 08/15] sysvinit: added libselinux dependency",
        "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>",
        "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": "From: Matt Weber <matthew.weber@rockwellcollins.com>\n\nSigned-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>\nReviewed-by: Samuel Martin <s.martin49@gmail.com>\n\n---\nChanges v8 -> v9:\n  - No changes\n\nChanges v7 -> v8:\n  - No changes\n\nChanges v6 -> v7:\n  - No changes\n\nChanges v5 -> v6:\n  - No changes\n\nChanges v4 -> v5:\n  - Removed unnecessary += when adding buysbox dependency (Ryan B.)\n  - Removed duplicate assignment of OPTS (Matt W.)\n  - Added description to patch and signed off line (Clayton S.)\n\nChanges v1 -> v4:\n  - Did not exist\n---\n ...1-Fix-SELinux-compile-flags-and-libraries.patch | 44 ++++++++++++++++++++++\n package/sysvinit/sysvinit.mk                       |  5 +++\n 2 files changed, 49 insertions(+)\n create mode 100644 package/sysvinit/0001-Fix-SELinux-compile-flags-and-libraries.patch",
    "diff": "diff --git a/package/sysvinit/0001-Fix-SELinux-compile-flags-and-libraries.patch b/package/sysvinit/0001-Fix-SELinux-compile-flags-and-libraries.patch\nnew file mode 100644\nindex 0000000..f857e07\n--- /dev/null\n+++ b/package/sysvinit/0001-Fix-SELinux-compile-flags-and-libraries.patch\n@@ -0,0 +1,44 @@\n+From e7dc523c1850534d98ab90dd02e07ee214e21f24 Mon Sep 17 00:00:00 2001\n+From: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>\n+Date: Fri, 1 May 2015 10:58:47 -0500\n+Subject: [PATCH] Fix SELinux compile flags and libraries\n+\n+The SELinux flags, added as CPPFLAGS, end up getting dropped by the\n+Makefile. Also ensuring sulogin is linked against libsepol which is\n+required.\n+\n+Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>\n+---\n+ src/Makefile | 8 ++++----\n+ 1 file changed, 4 insertions(+), 4 deletions(-)\n+\n+diff --git a/src/Makefile b/src/Makefile\n+index e2b8028..bf1ae81 100644\n+--- a/src/Makefile\n++++ b/src/Makefile\n+@@ -104,7 +104,7 @@ utmpdump:\tutmpdump.o\n+ \n+ runlevel:\trunlevel.o\n+ \n+-sulogin:\tLDLIBS += $(SULOGINLIBS) $(STATIC)\n++sulogin:\tLDLIBS += $(SULOGINLIBS) $(INITLIBS) $(STATIC)\n+ sulogin:\tsulogin.o\n+ \n+ wall:\t\tdowall.o wall.o\n+@@ -114,10 +114,10 @@ shutdown:\tdowall.o shutdown.o utmp.o reboot.h\n+ bootlogd:\tLDLIBS += -lutil\n+ bootlogd:\tbootlogd.o\n+ \n+-sulogin.o:\tCPPFLAGS += $(SELINUX_DEF)\n+-sulogin.o:\tsulogin.c \n++sulogin.o:\tCFLAGS += $(SELINUX_DEF)\n++sulogin.o:\tsulogin.c\n+ \n+-init.o:\t\tCPPFLAGS += $(SELINUX_DEF)\n++init.o:\t\tCFLAGS += $(SELINUX_DEF)\n+ init.o:\t\tinit.c init.h set.h reboot.h initreq.h\n+ \n+ utmp.o:\t\tutmp.c init.h\n+-- \n+1.9.1\n+\ndiff --git a/package/sysvinit/sysvinit.mk b/package/sysvinit/sysvinit.mk\nindex 2460dd9..2b39ee6 100644\n--- a/package/sysvinit/sysvinit.mk\n+++ b/package/sysvinit/sysvinit.mk\n@@ -16,6 +16,11 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)\n SYSVINIT_DEPENDENCIES = busybox\n endif\n \n+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)\n+SYSVINIT_DEPENDENCIES += libselinux\n+TARGET_CONFIGURE_OPTS += WITH_SELINUX=\"yes\" ROOT=\"$(TARGET_DIR)\"\n+endif\n+\n define SYSVINIT_DEBIAN_PATCHES\n \tif [ -d $(@D)/debian/patches ]; then \\\n \t\t$(APPLY_PATCHES) $(@D) $(@D)/debian/patches \\*.patch; \\\n",
    "prefixes": [
        "v9",
        "08/15"
    ]
}