get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 135792,
    "url": "http://patches.dpdk.org/api/patches/135792/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240107154137.4909-1-syalavarthi@marvell.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": "<20240107154137.4909-1-syalavarthi@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240107154137.4909-1-syalavarthi@marvell.com",
    "date": "2024-01-07T15:41:36",
    "name": "[1/1] buildtools: remove absolute paths from pc file",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0e65f02efb1ec6bc6f3a6039f8384e3a591a9715",
    "submitter": {
        "id": 2480,
        "url": "http://patches.dpdk.org/api/people/2480/?format=api",
        "name": "Srikanth Yalavarthi",
        "email": "syalavarthi@marvell.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/20240107154137.4909-1-syalavarthi@marvell.com/mbox/",
    "series": [
        {
            "id": 30754,
            "url": "http://patches.dpdk.org/api/series/30754/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30754",
            "date": "2024-01-07T15:41:36",
            "name": "[1/1] buildtools: remove absolute paths from pc file",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/30754/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/135792/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/135792/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 19E6E43857;\n\tSun,  7 Jan 2024 16:42:17 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0B094402B1;\n\tSun,  7 Jan 2024 16:42:17 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id D65DD402A9\n for <dev@dpdk.org>; Sun,  7 Jan 2024 16:42:15 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 407CPDUs015632; Sun, 7 Jan 2024 07:42:15 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3vf53qjkqj-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Sun, 07 Jan 2024 07:42:13 -0800 (PST)",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Sun, 7 Jan 2024 07:41:53 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Sun, 7 Jan 2024 07:41:53 -0800",
            "from ml-host-33.caveonetworks.com (unknown [10.110.143.233])\n by maili.marvell.com (Postfix) with ESMTP id 7C5093F7093;\n Sun,  7 Jan 2024 07:41:53 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=\n from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding:content-type; s=pfpt0220; bh=2XMAaX7a\n aih7S10PbC2RzdIm5FoU834s77VKJ0gm4tk=; b=kl3JCnfTdWQnRKOCyvHMxV9I\n T9i0YK2hstYu/qARJZ1J44sKkmuHB5vfi/rdgx0m5fmctZy5bNHnj1SIWgeAPV76\n 7dBE0qECvmATh20MauKyKKfdrZERmm84mCu2vWON0O8gCRUHrGHjmfNWyEBTkyEw\n inFdBYLKWFzR/1/bS/4TwblYnL/MGmQcir0nMIytJbAcqOgGF9PqWt32DEKRWoYu\n SJrYvPBWUA4dpYHqdxrL6qhJF24+jdaRo68OrEQqPM25H40HvSTKfMQtCooDxbeZ\n DNTQmxg0Fz0NO9aGWplNDtNFaXTeAFD8MyA0ujDvtcESIsiGLMfpF4s9feDLeA==",
        "From": "Srikanth Yalavarthi <syalavarthi@marvell.com>",
        "To": "Bruce Richardson <bruce.richardson@intel.com>",
        "CC": "<dev@dpdk.org>, <aprabhu@marvell.com>, <syalavarthi@marvell.com>,\n <sshankarnara@marvell.com>, <ptakkar@marvell.com>",
        "Subject": "[PATCH 1/1] buildtools: remove absolute paths from pc file",
        "Date": "Sun, 7 Jan 2024 07:41:36 -0800",
        "Message-ID": "<20240107154137.4909-1-syalavarthi@marvell.com>",
        "X-Mailer": "git-send-email 2.42.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "Sj7e_HMXOj3I0SWIzW6Fuc38ly1sKk9G",
        "X-Proofpoint-GUID": "Sj7e_HMXOj3I0SWIzW6Fuc38ly1sKk9G",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "When linking with non-versioned libraries, absolute paths\nof the libraries are added to libdpdk.pc. This patch replaces\nthe absolute path with correct linker flags, -l<libname>.\n\nhttps://github.com/mesonbuild/meson/issues/7766\n\nSigned-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>\n---\n buildtools/pkg-config/set-static-linker-flags.py | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/buildtools/pkg-config/set-static-linker-flags.py b/buildtools/pkg-config/set-static-linker-flags.py\nindex 2745db34c29..e8804353383 100644\n--- a/buildtools/pkg-config/set-static-linker-flags.py\n+++ b/buildtools/pkg-config/set-static-linker-flags.py\n@@ -9,6 +9,8 @@\n \n \n def fix_ldflag(f):\n+    if (f.startswith('/') and (f.endswith('.so') or f.endswith('.a'))):\n+        return f.split('/', -1)[-1].split('.', -1)[0].replace('lib', '-l', 1)\n     if not f.startswith('-lrte_'):\n         return f\n     return '-l:lib' + f[2:] + '.a'\n",
    "prefixes": [
        "1/1"
    ]
}