get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 65715,
    "url": "http://patches.dpdk.org/api/patches/65715/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200211011942.1569573-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": "<20200211011942.1569573-3-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200211011942.1569573-3-thomas@monjalon.net",
    "date": "2020-02-11T01:19:39",
    "name": "[v3,2/5] 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": 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/20200211011942.1569573-3-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 8489,
            "url": "http://patches.dpdk.org/api/series/8489/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8489",
            "date": "2020-02-11T01:19:38",
            "name": "mlx ibverbs linking in meson",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/8489/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/65715/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/65715/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 D002DA051C;\n\tTue, 11 Feb 2020 02:20:23 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 00D5F1BF9C;\n\tTue, 11 Feb 2020 02:20:05 +0100 (CET)",
            "from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 5F40D1BF7A\n for <dev@dpdk.org>; Tue, 11 Feb 2020 02:20:02 +0100 (CET)",
            "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n by mailout.nyi.internal (Postfix) with ESMTP id A7E0621FBC;\n Mon, 10 Feb 2020 20:20:01 -0500 (EST)",
            "from mailfrontend1 ([10.202.2.162])\n by compute1.internal (MEProxy); Mon, 10 Feb 2020 20:20:01 -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 D5D6C3280059;\n Mon, 10 Feb 2020 20:20:00 -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=6711hToojC\n 2tXwPiTgG2PV8Q5PellWmvK3/lkPrvOE4=; b=YNNxSHCDsczHlRvMREFnrR+WXY\n p5i9QoQPBXxKsLfb+0RfNiDfh4IwQs97AFE5XTuV6JY/YxT2iAhxanLTdYxT+GP6\n QxcLYqREFnOHEujvf7fYyI6hcLU/xTjMUlS6IBFEMj6ic9o+gtRLZJNIEplRrTCp\n lrKz/Z3jmq0zD/pGQ=",
            "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=6711hToojC2tXwPiTgG2PV8Q5PellWmvK3/lkPrvOE4=; b=gFP6BK1f\n u+CNPIwQYbUc+Qt+vIVb2wkZQEj3olQY5T/qpmtYllZ0bPAgxR52ChVIC2+rj9H/\n 8sD42KaUFV6zbThQwFEg92aqSQ6Prv8v26abmj9leEF00+4YDG49Zw8skHbwRAf9\n WxjZ5tXE8y3iW9Vwpo3IT7XBiNO8dz3P1H2OwkZ5Z7U9P1xFP14gxCFVLlYtk1aZ\n zOuVOglFZNb82cCh3VMEJQe509dNxor3Uf+Wc66LwJvzPn3Qk4Jy0KAI9xjINiUO\n 8V526B9c1eN2qvqN0aZayrtan/skC2aPKCe2A/+aPfvyPRH3S4kfxXIuIwX/mzcd\n iHlX4DEJc16iyQ=="
        ],
        "X-ME-Sender": "<xms:QQFCXgb0ipERyYQGBZn05COShFdjILNo6TL-SE7Ho7TQkAHhZiDIVA>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedugedriedvgdefvdcutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc\n fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs\n ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph\n epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgepvdenucfrrghr\n rghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth",
        "X-ME-Proxy": "<xmx:QQFCXohgZAM7WOUOLbUyAr2KPLOpNrOhGvz4TiHnjq_PaqdbT0w93A>\n <xmx:QQFCXrYxSCwhwWE4SoA4RZ_wcdUAXIelYE01mZLBC034QDthq1BVjw>\n <xmx:QQFCXrovCPsHs-kKCUUgPuZh8sTLa6aHtKTPUuKZdAD9aP5BQ7eNsg>\n <xmx:QQFCXhEAXv6C8Lb3eq4JMCSQFZKxRu5I3SS2-pm5upnsBtcYC_AyoA>",
        "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": "Tue, 11 Feb 2020 02:19:39 +0100",
        "Message-Id": "<20200211011942.1569573-3-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.25.0",
        "In-Reply-To": "<20200211011942.1569573-1-thomas@monjalon.net>",
        "References": "<20200127154402.4008069-1-thomas@monjalon.net>\n <20200211011942.1569573-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 2/5] 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": [
        "v3",
        "2/5"
    ]
}