Show a patch.

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

{
    "id": 15832,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/15832/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/15832/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20220509101023.35569-4-tomi.valkeinen@ideasonboard.com>",
    "date": "2022-05-09T10:10:19",
    "name": "[libcamera-devel,v10,3/7] meson: add 'check: true' for run_command() calls",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "cdb69f9272df6fd08df3f4abe357abac571b8b75",
    "submitter": {
        "id": 109,
        "url": "https://patchwork.libcamera.org/api/1.1/people/109/?format=api",
        "name": "Tomi Valkeinen",
        "email": "tomi.valkeinen@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/15832/mbox/",
    "series": [
        {
            "id": 3102,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3102/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3102",
            "date": "2022-05-09T10:10:16",
            "name": "Python bindings",
            "version": 10,
            "mbox": "https://patchwork.libcamera.org/series/3102/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/15832/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/15832/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 61FB4C326C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  9 May 2022 10:10:54 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id EE58B65650;\n\tMon,  9 May 2022 12:10:52 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C34786564C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  9 May 2022 12:10:49 +0200 (CEST)",
            "from deskari.lan (91-156-85-209.elisa-laajakaista.fi\n\t[91.156.85.209])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 1BC513E4;\n\tMon,  9 May 2022 12:10:49 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1652091053;\n\tbh=O45OCn0MzoZDSEqbqEq61DIKMlzSOl/dIVbUpTmGN3U=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=d42f5wBpqTBDtk2+Un4eeSlOmKwXF4SZi/KqnrxU2O6IehOi3YdS+oUc9DazKRj69\n\tgyGWWlOMNE/S1CbQ1JJLuWjO15HO6WASOVcTW4/+Ab/fFN9cZ/iBQQVV5wO4bGhQrG\n\tzoNEhoWxv7NSyLctNioukweF1h7xpqyKpYm9PnPwDtW/vspHCbL76f2HjXEIl9WflU\n\tjADOMa/B6GKzN+YiHshsIcbrtAKoGrMP8Iwb5C09gmsYBSb1WJUf0q+XUtoi1vWvoq\n\twqkwvJHDNPEAPVjt2brlUN1oArLZDq8xwuS2CMSPLVTjLEflDM9nu8KL6FputRUDAe\n\t60pLV6w24NbkQ==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1652091049;\n\tbh=O45OCn0MzoZDSEqbqEq61DIKMlzSOl/dIVbUpTmGN3U=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=IoOEbjXtFdNLUN5TUgAIlZBdsPHRIp5Y2LMlPNT3kKBgMirdtflarYQnnC+rUg+Zd\n\thf+VbQRxjZbVdq3ALiLbC39Colfp1J1hMhm1w+dTlawkdznKxFAbCLfVGFvvnfjBJU\n\tk9ZUq2uKqumrGKLkgaQpZzcJgPNG4hlEQTwx9jaI="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"IoOEbjXt\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org,\n\tDavid Plowman <david.plowman@raspberrypi.com>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tJacopo Mondi <jacopo@jmondi.org>",
        "Date": "Mon,  9 May 2022 13:10:19 +0300",
        "Message-Id": "<20220509101023.35569-4-tomi.valkeinen@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220509101023.35569-1-tomi.valkeinen@ideasonboard.com>",
        "References": "<20220509101023.35569-1-tomi.valkeinen@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v10 3/7] meson: add 'check: true' for\n\trun_command() calls",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "From": "Tomi Valkeinen via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add 'check: true' to all run_command() calls as suggested in\nhttps://github.com/mesonbuild/meson/issues/9300 to get rid of meson\nwarning \"You should add the boolean check kwarg to the run_command\ncall.\"\n\nThis makes meson fail if the executed command fails, which makes sense.\n\nSigned-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n meson.build | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/meson.build b/meson.build\nindex 10ad8c5c..0124e7d3 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -18,7 +18,8 @@ project('libcamera', 'c', 'cpp',\n # libcamera_git_version.\n libcamera_git_version = run_command('utils/gen-version.sh',\n                                     meson.project_build_root(),\n-                                    meson.project_source_root()).stdout().strip()\n+                                    meson.project_source_root(),\n+                                    check: true).stdout().strip()\n if libcamera_git_version == ''\n     libcamera_git_version = meson.project_version()\n endif\n@@ -148,7 +149,7 @@ subdir('test')\n \n if not meson.is_cross_build()\n     kernel_version_req = '>= 5.0.0'\n-    kernel_version = run_command('uname', '-r').stdout().strip()\n+    kernel_version = run_command('uname', '-r', check: true).stdout().strip()\n     if not kernel_version.version_compare(kernel_version_req)\n         warning('The current running kernel version @0@ is too old to run libcamera.'\n                 .format(kernel_version))\n@@ -160,7 +161,8 @@ endif\n # Create a symlink from the build root to the source root. This is used when\n # running libcamera from the build directory to locate resources in the source\n # directory (such as IPA configuration files).\n-run_command('ln', '-fsT', meson.project_source_root(), meson.project_build_root() / 'source')\n+run_command('ln', '-fsT', meson.project_source_root(), meson.project_build_root() / 'source',\n+            check: true)\n \n configure_file(output : 'config.h', configuration : config_h)\n \n",
    "prefixes": [
        "libcamera-devel",
        "v10",
        "3/7"
    ]
}