get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 303722,
    "url": "http://patchwork.ozlabs.org/api/patches/303722/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1387485489-4186-6-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-6-git-send-email-clshotwe@rockwellcollins.com>",
    "list_archive_url": null,
    "date": "2013-12-19T20:37:54",
    "name": "[v5,05/20] libsemanage: new package",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "4cbd4eeab805f1ad5cb6b7aeebead0a93c43cf1e",
    "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-6-git-send-email-clshotwe@rockwellcollins.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/303722/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/303722/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 whitealder.osuosl.org (whitealder.osuosl.org\n\t[140.211.166.138])\n\tby ozlabs.org (Postfix) with ESMTP id 48ED52C0079\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 Dec 2013 07:39:27 +1100 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 831BC8CA62;\n\tThu, 19 Dec 2013 20:39:26 +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 5EtGOryvF1uK; Thu, 19 Dec 2013 20:39:20 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 5A3B88C6F7;\n\tThu, 19 Dec 2013 20:38:49 +0000 (UTC)",
            "from whitealder.osuosl.org (whitealder.osuosl.org\n\t[140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 01BEB1BF99B\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:40 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 0175D89892\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:40 +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 15BK28TCFc-Q for <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:39 +0000 (UTC)",
            "from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com\n\t[205.175.225.240])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 011D68C5BE\n\tfor <buildroot@busybox.net>; Thu, 19 Dec 2013 20:38:38 +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:19 -0600",
            "from nyx ([131.198.63.11])\n\tby collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2\n\tHF162) with ESMTP id 2013121914381814-2990138 ;\n\tThu, 19 Dec 2013 14:38:18 -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:54 -0600",
        "Message-Id": "<1387485489-4186-6-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:18 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:19 PM,\n\tSerialize complete at 12/19/2013 02:38:19 PM",
        "X-TNEFEvaluated": "1",
        "Cc": "Clayton Shotwell <clshotwe@rockwellcollins.com>",
        "Subject": "[Buildroot] [PATCH v5 05/20] libsemanage: 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  - Added back in the Python bindings creation configure option\n    (suggested by Thomas).\n  - Added a dependency on host-flex (suggeste by Thomas).\n  - Cleaned up configure comments (suggested by Thomas).\n  - Removed the clean command.\nChanges v2 -> v3:\n  - Changes patch naming convention (suggested by Thomas).\n  - Added dependencies on BR2_TOOLCHAIN_HAS_THREADS and BR2_LARGEFILE\n    (suggested by Thomas).\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  - Fixed the patch naming to avoid using the version number.\n  - Cleaned up the patch to include a signed-off-by line.\n  - Changed package dependencies into selects in the config.\n  - Changed the original Python select in the Config.in to be a check\n    in the mk file.\n  - Removed building the python bindings in the host configuration.\n---\n package/Config.in                                  |    1 +\n package/libsemanage/Config.in                      |   30 ++++++++\n .../libsemanage-0001-execption-lib-path-fix.patch  |   14 ++++\n package/libsemanage/libsemanage.mk                 |   72 ++++++++++++++++++++\n 4 files changed, 117 insertions(+), 0 deletions(-)\n create mode 100644 package/libsemanage/Config.in\n create mode 100644 package/libsemanage/libsemanage-0001-execption-lib-path-fix.patch\n create mode 100644 package/libsemanage/libsemanage.mk",
    "diff": "diff --git a/package/Config.in b/package/Config.in\nindex b71b82a..1bb32f4 100644\n--- a/package/Config.in\n+++ b/package/Config.in\n@@ -740,6 +740,7 @@ endmenu\n \n menu \"Security\"\n source \"package/libselinux/Config.in\"\n+source \"package/libsemanage/Config.in\"\n source \"package/libsepol/Config.in\"\n endmenu\n \ndiff --git a/package/libsemanage/Config.in b/package/libsemanage/Config.in\nnew file mode 100644\nindex 0000000..e4013cd\n--- /dev/null\n+++ b/package/libsemanage/Config.in\n@@ -0,0 +1,30 @@\n+config BR2_PACKAGE_LIBSEMANAGE\n+\tbool \"libsemanage\"\n+\tselect BR2_PACKAGE_LIBSELINUX\n+\tselect BR2_PACKAGE_USTR\n+\tselect BR2_PACKAGE_BZIP2\n+\tdepends on BR2_TOOLCHAIN_HAS_THREADS\n+\tdepends on BR2_LARGEFILE\n+\thelp\n+\t  libsemanage is the policy management library. It uses\n+\t  libsepol for binary policy manipulation and libselinux for\n+\t  interacting with the SELinux system. It also exec's helper\n+\t  programs for loading policy and for checking whether the\n+\t  file_contexts configuration is valid (load_policy and\n+\t  setfiles from policycoreutils) presently, although this may\n+\t  change at least for the bootstrapping case (for rpm).\n+\n+\t  http://selinuxproject.org/page/Main_Page\n+\n+comment \"libsemanage needs a toolchain w/ largefile, threads\"\n+\tdepends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE\n+\n+if BR2_PACKAGE_LIBSEMANAGE\n+\n+config BR2_PACKAGE_LIBSEMANAGE_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/libsemanage/libsemanage-0001-execption-lib-path-fix.patch b/package/libsemanage/libsemanage-0001-execption-lib-path-fix.patch\nnew file mode 100644\nindex 0000000..cbcbea5\n--- /dev/null\n+++ b/package/libsemanage/libsemanage-0001-execption-lib-path-fix.patch\n@@ -0,0 +1,14 @@\n+Patch to correct a missing header file issue.\n+\n+Signed-off-by Clayton Shotwell <clshotwe@rockwellcollins.com>\n+\n+--- a/src/exception.sh\t2011-12-21 11:46:04.000000000 -0600\n++++ b/src/exception.sh\t2012-08-27 11:29:58.000000000 -0500\n+@@ -9,6 +9,6 @@\n+ }\n+ \"\n+ }\n+-gcc -x c -c - -aux-info temp.aux < ../include/semanage/semanage.h\n++gcc -x c -c - -aux-info temp.aux -I../include < ../include/semanage/semanage.h\n+ for i in `awk '/extern int/ { print $6 }' temp.aux`; do except $i ; done\n+ rm -f -- temp.aux -.o\ndiff --git a/package/libsemanage/libsemanage.mk b/package/libsemanage/libsemanage.mk\nnew file mode 100644\nindex 0000000..44d8324\n--- /dev/null\n+++ b/package/libsemanage/libsemanage.mk\n@@ -0,0 +1,72 @@\n+################################################################################\n+#\n+# libsemanage\n+#\n+################################################################################\n+\n+LIBSEMANAGE_VERSION = 2.1.10\n+LIBSEMANAGE_SITE = http://userspace.selinuxproject.org/releases/20130423/\n+LIBSEPOL_LICENSE = LGPLv2.1+\n+LIBSEPOL_LICENSE_FILES = COPYING\n+\n+LIBSEMANAGE_DEPENDENCIES = host-bison host-flex libselinux ustr bzip2\n+\n+LIBSEMANAGE_INSTALL_STAGING = YES\n+\n+LIBSEMANAGE_MAKE_OPT = $(TARGET_CONFIGURE_OPTS)\n+\n+ifeq ($(BR2_PACKAGE_LIBSEMANAGE_PYTHON_BINDINGS),y)\n+\n+LIBSEMANAGE_DEPENDENCIES += python host-swig host-python\n+LIBSEMANAGE_MAKE_OPT += \\\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 LIBSEMANAGE_PYTHON_BUILD_CMDS\n+\t$(MAKE) -C $(@D) $(LIBSEMANAGE_MAKE_OPT) DESTDIR=$(STAGING_DIR) swigify pywrap\n+endef\n+\n+define LIBSEMANAGE_PYTHON_INSTALL_STAGING_CMDS\n+\t$(MAKE) -C $(@D) install-pywrap $(LIBSEMANAGE_MAKE_OPT) DESTDIR=$(STAGING_DIR)\n+endef\n+\n+define LIBSEMANAGE_PYTHON_INSTALL_TARGET_CMDS\n+\t$(MAKE) -C $(@D) install-pywrap $(LIBSEMANAGE_MAKE_OPT) DESTDIR=$(TARGET_DIR)\n+endef\n+\n+endif # End of BR2_PACKAGE_PYTHON\n+\n+define LIBSEMANAGE_BUILD_CMDS\n+\t# DESTDIR is needed during the compile to compute library and \n+\t# header paths.\n+\t$(MAKE) -C $(@D) $(LIBSEMANAGE_MAKE_OPT) DESTDIR=$(STAGING_DIR) all\n+\t$(LIBSEMANAGE_PYTHON_BUILD_CMDS)\n+endef\n+\n+define LIBSEMANAGE_INSTALL_STAGING_CMDS\n+\t$(MAKE) -C $(@D) install $(LIBSEMANAGE_MAKE_OPT) DESTDIR=$(STAGING_DIR)\n+\t$(LIBSEMANAGE_PYTHON_INSTALL_STAGING_CMDS)\n+endef\n+\n+define LIBSEMANAGE_INSTALL_TARGET_CMDS\n+\t$(MAKE) -C $(@D) install $(LIBSEMANAGE_MAKE_OPT) DESTDIR=$(TARGET_DIR)\n+\t$(LIBSEMANAGE_PYTHON_INSTALL_TARGET_CMDS)\n+endef\n+\n+HOST_LIBSEMANAGE_DEPENDENCIES = host-bison host-libsepol \\\n+\thost-libselinux host-ustr host-bzip2\n+\n+define HOST_LIBSEMANAGE_BUILD_CMDS\n+\t# DESTDIR is needed during the compile to compute library and \n+\t# header paths.\n+\t$(MAKE) -C $(@D) all $(HOST_CONFIGURE_OPTS) DESTDIR=$(HOST_DIR)\n+endef\n+\n+define HOST_LIBSEMANAGE_INSTALL_CMDS\n+\t$(MAKE) -C $(@D) install $(HOST_CONFIGURE_OPTS) DESTDIR=$(HOST_DIR)\n+endef\n+\n+$(eval $(generic-package))\n+$(eval $(host-generic-package))\n",
    "prefixes": [
        "v5",
        "05/20"
    ]
}