get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 65748,
    "url": "http://patches.dpdk.org/api/patches/65748/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200212015944.3037000-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": "<20200212015944.3037000-4-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200212015944.3037000-4-thomas@monjalon.net",
    "date": "2020-02-12T01:59:41",
    "name": "[v4,3/6] buildtools: get static mlx dependencies for meson",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d5bab3eaabaead341df8c5457679caa1989299fc",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200212015944.3037000-4-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 8506,
            "url": "http://patches.dpdk.org/api/series/8506/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8506",
            "date": "2020-02-12T01:59:38",
            "name": "mlx ibverbs linking in meson",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/8506/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/65748/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/65748/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 7A5C6A0530;\n\tWed, 12 Feb 2020 03:00:27 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DB9841BDF8;\n\tWed, 12 Feb 2020 02:59:58 +0100 (CET)",
            "from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com\n [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 07EED2BF1\n for <dev@dpdk.org>; Wed, 12 Feb 2020 02:59:57 +0100 (CET)",
            "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n by mailout.nyi.internal (Postfix) with ESMTP id AE9DC21B14;\n Tue, 11 Feb 2020 20:59:56 -0500 (EST)",
            "from mailfrontend1 ([10.202.2.162])\n by compute1.internal (MEProxy); Tue, 11 Feb 2020 20:59:56 -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 E3108328005E;\n Tue, 11 Feb 2020 20:59:55 -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=H/+z4oNHkV\n jRmZuRiw2F6f0Sev3pNw3XncrPU3rLCjk=; b=g5z5n+LxEnN+ase/tTPz9RthmY\n WxHXiEtw6EEzhbUohJRCVm/iVDHYrfNCBKYRbkY95sJsg77jjVzbAL2HK8wu8r+k\n Cr/ObmyZAybxX1eDmrH0Q4OKP5rnslVvA6Dr+jr8zqPTXDfluK91J5XtvLi2TdPj\n mBZJ+gL6NgSsZCFdU=",
            "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 fm2; bh=H/+z4oNHkVjRmZuRiw2F6f0Sev3pNw3XncrPU3rLCjk=; b=HGNx9mjF\n /17DJf57VjrcIxmguxlCk8ylSCGb1EtoQ/lMXVAom1Lfjnm8evjiq6kTb/mXwlqa\n A8htlm/O5NFi6EB+SQPxGRl3nRYmlLTnNfDZue3CdRYzpxxQTvxAe312lG9iSGin\n e1xmfUsG+vApl+b/t9qQJ3NSAInRIw0s4gqupV82BgyPcXiJHO0IiZcy0B+/In1y\n iq2XG6E9436EUD5YNEaNsxZ/uDi0sAAlKJWn5y6XnZ1KnoW7+SqAWFVmiSg6gQAV\n UfcMEPbT9kBIdYNOdcftQnM2BL+gtDtvwIHpL4rlaqRwGYBThM+5YCDoxJP+drki\n hMsJFFqlvzg1pA=="
        ],
        "X-ME-Sender": "<xms:HFxDXuGUfagC9yMrv-drhMQqkjRovzoHSjFYRn3pAfIYq-xDiNqb8g>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedugedrieeggdefgecutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc\n fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs\n ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph\n epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgepvdenucfrrghr\n rghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth",
        "X-ME-Proxy": "<xmx:HFxDXtBCEmrK495uD1PYDDjwJhKBR2pNJYCfm2dSoVx6fdfaENEiyg>\n <xmx:HFxDXinp6En6VYi77vxgaqIKTE6GmIpLftBzW31byG-gjmT-Kvn-DQ>\n <xmx:HFxDXgQ-PEOP37pEyPDtGHIIygnGuy7zHN5NKrSsL0t3vy5UwGtwvw>\n <xmx:HFxDXgL54oUiZofH6Ot8k1sUYj8emYxc-JTDat8YRVvJiYIxk1p90w>",
        "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": "Wed, 12 Feb 2020 02:59:41 +0100",
        "Message-Id": "<20200212015944.3037000-4-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.25.0",
        "In-Reply-To": "<20200212015944.3037000-1-thomas@monjalon.net>",
        "References": "<20200116071656.1663967-1-thomas@monjalon.net>\n <20200212015944.3037000-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 3/6] 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 drop the first occurrences of the\nmain library file (libiverbs.a). Only the last occurrence is kept.\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 | 11 +++++++++--\n 1 file changed, 9 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/buildtools/options-ibverbs-static.sh b/buildtools/options-ibverbs-static.sh\nindex 0f285a343b..0740a711ff 100755\n--- a/buildtools/options-ibverbs-static.sh\n+++ b/buildtools/options-ibverbs-static.sh\n@@ -9,6 +9,13 @@\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+\ttac |\n+\tawk \"/^-l:$lib.a/&&c++ {next} 1\" | # drop first duplicates of main lib\n+\ttac\n",
    "prefixes": [
        "v4",
        "3/6"
    ]
}