get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 96716,
    "url": "https://patches.dpdk.org/api/patches/96716/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210808125139.3573701-6-thomas@monjalon.net/",
    "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": "<20210808125139.3573701-6-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210808125139.3573701-6-thomas@monjalon.net",
    "date": "2021-08-08T12:51:38",
    "name": "[v3,5/5] devtools: test different build types",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "927f7d9c76e70010454a084a37d2d4d8d36615d1",
    "submitter": {
        "id": 685,
        "url": "https://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210808125139.3573701-6-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 18224,
            "url": "https://patches.dpdk.org/api/series/18224/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=18224",
            "date": "2021-08-08T12:51:33",
            "name": "more build tests",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/18224/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/96716/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/96716/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 705C9A0A0C;\n\tSun,  8 Aug 2021 14:52:15 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4761941174;\n\tSun,  8 Aug 2021 14:51:55 +0200 (CEST)",
            "from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com\n [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id C6C774117E\n for <dev@dpdk.org>; Sun,  8 Aug 2021 14:51:53 +0200 (CEST)",
            "from compute6.internal (compute6.nyi.internal [10.202.2.46])\n by mailout.nyi.internal (Postfix) with ESMTP id 7E7405C00D8;\n Sun,  8 Aug 2021 08:51:53 -0400 (EDT)",
            "from mailfrontend1 ([10.202.2.162])\n by compute6.internal (MEProxy); Sun, 08 Aug 2021 08:51:53 -0400",
            "by mail.messagingengine.com (Postfix) with ESMTPA; Sun,\n 8 Aug 2021 08:51:52 -0400 (EDT)"
        ],
        "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=fm1; bh=oMpwMIIkQeAkX\n oQGL2zpp6Ef+GLmB1ae5ewAamYSTJo=; b=IxcLpO0LqX8mZ86q+etjLQwcB2fzO\n 7/HFKHbT6rZd1is9kKLDG1+58Rp6RIDywb2Lsq9V3eoG8ga6GRuiMZA27O3tMzms\n 9+p+B9CMzcPCZxoTCuDvYDvDcTGN9HdI9oNuRMiy0/UXEmWisRQfHNDaX+7cANpV\n p81n2LbMnAxTRCEsJDwqHJYdQE3zGFS6kl5vYSmCdDRr8b4aZpje/XlX7/o6kaGV\n IjCC+bMAlEmEx52ZQLanrZTH4shquYaQfA18yQaUGgXsId7NtPS0v89eGAylDcCD\n fskqE76cWiziypjCl9jomY3uuBQk9IIc+ZVB53lTPbvirDrp2BZnpfCKw==",
            "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 fm3; bh=oMpwMIIkQeAkXoQGL2zpp6Ef+GLmB1ae5ewAamYSTJo=; b=qwDQ8leM\n lrhc5SinqxjI3+6pk+o0RBwI8aYKfnCOWj+qWDGgPEVsGUJkfKyHAZ/7DeBMyRVe\n N7fD71tBu2x+vCU1hJeDFCdahEk6bhsEhFdFTLK+ClViSF55bY0DOwVjo7zB6Bjq\n fs9eof86/AWCMZWeQVTBE0sUtfxb/dBGDSmIr1vQgl83Qpoy2GJN8rQxvUELC2fe\n q3VJ0y2dxMTxXr4K2zd3k7ZryvaPZBtqg9Onvtb/VatR7IvoMRjfsQL1mompCL7x\n BeBYl1bGY8YWvyRSMKFCQTcwtuh+OM78ei1goLishvzGQaNfFRCgdPqwOe6yfKYF\n chOpk9A1RXkZmA=="
        ],
        "X-ME-Sender": "<xms:adMPYbXtGzC1t0rArzEFRQ8uE6nW5hQMi4Oogxc909fnY_9KgySl8w>\n <xme:adMPYTnwRvTTL5wQT2OmmyM0A6bXyyi60FzBn7t2CzFFj6pRrNEiXC7F1a2wWhn1e\n X44y6clskMiYxtfmg>",
        "X-ME-Received": "\n <xmr:adMPYXbW85fl6ifX3d27ggX55lT0KwzqmrjRHJCHKt0DyUxoTUJLV7bF_JXcK2PmClEiTCEpOn6v5woEHlXoXm1VnvzFeWk>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedvtddrjeehgdehjecutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc\n fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs\n ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf\n frrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedtgfeu\n tdehtdegveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh\n hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght",
        "X-ME-Proxy": "<xmx:adMPYWXAKxMtrL_fU_fwIoakW8BSQqnDYWWeeMjGzZZPdl1YXTQuEw>\n <xmx:adMPYVlt26cxObSaHc9k6bzMuzovvC6Ngj-VDSxrlUbxbuuIWpgVVg>\n <xmx:adMPYTchnhmRgKCK3J52jBDQfKu3yjnbVtBHmUGjCyBkRfvdNxJ2uQ>\n <xmx:adMPYaxs273T_U1q4J4SpXbpnCh2J8Zid1srPU9c0ZdK3a8o6Z7u_A>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "bruce.richardson@intel.com, david.marchand@redhat.com,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>",
        "Date": "Sun,  8 Aug 2021 14:51:38 +0200",
        "Message-Id": "<20210808125139.3573701-6-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<20210808125139.3573701-1-thomas@monjalon.net>",
        "References": "<20210412215339.2439530-1-thomas@monjalon.net>\n <20210808125139.3573701-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 5/5] devtools: test different build types",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "All builds were of type debugoptimized.\nIt is kept only for builds having an ABI check.\nOthers will have the default build type (release),\nexcept if specified differently as in the x86 generic build\nwhich will be a test of the non-optimized debug build type.\nSome static builds will test the minsize build type.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\nAcked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\n\n---\n\nThis patch cannot be merged now because it makes clang 11.1.0 crashing.\n---\n devtools/test-meson-builds.sh | 19 +++++++++++++------\n 1 file changed, 13 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh\nindex 9ec8e2bc7e..7bd305a669 100755\n--- a/devtools/test-meson-builds.sh\n+++ b/devtools/test-meson-builds.sh\n@@ -92,13 +92,16 @@ load_env () # <target compiler>\n \tcommand -v $targetcc >/dev/null 2>&1 || return 1\n }\n \n-config () # <dir> <builddir> <meson options>\n+config () # <dir> <builddir> <ABI check> <meson options>\n {\n \tdir=$1\n \tshift\n \tbuilddir=$1\n \tshift\n+\tabicheck=$1\n+\tshift\n \tif [ -f \"$builddir/build.ninja\" ] ; then\n+\t\t[ $abicheck = ABI ] || return 0\n \t\t# for existing environments, switch to debugoptimized if unset\n \t\t# so that ABI checks can run\n \t\tif ! $MESON configure $builddir |\n@@ -114,7 +117,9 @@ config () # <dir> <builddir> <meson options>\n \telse\n \t\toptions=\"$options -Dexamples=l3fwd\" # save disk space\n \tfi\n-\toptions=\"$options --buildtype=debugoptimized\"\n+\tif [ $abicheck = ABI ] ; then\n+\t\toptions=\"$options --buildtype=debugoptimized\"\n+\tfi\n \tfor option in $DPDK_MESON_OPTIONS ; do\n \t\toptions=\"$options -D$option\"\n \tdone\n@@ -165,7 +170,7 @@ build () # <directory> <target cc | cross file> <ABI check> [meson options]\n \t\tcross=\n \tfi\n \tload_env $targetcc || return 0\n-\tconfig $srcdir $builds_dir/$targetdir $cross --werror $*\n+\tconfig $srcdir $builds_dir/$targetdir $abicheck $cross --werror $*\n \tcompile $builds_dir/$targetdir\n \tif [ -n \"$DPDK_ABI_REF_VERSION\" -a \"$abicheck\" = ABI ] ; then\n \t\tabirefdir=${DPDK_ABI_REF_DIR:-reference}/$DPDK_ABI_REF_VERSION\n@@ -179,7 +184,7 @@ build () # <directory> <target cc | cross file> <ABI check> [meson options]\n \t\t\tfi\n \n \t\t\trm -rf $abirefdir/build\n-\t\t\tconfig $abirefdir/src $abirefdir/build $cross \\\n+\t\t\tconfig $abirefdir/src $abirefdir/build $abicheck $cross \\\n \t\t\t\t-Dexamples= $*\n \t\t\tcompile $abirefdir/build\n \t\t\tinstall_target $abirefdir/build $abirefdir/$targetdir\n@@ -211,11 +216,13 @@ for c in gcc clang ; do\n \tfor s in static shared ; do\n \t\tif [ $s = shared ] ; then\n \t\t\tabicheck=ABI\n+\t\t\tbuildtype=\n \t\telse\n \t\t\tabicheck=skipABI # save time and disk space\n+\t\t\tbuildtype='--buildtype=minsize'\n \t\tfi\n \t\texport CC=\"$CCACHE $c\"\n-\t\tbuild build-$c-$s $c $abicheck --default-library=$s\n+\t\tbuild build-$c-$s $c $abicheck $buildtype --default-library=$s\n \t\tunset CC\n \tdone\n done\n@@ -227,7 +234,7 @@ generic_isa='nehalem'\n if ! check_cc_flags \"-march=$generic_isa\" ; then\n \tgeneric_isa='corei7'\n fi\n-build build-x86-generic cc skipABI -Dcheck_includes=true \\\n+build build-x86-generic cc skipABI --buildtype=debug -Dcheck_includes=true \\\n \t-Dlibdir=lib -Dcpu_instruction_set=$generic_isa $use_shared\n \n # 32-bit with default compiler\n",
    "prefixes": [
        "v3",
        "5/5"
    ]
}