Show a patch.

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

{
    "id": 41438,
    "url": "http://patches.dpdk.org/api/patches/41438/?format=api",
    "web_url": "http://patches.dpdk.org/patch/41438/",
    "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"
    },
    "msgid": "<20180625024913.17219-5-gavin.hu@arm.com>",
    "date": "2018-06-25T02:49:11",
    "name": "[v13,4/6] devtools: fix the missing ninja command error",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d5052d1206f9eacc63022582bb6e8979d28a02c6",
    "submitter": {
        "id": 1018,
        "url": "http://patches.dpdk.org/api/people/1018/?format=api",
        "name": "Gavin Hu",
        "email": "gavin.hu@arm.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/patch/41438/mbox/",
    "series": [
        {
            "id": 217,
            "url": "http://patches.dpdk.org/api/series/217/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=217",
            "date": "2018-06-25T02:49:07",
            "name": "Fix the cross compiling errors",
            "version": 13,
            "mbox": "http://patches.dpdk.org/series/217/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41438/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41438/checks/",
    "tags": {},
    "headers": {
        "X-Mailer": "git-send-email 2.11.0",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "From": "Gavin Hu <gavin.hu@arm.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Date": "Mon, 25 Jun 2018 10:49:11 +0800",
        "X-Mailman-Version": "2.1.15",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "nd@arm.com,\n\tgavin.hu@arm.com,\n\tstable@dpdk.org",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "References": "<20180619103657.19186-1-gavin.hu@arm.com>\n\t<20180625024913.17219-1-gavin.hu@arm.com>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 287EF5F4D;\n\tMon, 25 Jun 2018 04:49:36 +0200 (CEST)",
            "from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70])\n\tby dpdk.org (Postfix) with ESMTP id 815FB5F22;\n\tMon, 25 Jun 2018 04:49:28 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F09261529;\n\tSun, 24 Jun 2018 19:49:27 -0700 (PDT)",
            "from net-debian.shanghai.arm.com (net-debian.shanghai.arm.com\n\t[10.169.36.53])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\t3C6ED3F59C; Sun, 24 Jun 2018 19:49:27 -0700 (PDT)"
        ],
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v13 4/6] devtools: fix the missing ninja command\n\terror",
        "In-Reply-To": "<20180625024913.17219-1-gavin.hu@arm.com>",
        "Message-Id": "<20180625024913.17219-5-gavin.hu@arm.com>",
        "Precedence": "list",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Original-To": "patchwork@dpdk.org"
    },
    "content": "On some linux distributions, eg: CentOS, the ninja executable has a\ndifferent name: ninja-build, this patch is to check and adapt to it\naccordingly.\n\n./devtools/test-meson-builds.sh: line 24: ninja: command not found\n\nFixes: a55277a788 (\"devtools: add test script for meson builds\")\nCc: stable@dpdk.org\n\nSigned-off-by: Gavin Hu <gavin.hu@arm.com>\nReviewed-by: Phil Yang <phil.yang@arm.com>\nReviewed-by: Song Zhu <song.zhu@arm.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n devtools/test-meson-builds.sh | 13 +++++++++++--\n 1 file changed, 11 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh\nindex f2ad05f32..9bb5b93bd 100755\n--- a/devtools/test-meson-builds.sh\n+++ b/devtools/test-meson-builds.sh\n@@ -10,6 +10,15 @@\n srcdir=$(dirname $(readlink -m $0))/..\n MESON=${MESON:-meson}\n \n+if command -v ninja >/dev/null 2>&1 ; then\n+    ninja_cmd=ninja\n+elif command -v ninja-build >/dev/null 2>&1 ; then\n+    ninja_cmd=ninja-build\n+else\n+    echo \"## ERROR: ninja is missing, please install...\"\n+    exit 1\n+fi\n+\n build () # <directory> <meson options>\n {\n \tbuilddir=$1\n@@ -20,8 +29,8 @@ build () # <directory> <meson options>\n \t\t$MESON $options $srcdir $builddir\n \t\tunset CC\n \tfi\n-\techo \"ninja -C $builddir\"\n-\tninja -C $builddir\n+\techo \"$ninja_cmd -C $builddir\"\n+\t$ninja_cmd -C $builddir\n }\n \n # shared and static linked builds with gcc and clang\n",
    "prefixes": [
        "v13",
        "4/6"
    ]
}