Show a patch.

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

{
    "id": 21031,
    "url": "https://patchwork.libcamera.org/api/patches/21031/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/21031/",
    "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": "<20240826212245.18922-1-laurent.pinchart@ideasonboard.com>",
    "date": "2024-08-26T21:22:45",
    "name": "utils: update-kernel-headers: Support relative path to kernel git tree",
    "commit_ref": "67b87ccb8796c5bd2a724f869db7fd948070146d",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "70b996b87cefa61281e8b026a071503ebc261c77",
    "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/21031/mbox/",
    "series": [
        {
            "id": 4543,
            "url": "https://patchwork.libcamera.org/api/series/4543/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4543",
            "date": "2024-08-26T21:22:45",
            "name": "utils: update-kernel-headers: Support relative path to kernel git tree",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/4543/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/21031/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/21031/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 DA09AC323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 26 Aug 2024 21:22:50 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 00D2B63422;\n\tMon, 26 Aug 2024 23:22:49 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5250D63417\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 26 Aug 2024 23:22:49 +0200 (CEST)",
            "from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 799226CA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 26 Aug 2024 23:21:42 +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=\"AkmdXzqS\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1724707302;\n\tbh=VVn4bgkoU5uiyosCcLPoRFvTo8ErpOnqTDB6LNmzDxQ=;\n\th=From:To:Subject:Date:From;\n\tb=AkmdXzqSPJFohcM49Kk7wGez7dE0Tnzro8BgrtyMfo6Kmq3pe5Wtxu0OsymI0vRQO\n\t8U65CFPYb8OP4hXeVPp6lKjJ5pUOePmW0CUs/e5slnAlQMCATfVGrl363AHftIWn+J\n\t4C+5u1J1P8/xhfyYgkzF0lMum9+JHDdoac6mNeV0=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Subject": "[PATCH] utils: update-kernel-headers: Support relative path to\n\tkernel git tree",
        "Date": "Tue, 27 Aug 2024 00:22:45 +0300",
        "Message-ID": "<20240826212245.18922-1-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.44.2",
        "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": "When given a relative path to the kernel git tree,\nupdate-kernel-headers.sh fails to execute the headers_install.sh script\nfrom the kernel sources. Fix it by turning the kernel directory into an\nabsolute path.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n utils/update-kernel-headers.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/utils/update-kernel-headers.sh b/utils/update-kernel-headers.sh\nindex 8405be0ac923..9a64dfb5698c 100755\n--- a/utils/update-kernel-headers.sh\n+++ b/utils/update-kernel-headers.sh\n@@ -9,7 +9,7 @@ if [ $# != 1 ] ; then\n fi\n \n header_dir=\"$(dirname \"$(realpath \"$0\")\")/../include/linux\"\n-kernel_dir=\"$1\"\n+kernel_dir=\"$(realpath \"$1\")\"\n \n # Bail out if the directory doesn't contain kernel sources\n line=$(head -3 \"${kernel_dir}/Kbuild\" 2>/dev/null | tail -1)\n",
    "prefixes": []
}