Show a patch.

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

{
    "id": 26605,
    "url": "https://patchwork.libcamera.org/api/patches/26605/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/26605/",
    "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": "<20260504000431.1340150-3-laurent.pinchart@ideasonboard.com>",
    "date": "2026-05-04T00:04:27",
    "name": "[2/6] utils: update-kernel-headers: Create destination directory",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "43ba1dbce06aa242585c4c01506e2789c84ca842",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/26605/mbox/",
    "series": [
        {
            "id": 5900,
            "url": "https://patchwork.libcamera.org/api/series/5900/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5900",
            "date": "2026-05-04T00:04:25",
            "name": "libcamera: kernel headers update",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5900/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/26605/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/26605/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 41077C32F6\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  4 May 2026 00:04:42 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D369A63020;\n\tMon,  4 May 2026 02:04:39 +0200 (CEST)",
            "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 6BE3F62E6A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  4 May 2026 02:04:36 +0200 (CEST)",
            "from killaraus.ideasonboard.com\n\t(2001-14ba-703d-e500--2a1.rev.dnainternet.fi\n\t[IPv6:2001:14ba:703d:e500::2a1])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9A0DC9C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  4 May 2026 02:04:34 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"WSK01FPt\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1777853074;\n\tbh=C9oqFelaWn6q4GZB8ooKfmJdbBv1JRQQC1eZaH2/TbA=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=WSK01FPtqiwNuOA1oRAuvsY34jwzfCnZSlEI3IxalL0s0YK3rc+gdr8Ih1ySHMVrq\n\t95XCKPreDt4Hdf3EwR2JIF/8hfaZdVlf1LbTFfO8bXihz8KmMto79gK/dZlwA40liP\n\ty9+Qr2GI+soMormLi2yI1ZWeRaU5b7i4XE3l9niY=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Subject": "[PATCH 2/6] utils: update-kernel-headers: Create destination\n\tdirectory",
        "Date": "Mon,  4 May 2026 03:04:27 +0300",
        "Message-ID": "<20260504000431.1340150-3-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260504000431.1340150-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20260504000431.1340150-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "Before copying headers, create the destination directory if it does not\nexist.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n utils/update-kernel-headers.sh | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/utils/update-kernel-headers.sh b/utils/update-kernel-headers.sh\nindex f9baa66d00b4..93599dfe5d52 100755\n--- a/utils/update-kernel-headers.sh\n+++ b/utils/update-kernel-headers.sh\n@@ -65,7 +65,9 @@ headers=\"\n \n for header in $headers ; do\n \tname=\"${header#*/}\"\n-\tcp \"${install_dir}/usr/include/${header}\" \"${header_dir}/${name}\"\n+\tdest=\"${header_dir}/${name}\"\n+\tmkdir -p \"$(dirname \"$dest\")\"\n+\tcp \"${install_dir}/usr/include/${header}\" \"${dest}\"\n done\n \n # The IPU3 header is a special case, as it's stored in staging. Handle it\n",
    "prefixes": [
        "2/6"
    ]
}