get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76414,
    "url": "http://patches.dpdk.org/api/patches/76414/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200903152717.42095-4-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-4-ciara.power@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200903152717.42095-4-ciara.power@intel.com",
    "date": "2020-09-03T15:26:43",
    "name": "[v3,03/37] examples/server_node_efd: convert to pkg-config-based build",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "410b895d4045c1d78083f8a1ddb491cc05dfab7f",
    "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-4-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/76414/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76414/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 ED76BA04BF;\n\tThu,  3 Sep 2020 17:28:38 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 39C3F1C0D1;\n\tThu,  3 Sep 2020 17:28:00 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id B42821C0BD\n for <dev@dpdk.org>; Thu,  3 Sep 2020 17:27:57 +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:27:56 -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:27:54 -0700"
        ],
        "IronPort-SDR": [
            "\n FQOxqehtxRAdcacCOeq9kr4R5R7ljJ4w+e7Wi1ZiWipIlyLISUW4AeB7kv/9rcH8v5wQQHEQP1\n yza+41XpOIJA==",
            "\n JNdw7ksCoyxL75DchkS8rOAjcZ7O5vUMKgJorTLmp+lMYw/Ms3pZ20YpveD1pc9h8GpRXLZxVb\n jcRXh+7jL3iA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9733\"; a=\"145332117\"",
            "E=Sophos;i=\"5.76,387,1592895600\"; d=\"scan'208\";a=\"145332117\"",
            "E=Sophos;i=\"5.76,387,1592895600\"; d=\"scan'208\";a=\"302243710\""
        ],
        "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": "Kevin Laatz <kevin.laatz@intel.com>,\n Byron Marohn <byron.marohn@intel.com>,\n Yipeng Wang <yipeng1.wang@intel.com>",
        "Date": "Thu,  3 Sep 2020 16:26:43 +0100",
        "Message-Id": "<20200903152717.42095-4-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 03/37] examples/server_node_efd: convert to\n\tpkg-config-based build",
        "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: Kevin Laatz <kevin.laatz@intel.com>\n\nRemove references to the old make build system and use pkg-config for\nbuilding these examples.\n\nSigned-off-by: Kevin Laatz <kevin.laatz@intel.com>\n---\n examples/server_node_efd/Makefile        | 18 +++------\n examples/server_node_efd/node/Makefile   | 46 +++++++++++++++------\n examples/server_node_efd/server/Makefile | 51 +++++++++++++++---------\n 3 files changed, 72 insertions(+), 43 deletions(-)",
    "diff": "diff --git a/examples/server_node_efd/Makefile b/examples/server_node_efd/Makefile\nindex cc2ea8b566..e4a4a94a79 100644\n--- a/examples/server_node_efd/Makefile\n+++ b/examples/server_node_efd/Makefile\n@@ -1,16 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2016-2017 Intel Corporation\n+# Copyright(c) 2016-2020 Intel Corporation\n \n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n+subdirs := node server\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+.PHONY: all static shared clean $(subdirs)\n+all static shared clean: $(subdirs)\n \n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += server\n-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += node\n-\n-include $(RTE_SDK)/mk/rte.extsubdir.mk\n+$(subdirs):\n+\t$(MAKE) -C $@ $(MAKECMDGOALS)\ndiff --git a/examples/server_node_efd/node/Makefile b/examples/server_node_efd/node/Makefile\nindex ecc551e1d6..a4efef42dc 100644\n--- a/examples/server_node_efd/node/Makefile\n+++ b/examples/server_node_efd/node/Makefile\n@@ -1,12 +1,5 @@\n # SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2016-2017 Intel Corporation\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, can be overridden by command line or environment\n-include $(RTE_SDK)/mk/rte.vars.mk\n+# Copyright(c) 2016-2020 Intel Corporation\n \n # binary name\n APP = node\n@@ -14,8 +7,37 @@ APP = node\n # all source are stored in SRCS-y\n SRCS-y := node.c\n \n-CFLAGS += $(WERROR_FLAGS) -O3\n-CFLAGS += -I$(SRCDIR)/../shared\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n+CFLAGS += -I../shared\n+\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+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-include $(RTE_SDK)/mk/rte.extapp.mk\n+.PHONY: clean\n+clean:\n+\trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n+\ttest -d build && rmdir -p build || true\ndiff --git a/examples/server_node_efd/server/Makefile b/examples/server_node_efd/server/Makefile\nindex acbd12ae23..106e1abd74 100644\n--- a/examples/server_node_efd/server/Makefile\n+++ b/examples/server_node_efd/server/Makefile\n@@ -1,30 +1,43 @@\n # SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2016-2017 Intel Corporation\n+# Copyright(c) 2016-2020 Intel Corporation\n \n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n+# binary name\n+APP = server\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+# all source are stored in SRCS-y\n+SRCS-y := main.c init.c args.c\n \n-include $(RTE_SDK)/mk/rte.vars.mk\n+CFLAGS += -I../shared\n \n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(error This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\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-# binary name\n-APP = server\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-# all source are stored in SRCS-y\n-SRCS-y := main.c init.c args.c\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-INC := $(sort $(wildcard *.h))\n+build/$(APP)-static: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_STATIC)\n \n-CFLAGS += $(WERROR_FLAGS) -O3\n-CFLAGS += -I$(SRCDIR)/../shared\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n+build:\n+\t@mkdir -p $@\n \n-include $(RTE_SDK)/mk/rte.extapp.mk\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",
        "03/37"
    ]
}