Show a patch.

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

{
    "id": 4033,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/4033/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/4033/",
    "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": "<20200612102233.29420-1-scerveau@collabora.com>",
    "date": "2020-06-12T10:22:33",
    "name": "[libcamera-devel,v6] meson: detect kernel version",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "ba7da6cb584b986a519dadd4b4411b42884bbd70",
    "submitter": {
        "id": 54,
        "url": "https://patchwork.libcamera.org/api/1.1/people/54/?format=api",
        "name": "Stéphane Cerveau",
        "email": "scerveau@collabora.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/4033/mbox/",
    "series": [
        {
            "id": 996,
            "url": "https://patchwork.libcamera.org/api/1.1/series/996/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=996",
            "date": "2020-06-12T10:22:33",
            "name": "[libcamera-devel,v6] meson: detect kernel version",
            "version": 6,
            "mbox": "https://patchwork.libcamera.org/series/996/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/4033/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/4033/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<scerveau@collabora.com>",
        "Received": [
            "from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 454FE6002B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 12 Jun 2020 12:22:44 +0200 (CEST)",
            "from [127.0.0.1] (localhost [127.0.0.1])\n\t(Authenticated sender: scerveau) with ESMTPSA id 78F1C2A3E2A"
        ],
        "From": "=?utf-8?q?St=C3=A9phane_Cerveau?= <scerveau@collabora.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri, 12 Jun 2020 12:22:33 +0200",
        "Message-Id": "<20200612102233.29420-1-scerveau@collabora.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v6] meson: detect kernel version",
        "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>",
        "X-List-Received-Date": "Fri, 12 Jun 2020 10:22:44 -0000"
    },
    "content": "Add kernel version detection to warn user\nthat only >= 5.0.0 V4L API are supported in\nlibcamera.\n\nSigned-off-by: Stéphane Cerveau <scerveau@collabora.com>\n---\n meson.build | 11 +++++++++++\n 1 file changed, 11 insertions(+)",
    "diff": "diff --git a/meson.build b/meson.build\nindex e898782..ec54e68 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -105,6 +105,17 @@ if get_option('test')\n     subdir('test')\n endif\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+    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+        warning('If you intend to use libcamera on this machine, please upgrade to a kernel @0@.'\n+                .format(kernel_version_req))\n+    endif\n+endif\n+\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",
    "prefixes": [
        "libcamera-devel",
        "v6"
    ]
}