get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 303716,
    "url": "http://patchwork.ozlabs.org/api/patches/303716/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1387485489-4186-3-git-send-email-clshotwe@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": "<1387485489-4186-3-git-send-email-clshotwe@rockwellcollins.com>",
    "list_archive_url": null,
    "date": "2013-12-19T20:37:51",
    "name": "[v5,02/20] libselinux: new package",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "bdf46fa0593a5e49aac49d7592c42cba16ce00bb",
    "submitter": {
        "id": 38285,
        "url": "http://patchwork.ozlabs.org/api/people/38285/?format=api",
        "name": "Clayton Shotwell",
        "email": "clshotwe@rockwellcollins.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1387485489-4186-3-git-send-email-clshotwe@rockwellcollins.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/303716/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/303716/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 hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id 42DAE2C00D3\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 Dec 2013 07:38:40 +1100 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 2E5B293E30;\n\tThu, 19 Dec 2013 20:38:39 +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 bSqpIoUn2M9M; Thu, 19 Dec 2013 20:38:38 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 4956F93E7E;\n\tThu, 19 Dec 2013 20:38:38 +0000 (UTC)",
            "from whitealder.osuosl.org (whitealder.osuosl.org\n\t[140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 4B85B1BF99B\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:36 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 4B21E8C5C9\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:36 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id tUVbn03nX1zJ for <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:34 +0000 (UTC)",
            "from secvs02.rockwellcollins.com (secvs02.rockwellcollins.com\n\t[205.175.225.241])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 1010289892\n\tfor <buildroot@busybox.net>; Thu, 19 Dec 2013 20:38:33 +0000 (UTC)",
            "from nosuchhost.198.131.in-addr.arpa (HELO\n\tcollinscrsmtp01.rockwellcollins.com) ([131.198.63.132])\n\tby mail-virt.rockwellcollins.com with ESMTP;\n\t19 Dec 2013 14:38:24 -0600",
            "from nyx ([131.198.63.11])\n\tby collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2\n\tHF162) with ESMTP id 2013121914381494-2990128 ;\n\tThu, 19 Dec 2013 14:38:14 -0600 "
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "From": "Clayton Shotwell <clshotwe@rockwellcollins.com>",
        "To": "buildroot@busybox.net",
        "Date": "Thu, 19 Dec 2013 14:37:51 -0600",
        "Message-Id": "<1387485489-4186-3-git-send-email-clshotwe@rockwellcollins.com>",
        "X-Mailer": "git-send-email 1.7.1",
        "In-Reply-To": "<1387485489-4186-1-git-send-email-clshotwe@rockwellcollins.com>",
        "References": "<1387485489-4186-1-git-send-email-clshotwe@rockwellcollins.com>",
        "X-MIMETrack": "Itemize by SMTP Server on\n\tCollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release\n\t8.5.2FP2 HF162|May 16, 2011) at 12/19/2013 02:38:14 PM,\n\tSerialize by Router on\n\tCollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release\n\t8.5.2FP2 HF162|May 16, 2011) at 12/19/2013 02:38:24 PM,\n\tSerialize complete at 12/19/2013 02:38:24 PM",
        "X-TNEFEvaluated": "1",
        "Cc": "Clayton Shotwell <clshotwe@rockwellcollins.com>",
        "Subject": "[Buildroot] [PATCH v5 02/20] libselinux: new package",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.14",
        "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-bounces@busybox.net"
    },
    "content": "Signed-off-by: Clayton Shotwell <clshotwe@rockwellcollins.com>\n---\nChanges v4 -> v5:\n  - No changes.\nChanges v3 -> v4:\n  - Re-added the Python bindings configure option (suggested\n    by Thomas).\n  - Added the creation of the selinux mount point to the\n    install step (suggested by Thomas).\n  - Cleaned up configure comments (suggested by Thomas).\n  - Removed the package clean command.\nChanges v2 -> v3:\n  - Added dependencies on BR2_TOOLCHAIN_HAS_THREADS and\n    BR2_LARGEFILE (suggested by Thomas).\n  - Corrected a minor issue in the mk file found during testing.\nChanges v1 -> v2:\n  - Move Config.in entry into the libraries section since this is a\n    library.\n  - General cleanup to the mk file to conform to the standard format.\n  - Removed a dependency on the Linux kernel.\n  - Changed the original Python select in the Config.in to be a check\n    in the libselinux.mk file.\n  - Added a select for libsepol and pcre in the menuconfig instead of\n    just having package dependencies.\n  - Removed building the python bindings in the host configuration.\n---\n package/Config.in                |    1 +\n package/libselinux/Config.in     |   29 ++++++++++++\n package/libselinux/libselinux.mk |   88 ++++++++++++++++++++++++++++++++++++++\n 3 files changed, 118 insertions(+), 0 deletions(-)\n create mode 100644 package/libselinux/Config.in\n create mode 100644 package/libselinux/libselinux.mk",
    "diff": "diff --git a/package/Config.in b/package/Config.in\nindex 3685807..c57b169 100644\n--- a/package/Config.in\n+++ b/package/Config.in\n@@ -739,6 +739,7 @@ source \"package/tzdata/Config.in\"\n endmenu\n \n menu \"Security\"\n+source \"package/libselinux/Config.in\"\n source \"package/libsepol/Config.in\"\n endmenu\n \ndiff --git a/package/libselinux/Config.in b/package/libselinux/Config.in\nnew file mode 100644\nindex 0000000..14182c3\n--- /dev/null\n+++ b/package/libselinux/Config.in\n@@ -0,0 +1,29 @@\n+config BR2_PACKAGE_LIBSELINUX\n+\tbool \"libselinux\"\n+\tselect BR2_PACKAGE_LIBSEPOL\n+\tselect BR2_PACKAGE_PCRE\n+\tdepends on BR2_TOOLCHAIN_HAS_THREADS\n+\tdepends on BR2_LARGEFILE\n+\thelp\n+\t  libselinux is the runtime SELinux library that provides\n+\t  interfaces (e.g. library functions for the SELinux kernel\n+\t  APIs like getcon(), other support functions like\n+\t  getseuserbyname()) to SELinux-aware applications. libselinux\n+\t  may use the shared libsepol to manipulate the binary policy\n+\t  if necessary (e.g. to downgrade the policy format to an\n+\t  older version supported by the kernel) when loading policy.\n+\n+\t  http://selinuxproject.org/page/Main_Page\n+\n+comment \"libselinux needs a toolchain w/ largefile, threads\"\n+        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE\n+\n+if BR2_PACKAGE_LIBSELINUX\n+\n+config BR2_PACKAGE_LIBSELINUX_PYTHON_BINDINGS\n+\tselect BR2_PACKAGE_PYTHON\n+\tbool \"python bindings\"\n+\thelp\n+\t  enable building python bindings\n+\n+endif\ndiff --git a/package/libselinux/libselinux.mk b/package/libselinux/libselinux.mk\nnew file mode 100644\nindex 0000000..035d721\n--- /dev/null\n+++ b/package/libselinux/libselinux.mk\n@@ -0,0 +1,88 @@\n+################################################################################\n+#\n+# libselinux\n+#\n+################################################################################\n+\n+LIBSELINUX_VERSION = 2.1.13\n+LIBSELINUX_SITE = http://userspace.selinuxproject.org/releases/20130423/\n+LIBSELINUX_LICENSE = PublicDomain\n+LIBSELINUX_LICENSE_FILES = LICENSE\n+\n+LIBSELINUX_DEPENDENCIES = libsepol pcre\n+\n+LIBSELINUX_INSTALL_STAGING = YES\n+\n+LIBSELINUX_MAKE_OPTS = \\\n+\t$(TARGET_CONFIGURE_OPTS) \\\n+\tLDFLAGS=\"$(TARGET_LDFLAGS) -lpcre -lpthread\"\n+\n+ifeq ($(BR2_PACKAGE_LIBSELINUX_PYTHON_BINDINGS),y)\n+\n+LIBSELINUX_DEPENDENCIES += python host-swig host-python\n+LIBSELINUX_MAKE_OPTS += \\\n+\tPYINC=\"-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/\" \\\n+\tPYTHONLIBDIR=\"-L$(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/\" \\\n+\tPYLIBVER=\"python$(PYTHON_VERSION_MAJOR)\" \\\n+\tSWIG_LIB=\"$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/\"\n+\n+define LIBSELINUX_PYTHON_BUILD_CMDS\n+\t# DESTDIR is needed during the compile to compute library and \n+\t# header paths.\n+\t$(MAKE) -C $(@D) $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR) swigify pywrap\n+endef\n+\n+define LIBSELINUX_PYTHON_INSTALL_STAGING_CMDS\n+\t$(MAKE) -C $(@D) install-pywrap $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR)\n+endef\n+\n+define LIBSELINUX_PYTHON_INSTALL_TARGET_CMDS\n+\t$(MAKE) -C $(@D) install-pywrap $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(TARGET_DIR)\n+endef\n+\n+endif\n+\n+define LIBSELINUX_BUILD_CMDS\n+\t# DESTDIR is needed during the compile to compute library and \n+\t# header paths.\n+\t$(MAKE) -C $(@D) $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR) all\n+\t$(LIBSELINUX_PYTHON_BUILD_CMDS)\n+endef\n+\n+define LIBSELINUX_INSTALL_STAGING_CMDS\n+\t$(MAKE) -C $(@D) install $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR)\n+\t$(LIBSELINUX_PYTHON_INSTALL_STAGING_CMDS)\n+endef\n+\n+define LIBSELINUX_INSTALL_TARGET_CMDS\n+\t$(MAKE) -C $(@D) install $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(TARGET_DIR)\n+\t$(LIBSELINUX_PYTHON_INSTALL_TARGET_CMDS)\n+\t# Create the selinuxfs mount point\n+\tmkdir $(TARGET_DIR)/selinux\n+endef\n+\n+HOST_LIBSELINUX_DEPENDENCIES = host-libsepol host-pcre\n+\n+HOST_LIBSELINUX_MAKE_OPTS = $(HOST_CONFIGURE_OPTS) \\\n+\tLDFLAGS=\"$(HOST_LDFLAGS) -lpcre -lpthread\"\n+\n+define HOST_LIBSELINUX_BUILD_CMDS\n+\t# DESTDIR is needed during the compile to compute library and \n+\t# header paths.\n+\t$(MAKE) -C $(@D) $(HOST_LIBSELINUX_MAKE_OPTS) DESTDIR=$(HOST_DIR) all\n+endef\n+\n+define HOST_LIBSELINUX_INSTALL_CMDS\n+\t$(MAKE) -C $(@D) install $(HOST_LIBSELINUX_MAKE_OPTS) DESTDIR=$(HOST_DIR)\n+\tmv $(HOST_DIR)/lib/libselinux.so.1 $(HOST_DIR)/usr/lib\n+\t(cd $(HOST_DIR)/usr/lib; rm -f libselinux.so; \\\n+\t\tln -s libselinux.so.1 libselinux.so)\n+\t-rmdir $(HOST_DIR)/lib\n+\t(if [ -f $(HOST_DIR)/sbin/matchpathcon ]; then \\\n+\t\tmv $(HOST_DIR)/sbin/matchpathcon $(HOST_DIR)/usr/sbin/; \\\n+\t\t-rmdir $(HOST_DIR)/sbin; \\\n+\tfi)\n+endef\n+\n+$(eval $(generic-package))\n+$(eval $(host-generic-package))\n",
    "prefixes": [
        "v5",
        "02/20"
    ]
}