get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76418,
    "url": "http://patches.dpdk.org/api/patches/76418/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200903152717.42095-8-ciara.power@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200903152717.42095-8-ciara.power@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200903152717.42095-8-ciara.power@intel.com",
    "date": "2020-09-03T15:26:47",
    "name": "[v3,07/37] examples/vm_power_manager: convert guest cli to pkg-config",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "68a1aff23f0ee4de40f19881416adddc1122434b",
    "submitter": {
        "id": 978,
        "url": "http://patches.dpdk.org/api/people/978/?format=api",
        "name": "Power, Ciara",
        "email": "ciara.power@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200903152717.42095-8-ciara.power@intel.com/mbox/",
    "series": [
        {
            "id": 11929,
            "url": "http://patches.dpdk.org/api/series/11929/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11929",
            "date": "2020-09-03T15:26:40",
            "name": "remove make support in DPDK",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/11929/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76418/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76418/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DF6FBA04BF;\n\tThu,  3 Sep 2020 17:29:35 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 24E891C120;\n\tThu,  3 Sep 2020 17:28:05 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id 907AD1C112\n for <dev@dpdk.org>; Thu,  3 Sep 2020 17:28:02 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Sep 2020 08:28:02 -0700",
            "from silpixa00399953.ir.intel.com (HELO\n silpixa00399953.ger.corp.intel.com) ([10.237.222.53])\n by orsmga006.jf.intel.com with ESMTP; 03 Sep 2020 08:28:01 -0700"
        ],
        "IronPort-SDR": [
            "\n mkA7Uv7X255wB5DKUyWN+m8g3NJjXJKdZ9K+1cKS9mTgcvsDCvJHirJG5q+erPn8OkFdVqxHmD\n t8NBh/yyeH0Q==",
            "\n baPJJdOS6fxM/0bHgTZrR5diAA8tGVyEP01qeSxCcZikKnxooITeUWGX+axVUAIMI5Rupw/fxH\n 8nTshIq7QHEA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9733\"; a=\"145332140\"",
            "E=Sophos;i=\"5.76,387,1592895600\"; d=\"scan'208\";a=\"145332140\"",
            "E=Sophos;i=\"5.76,387,1592895600\"; d=\"scan'208\";a=\"302243763\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Ciara Power <ciara.power@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n David Hunt <david.hunt@intel.com>",
        "Date": "Thu,  3 Sep 2020 16:26:47 +0100",
        "Message-Id": "<20200903152717.42095-8-ciara.power@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200903152717.42095-1-ciara.power@intel.com>",
        "References": "<20200807123009.21266-1-ciara.power@intel.com>\n <20200903152717.42095-1-ciara.power@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 07/37] examples/vm_power_manager: convert\n\tguest cli to pkg-config",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Bruce Richardson <bruce.richardson@intel.com>\n\nConvert the makefile for the vm_power_manager/guest_cli utility to build\nusing pkg-config rather than the old build system.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n examples/vm_power_manager/guest_cli/Makefile | 50 ++++++++++++--------\n 1 file changed, 31 insertions(+), 19 deletions(-)",
    "diff": "diff --git a/examples/vm_power_manager/guest_cli/Makefile b/examples/vm_power_manager/guest_cli/Makefile\nindex 67cf081936..b84deec574 100644\n--- a/examples/vm_power_manager/guest_cli/Makefile\n+++ b/examples/vm_power_manager/guest_cli/Makefile\n@@ -1,14 +1,5 @@\n # SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2010-2014 Intel Corporation\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n+# Copyright(c) 2010-2020 Intel Corporation\n \n # binary name\n APP = guest_vm_power_mgr\n@@ -16,14 +7,35 @@ APP = guest_vm_power_mgr\n # all source are stored in SRCS-y\n SRCS-y := main.c vm_power_cli_guest.c parse.c\n \n-CFLAGS += -O3 -I$(RTE_SDK)/lib/librte_power/\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n+# Build using pkg-config variables if possible\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+$(error \"no installation of DPDK found\")\n endif\n \n-include $(RTE_SDK)/mk/rte.extapp.mk\n+all: shared\n+.PHONY: shared static\n+shared: build/$(APP)-shared\n+\tln -sf $(APP)-shared build/$(APP)\n+static: build/$(APP)-static\n+\tln -sf $(APP)-static build/$(APP)\n+\n+PKGCONF ?= pkg-config\n+\n+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n+CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n+LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n+\n+build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n+\n+build/$(APP)-static: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_STATIC)\n+\n+build:\n+\t@mkdir -p $@\n+\n+.PHONY: clean\n+clean:\n+\trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n+\ttest -d build && rmdir -p build || true\n",
    "prefixes": [
        "v3",
        "07/37"
    ]
}