Patch Detail
Show a patch.
GET /api/patches/4022/?format=api
{ "id": 4022, "url": "https://patchwork.libcamera.org/api/patches/4022/?format=api", "web_url": "https://patchwork.libcamera.org/patch/4022/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/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": "<20200611093350.9307-1-scerveau@collabora.com>", "date": "2020-06-11T09:33:50", "name": "[libcamera-devel] meson: detect kernel version", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "fd691629546c17709dc827eb152d80f18a513315", "submitter": { "id": 54, "url": "https://patchwork.libcamera.org/api/people/54/?format=api", "name": "Stéphane Cerveau", "email": "scerveau@collabora.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/4022/mbox/", "series": [ { "id": 991, "url": "https://patchwork.libcamera.org/api/series/991/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=991", "date": "2020-06-11T09:33:50", "name": "[libcamera-devel] meson: detect kernel version", "version": 1, "mbox": "https://patchwork.libcamera.org/series/991/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/4022/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/4022/checks/", "tags": {}, "headers": { "Return-Path": "<scerveau@collabora.com>", "Received": [ "from bhuna.collabora.co.uk (bhuna.collabora.co.uk\n\t[IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D88F660C4E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 11 Jun 2020 11:33:59 +0200 (CEST)", "from [127.0.0.1] (localhost [127.0.0.1])\n\t(Authenticated sender: scerveau) with ESMTPSA id 196242A4A7A" ], "From": "=?utf-8?q?St=C3=A9phane_Cerveau?= <scerveau@collabora.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 11 Jun 2020 11:33:50 +0200", "Message-Id": "<20200611093350.9307-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] 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": "Thu, 11 Jun 2020 09:34:00 -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 | 9 +++++++++\n 1 file changed, 9 insertions(+)", "diff": "diff --git a/meson.build b/meson.build\nindex e898782..5ac9039 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -105,6 +105,15 @@ if get_option('test')\n subdir('test')\n endif\n \n+if not meson.is_cross_build()\n+ kernel_version_req = '>= 6.0.0'\n+ kernel_version = run_command('uname', '-r').stdout()\n+ if not kernel_version.version_compare(kernel_version_req)\n+ warning('Consider upgrading your kernel, as only @0@ is supported by libcamera at runtime'\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" ] }