Show a patch.

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

{
    "id": 15245,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/15245/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/15245/",
    "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": "<20220104225147.1340786-1-kieran.bingham@ideasonboard.com>",
    "date": "2022-01-04T22:51:47",
    "name": "[libcamera-devel] v4l2: Provide libcamera-v4l2 wrapper script",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "9854900ef37ac8c6769843489380606ab8e14652",
    "submitter": {
        "id": 4,
        "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api",
        "name": "Kieran Bingham",
        "email": "kieran.bingham@ideasonboard.com"
    },
    "delegate": {
        "id": 11,
        "url": "https://patchwork.libcamera.org/api/1.1/users/11/?format=api",
        "username": "kbingham",
        "first_name": "Kieran",
        "last_name": "Bingham",
        "email": "kieran.bingham@ideasonboard.com"
    },
    "mbox": "https://patchwork.libcamera.org/patch/15245/mbox/",
    "series": [
        {
            "id": 2876,
            "url": "https://patchwork.libcamera.org/api/1.1/series/2876/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2876",
            "date": "2022-01-04T22:51:47",
            "name": "[libcamera-devel] v4l2: Provide libcamera-v4l2 wrapper script",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/2876/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/15245/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/15245/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 B9F3DBE080\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  4 Jan 2022 22:51:54 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E933F604F5;\n\tTue,  4 Jan 2022 23:51:53 +0100 (CET)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8FB0C604F4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  4 Jan 2022 23:51:51 +0100 (CET)",
            "from Monstersaurus.ksquared.org.uk.beta.tailscale.net\n\t(cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 0E94E501;\n\tTue,  4 Jan 2022 23:51:51 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"WnqcVx8t\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1641336711;\n\tbh=io7EGYhkYQIS4eyJbHThy2HIUuSQIENEysSND0VkofM=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=WnqcVx8tjhUSL/avMlMaB4WBTewCLyQ/35z5s+0rhLiSoYHLv/Vbf0oqH/4IuHwU3\n\tFr/FgwFbwpWwbpXTlhWQCxAL8CB7v+//DOmKJhT02Kio2uMdyWc7CVa07MfHlSAJQQ\n\tuf78lCAZj8BFnYDrBE2bAI6smHNRhN1Z5R2lBYV8=",
        "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>",
        "To": "libcamera devel <libcamera-devel@lists.libcamera.org>",
        "Date": "Tue,  4 Jan 2022 22:51:47 +0000",
        "Message-Id": "<20220104225147.1340786-1-kieran.bingham@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH] v4l2: Provide libcamera-v4l2 wrapper\n\tscript",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Support easier usage of the v4l2 compatibility layer with a script that\nhandles the LD_PRELOAD for applications.\n\nThe wrapper can be prefixed to launch any application with the preload\nset:\n\n $ libcamera-v4l2 v4l2-ctl --list-devices\n \\_SB_.PCI0.GP13.XHC0.RHUB.PRT4- (libcamera:0):\n \t/dev/video0\n\n platform/vimc.0 Sensor B (libcamera:1):\n \t/dev/video2\n \t/dev/video3\n \t/dev/video4\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n\nThis will install 'libcamera-v4l2' in the bindir (/usr/bin/) alongside\ncam.\n\n src/v4l2/libcamera-v4l2.in | 11 +++++++++++\n src/v4l2/meson.build       | 14 ++++++++++++++\n 2 files changed, 25 insertions(+)\n create mode 100755 src/v4l2/libcamera-v4l2.in",
    "diff": "diff --git a/src/v4l2/libcamera-v4l2.in b/src/v4l2/libcamera-v4l2.in\nnew file mode 100755\nindex 000000000000..e8f77ec6d784\n--- /dev/null\n+++ b/src/v4l2/libcamera-v4l2.in\n@@ -0,0 +1,11 @@\n+#!/bin/sh\n+\n+if [ \"$LD_PRELOAD\" = \"\" ] ; then\n+   LD_PRELOAD='@LIBCAMERA_V4L2_SO@'\n+else\n+   LD_PRELOAD=\"$LD_PRELOAD \"'@LIBCAMERA_V4L2_SO@'\n+fi\n+\n+export LD_PRELOAD\n+\n+exec \"$@\"\ndiff --git a/src/v4l2/meson.build b/src/v4l2/meson.build\nindex f78497b6799b..3b17668e8df5 100644\n--- a/src/v4l2/meson.build\n+++ b/src/v4l2/meson.build\n@@ -33,3 +33,17 @@ v4l2_compat = shared_library('v4l2-compat',\n                              install : true,\n                              dependencies : [libcamera_private, libdl],\n                              cpp_args : v4l2_compat_cpp_args)\n+\n+# Provide a wrapper script to support easily loading applications with the V4L2\n+# adaptation layer\n+\n+config_h.set('LIBCAMERA_V4L2_SO', get_option('prefix') / get_option('libdir') / 'v4l2-compat.so')\n+\n+summary({\n+    'LIBCAMERA_V4L2_SO' : config_h.get('LIBCAMERA_V4L2_SO'),\n+}, section : 'Paths')\n+\n+configure_file(input : 'libcamera-v4l2.in',\n+               output : 'libcamera-v4l2',\n+               configuration : config_h,\n+               install_dir : get_option('bindir'))\n",
    "prefixes": [
        "libcamera-devel"
    ]
}