get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76785,
    "url": "http://patches.dpdk.org/api/patches/76785/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200907220711.437405-4-thomas@monjalon.net/",
    "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": "<20200907220711.437405-4-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200907220711.437405-4-thomas@monjalon.net",
    "date": "2020-09-07T22:06:43",
    "name": "[v4,03/31] examples/ka-agent: convert to pkg-config-based build",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "dc436697331d2ddcc541144b3579f23c6ed41ee2",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200907220711.437405-4-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 12000,
            "url": "http://patches.dpdk.org/api/series/12000/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12000",
            "date": "2020-09-07T22:06:40",
            "name": "remove make support in DPDK",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/12000/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76785/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76785/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 B7A97A04AA;\n\tTue,  8 Sep 2020 00:07:55 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 57DA91C12B;\n\tTue,  8 Sep 2020 00:07:29 +0200 (CEST)",
            "from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 8741F1C0D8\n for <dev@dpdk.org>; Tue,  8 Sep 2020 00:07:24 +0200 (CEST)",
            "from compute7.internal (compute7.nyi.internal [10.202.2.47])\n by mailout.nyi.internal (Postfix) with ESMTP id 2B7065C00D7;\n Mon,  7 Sep 2020 18:07:24 -0400 (EDT)",
            "from mailfrontend1 ([10.202.2.162])\n by compute7.internal (MEProxy); Mon, 07 Sep 2020 18:07:24 -0400",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 4B2113280059;\n Mon,  7 Sep 2020 18:07:23 -0400 (EDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm2; bh=fdMxf82nDfs+b\n UAbqzNQbHjrVJQT5brf1hyVdLXOeYs=; b=o2Iyzb/e0PYxCsY1Dvd+31OXFHj/D\n zA5y8F2E9g4SlNZpc7pQ7TM71U2gPMLqNUH5ZquCjj4QVyKoSYtocNPYLqAp+pIe\n NwwLXBpJoAw7yg8TvkrI3BWTZhSHhi1+kOcKfehkX42T4EEu4BgJvdVg+0OKOjki\n RzWMiihrarlsoQtPOCV1q6QB3Z4qM6wQKU+PBEPVE2ILPLdB3ekLHwArRZX2M0aU\n FPvOzK0XI7kr01cJikyLLhW7ponnhvI6eodbsidEfWX9yDLfguqlxrJgC+Qoa1KP\n uKR5GlmbwguT8dIl8zvNRvUdsNVSWw/1DDRcLjdtRl8NZk5bYJvByw8Rg==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm3; bh=fdMxf82nDfs+bUAbqzNQbHjrVJQT5brf1hyVdLXOeYs=; b=Rs+BlWbG\n AC3KMuXl/NRUJfnPQMxy1Wgbk3sKc3NCDx10fsBuccryXvibcJ8ZjpI/3+AES7QL\n gS7xH1GoF1J5zTlewxPSUsU3c/KBoPAcPt84GM0QbK9DjvPYvToJ+V/FtLyZlaJ3\n vtYFFBqxJ/qUgDnpwbBgNLXl0VFDZmKjq95LAySLFpKoeEEFe2pcU445Fuv+BFJr\n /a4SXqAK+7oTe0N5TZvjQ5Uv0nhcRKNFqzCEC4/hq6KWbXPem4VmuI6a+xDkm/2Z\n YsmuOh3GScpUAFXZo+NITIxIlsn8gZzxdQD08rmAtJCDrAhSIer/8OCeYgR3RsEo\n GQrujMxY3LJq6Q=="
        ],
        "X-ME-Sender": "<xms:G69WX4SPamXtim0mLpqom5rNJo-5xT0xsTGhVJ0wJtb8Ds_kcM52TQ>\n <xme:G69WX1zP9fhed1fXmXep_9ethXrkQ772V58ReYoMpJ2k5T_M9mjMoQLh3dm7nrsI8\n DShs9yzBOCJKuaIVg>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduiedrudehuddgtdefucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr\n shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg\n ftrfgrthhtvghrnhepieetgfegleevudetkeefveefieeufeffvdeiudevfeeikefgueek\n fedvgfevgedunecuffhomhgrihhnpehvrghrshdrmhhkpdgvgihtrghpphdrmhhknecukf\n hppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgr\n rhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght",
        "X-ME-Proxy": "<xmx:HK9WX11KJsE257wCEDVIB9Fhv-iJZyNlr-QBGHjhCX3SUa19qkR5rw>\n <xmx:HK9WX8CjvByUY3FAI5pzqzw0HTqEPnmcq0oQfd4vJCpbFONAzHEgGA>\n <xmx:HK9WXxj9s2isThh6BAXmSNNTHCBLusSgUQGotWcfxKendZTUYiQlFQ>\n <xmx:HK9WX0uVqILT_Ytqjvnx7cpGE9knx6ndBPIg49VWMZgQt6EHsspBFg>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com, bruce.richardson@intel.com,\n ciara.power@intel.com, Kevin Laatz <kevin.laatz@intel.com>",
        "Date": "Tue,  8 Sep 2020 00:06:43 +0200",
        "Message-Id": "<20200907220711.437405-4-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.28.0",
        "In-Reply-To": "<20200907220711.437405-1-thomas@monjalon.net>",
        "References": "<20200903152717.42095-1-ciara.power@intel.com>\n <20200907220711.437405-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 03/31] examples/ka-agent: 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/l2fwd-keepalive/ka-agent/Makefile | 51 ++++++++++++++++------\n 1 file changed, 37 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/examples/l2fwd-keepalive/ka-agent/Makefile b/examples/l2fwd-keepalive/ka-agent/Makefile\nindex 8d5061b178..700137c2e2 100644\n--- a/examples/l2fwd-keepalive/ka-agent/Makefile\n+++ b/examples/l2fwd-keepalive/ka-agent/Makefile\n@@ -1,14 +1,5 @@\n # SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2016 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) 2016-2020 Intel Corporation\n \n # binary name\n APP = ka-agent\n@@ -16,7 +7,39 @@ APP = ka-agent\n # all source are stored in SRCS-y\n SRCS-y := main.c\n \n-CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)/../\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-LDFLAGS += -lrt\n-include $(RTE_SDK)/mk/rte.extapp.mk\n+CFLAGS += -I..\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+LDFLAGS += -lpthread -lrt\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": [
        "v4",
        "03/31"
    ]
}