get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 14883,
    "url": "https://patches.dpdk.org/api/patches/14883/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1468857995-130392-1-git-send-email-sergio.gonzalez.monroy@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1468857995-130392-1-git-send-email-sergio.gonzalez.monroy@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1468857995-130392-1-git-send-email-sergio.gonzalez.monroy@intel.com",
    "date": "2016-07-18T16:06:35",
    "name": "[dpdk-dev,v2] mk: fix FreeBSD build",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2735e475aabab4fb9732af013e03c27c0a281901",
    "submitter": {
        "id": 73,
        "url": "https://patches.dpdk.org/api/people/73/?format=api",
        "name": "Sergio Gonzalez Monroy",
        "email": "sergio.gonzalez.monroy@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1468857995-130392-1-git-send-email-sergio.gonzalez.monroy@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/14883/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/14883/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 90A249E7;\n\tMon, 18 Jul 2016 18:06:40 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 70503968\n\tfor <dev@dpdk.org>; Mon, 18 Jul 2016 18:06:38 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga101.fm.intel.com with ESMTP; 18 Jul 2016 09:06:37 -0700",
            "from sie-lab-212-209.ir.intel.com (HELO\n\tsilpixa00377983.ir.intel.com) ([10.237.212.209])\n\tby orsmga001.jf.intel.com with ESMTP; 18 Jul 2016 09:06:36 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.28,384,1464678000\"; d=\"scan'208\";a=\"997611082\"",
        "From": "Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas.monjalon@6wind.com, christian.ehrhardt@canonical.com,\n\tferruh.yigit@intel.com",
        "Date": "Mon, 18 Jul 2016 17:06:35 +0100",
        "Message-Id": "<1468857995-130392-1-git-send-email-sergio.gonzalez.monroy@intel.com>",
        "X-Mailer": "git-send-email 2.4.11",
        "In-Reply-To": "<1468847463-107132-1-git-send-email-sergio.gonzalez.monroy@intel.com>",
        "References": "<1468847463-107132-1-git-send-email-sergio.gonzalez.monroy@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2] mk: fix FreeBSD build",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The sed syntax of '0,/regexp/' is GNU specific and fails with\nnon GNU sed in FreeBSD.\n\nTo solve the issue we can use awk instead to remove duplicates.\n\nFixes: b2063f104db7 (\"mk: filter duplicate configuration entries\")\n\nSigned-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>\n---\n\nv2:\n- Use temp var instead of temp file\n\n mk/rte.sdkconfig.mk | 7 ++-----\n 1 file changed, 2 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk\nindex e93237f..c2b6e13 100644\n--- a/mk/rte.sdkconfig.mk\n+++ b/mk/rte.sdkconfig.mk\n@@ -88,11 +88,8 @@ $(RTE_OUTPUT)/.config: $(RTE_CONFIG_TEMPLATE) FORCE | $(RTE_OUTPUT)\n \t\t$(CPP) -undef -P -x assembler-with-cpp \\\n \t\t-ffreestanding \\\n \t\t-o $(RTE_OUTPUT)/.config_tmp $(RTE_CONFIG_TEMPLATE) ; \\\n-\t\tfor config in $$(grep -v \"^#\" $(RTE_OUTPUT)/.config_tmp | cut -d\"=\" -f1 | sort | uniq -d); do \\\n-\t\t\twhile [ $$(grep \"^$${config}=\" $(RTE_OUTPUT)/.config_tmp -c ) -gt 1 ]; do \\\n-\t\t\t\tsed -i \"0,/^$${config}=/{//d}\" $(RTE_OUTPUT)/.config_tmp; \\\n-\t\t\tdone; \\\n-\t\tdone; \\\n+\t\tconfig=$$(grep -v \"^#\" $(RTE_OUTPUT)/.config_tmp) ; \\\n+\t\techo \"$$config\" | awk -F'=' '{a[$$1]=$$0} END {for (i in a) print a[i]}' > $(RTE_OUTPUT)/.config_tmp ; \\\n \t\tif ! cmp -s $(RTE_OUTPUT)/.config_tmp $(RTE_OUTPUT)/.config; then \\\n \t\t\tcp $(RTE_OUTPUT)/.config_tmp $(RTE_OUTPUT)/.config ; \\\n \t\t\tcp $(RTE_OUTPUT)/.config_tmp $(RTE_OUTPUT)/.config.orig ; \\\n",
    "prefixes": [
        "dpdk-dev",
        "v2"
    ]
}