get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 65153,
    "url": "http://patches.dpdk.org/api/patches/65153/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200127154402.4008069-3-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": "<20200127154402.4008069-3-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200127154402.4008069-3-thomas@monjalon.net",
    "date": "2020-01-27T15:44:00",
    "name": "[v2,2/4] buildtools: get static mlx dependencies for meson",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "124e2d238ecc445d5c7bbac1eea28b6ef978ba78",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "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/20200127154402.4008069-3-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 8307,
            "url": "http://patches.dpdk.org/api/series/8307/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8307",
            "date": "2020-01-27T15:43:58",
            "name": "add static ibverbs in meson",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/8307/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/65153/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/65153/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 A5A43A0531;\n\tMon, 27 Jan 2020 16:44:36 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3330B1BFC4;\n\tMon, 27 Jan 2020 16:44:24 +0100 (CET)",
            "from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com\n [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id CEEB01BFC4\n for <dev@dpdk.org>; Mon, 27 Jan 2020 16:44:20 +0100 (CET)",
            "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n by mailout.nyi.internal (Postfix) with ESMTP id 5D12721F3C;\n Mon, 27 Jan 2020 10:44:20 -0500 (EST)",
            "from mailfrontend1 ([10.202.2.162])\n by compute1.internal (MEProxy); Mon, 27 Jan 2020 10:44:20 -0500",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 947E73280065;\n Mon, 27 Jan 2020 10:44:19 -0500 (EST)"
        ],
        "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=mesmtp; bh=G/VX32R447\n d6Woo4eizDozIsDMCpp7lY76O1MNQVlJA=; b=LckhguVii7OVA8HZ9HMTU2xlbK\n xveTL4iANEOHl6xzGwfQWcMnYK5P0douaEfvd1JEe2Snn/K9R4ES1kAQZlaSz4KY\n YKUI1HUuxGAxyxi6wqfYnvxNuM5Fm9bDNUnFKBhUMMQtmd7/at8EMO+P6fkJlaW3\n buK9B028lyefUQevE=",
            "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 fm1; bh=G/VX32R447d6Woo4eizDozIsDMCpp7lY76O1MNQVlJA=; b=FOMR6PJN\n Sof4uTSLz1RWauf3hO0xNbStihAN7xDauRwQnlNoqKEqGjWq0GPprEVj6h+X7xri\n ScWcQoGTxAv6wBP+L9s3xx+jBI4HXk49WXrky4A65oBzY3HRKzuxlL+nOlM/Op2a\n sMu3qI1XLC3pNB4dBFWZzSyVqLqbLcLsBZE+8TwL+hiBrS2wMferNm4s4LdElBH5\n wyPIug9R0SE7Jg3cHhmR8KfDT8p5WppzY5b/P2zt47LQXtVwtRMW/JTLDpZCi20w\n Zu0TbkwtiuLDCHeER0b+3JPfNFAWVgbqqNmgy2bxke3XkE54dor51YnXu1qA0uvb\n Jv7rMbPrkVhnbw=="
        ],
        "X-ME-Sender": "<xms:VAUvXtEXkaSNVtRz4pQZ6Y4lWSth8hk8BY1zjxQbVxKI6OFiwHIvSQ>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedugedrfedvgdejkecutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc\n fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs\n ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph\n epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgepvdenucfrrghr\n rghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth",
        "X-ME-Proxy": "<xmx:VAUvXrcXEQJBrgjunHYUEOpj5uD8XC9mMRouO2hMy9C2Pcr7E9dt9g>\n <xmx:VAUvXoD1bV9Z5suKQ4UtyyojdbB33V_fpMxMLUct3d_XIsKLn_RnTA>\n <xmx:VAUvXlt7fU5D7D0mnjG_OGdTuRTYSXuiHmhk2d8mb_KyE6JZI-I4rw>\n <xmx:VAUvXhagk6OwGlLGFj7xIQgCkChIlHaN43ZWhaKiL4RtL2UHT__Uhg>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "bruce.richardson@intel.com, Matan Azrad <matan@mellanox.com>,\n Shahaf Shuler <shahafs@mellanox.com>,\n Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "Date": "Mon, 27 Jan 2020 16:44:00 +0100",
        "Message-Id": "<20200127154402.4008069-3-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.24.1",
        "In-Reply-To": "<20200127154402.4008069-1-thomas@monjalon.net>",
        "References": "<20200116071656.1663967-1-thomas@monjalon.net>\n <20200127154402.4008069-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 2/4] buildtools: get static mlx dependencies\n\tfor meson",
        "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": "The shell script options-ibverbs-static.sh was used with make\nin forcing static linkage of ibverbs libraries.\n\nWhen choosing to link with a static dependency in meson,\nthe generated .pc file will not force such static linkage.\nThe solution will rely on using this script in meson.\n\nIf linking with libraries installed in a non-standard path,\nan option -L is provided via EXTRA_LDFLAGS in case of using make.\nWith meson, tuning PKG_CONFIG_PATH for pkg-config should be enough.\nWhen statically linking an application, the .pc file must save the\n-L path so the application link will work without any extra option.\nThat's why --libs-only-l is replaced with --libs which includes -L.\nOptions which are neither -l or -L are filtered out because not needed\nand can cause compilation issues with the legacy system using make.\n\nThe other change in this script is to move the main library file\n(libiverbs.a) at the end of the list of dependencies.\nIt fixes some undefined references when linking a static application\nusing libdpdk.pc.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n buildtools/options-ibverbs-static.sh | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/buildtools/options-ibverbs-static.sh b/buildtools/options-ibverbs-static.sh\nindex 0f285a343b..43578a37f3 100755\n--- a/buildtools/options-ibverbs-static.sh\n+++ b/buildtools/options-ibverbs-static.sh\n@@ -9,6 +9,12 @@\n #\n # PKG_CONFIG_PATH may be required to be set if libibverbs.pc is not installed.\n \n-pkg-config --libs-only-l --static libibverbs |\n+lib='libibverbs'\n+deps='pthread|nl'\n+\n+pkg-config --libs --static $lib |\n \ttr '[:space:]' '\\n' |\n-\tsed -r '/^-l(pthread|nl)/! s,(^-l)(.*),\\1:lib\\2.a,'\n+\tsed -r \"/^-l($deps)/! s,(^-l)(.*),\\1:lib\\2.a,\" |   # explicit .a\n+\tsed -n '/^-[Ll]/p' |   # extra link options may break with make\n+\tsed \"/$lib/d\"   # move main lib at the end\n+echo -l:$lib.a\n",
    "prefixes": [
        "v2",
        "2/4"
    ]
}