Show a patch.

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

{
    "id": 20327,
    "url": "https://patchwork.libcamera.org/api/patches/20327/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/20327/",
    "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": "<20240615111244.4573-2-zachdecook@librem.one>",
    "date": "2024-06-15T11:12:44",
    "name": "[v2,2/2] build: use meson fs.relative_to for making relative symlinks",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1c84733831297409c08180518823cb4c1e7420b7",
    "submitter": {
        "id": 199,
        "url": "https://patchwork.libcamera.org/api/people/199/?format=api",
        "name": "Zach DeCook",
        "email": "zachdecook@librem.one"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/20327/mbox/",
    "series": [
        {
            "id": 4399,
            "url": "https://patchwork.libcamera.org/api/series/4399/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4399",
            "date": "2024-06-15T11:12:43",
            "name": "[v2,1/2] dirty version string: Don't use non-posix arguments for date date will output a date like 2024-06-05T17:06:30EDT",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/4399/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/20327/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/20327/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 94EA1C3237\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 15 Jun 2024 11:13:10 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2428D65490;\n\tSat, 15 Jun 2024 13:13:10 +0200 (CEST)",
            "from mx1.librem.one (mx1.librem.one [138.201.176.93])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id EDCF565490\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 15 Jun 2024 13:13:06 +0200 (CEST)",
            "from smtp.librem.one (unknown [192.241.214.14])\n\tby mx1.librem.one (Postfix) with ESMTPS id EDE7C81EF4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 15 Jun 2024 04:13:05 -0700 (PDT)"
        ],
        "Authentication-Results": [
            "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=librem.one header.i=@librem.one\n\theader.b=\"K22jCaiD\"; dkim-atps=neutral",
            "name mx1.librem.one;\n\tdmarc=fail (p=reject dis=none) header.from=librem.one"
        ],
        "From": "Zach DeCook <zachdecook@librem.one>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=librem.one; s=smtp;\n\tt=1718449984; bh=QwfxGLcrZ7+MXtyISJ6hEERzL6LJGw6QYKAiD20Yb6Q=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=K22jCaiDUnYDUbSZaVtzVQWnQ+BNR+ly664y5CnSfRE31BigG82eC7kmbDTOhcf/J\n\tjtvxfkz1WQcvRYdbkmC5Fs/1KbbMAVDf8EafzVusHbh8kVHMdDz5dfWoUiQZ6PQDht\n\t9lcs0pylnFZ3G9WR3e0sl0sPDoa2PcertIYMe0/Mrhjd9fs4BeiSlQt3Zz0lMHg6oh\n\tHVkqxrFGm9VNK+7Yr9iMGuGq649ljN9W766dQVW/iEJUSyCwxPS04kZHLImeB8Faqu\n\t+8jJZahiJ+CqwlNq6TWdnzsn3OpBlOcD/R+nQ15eybAiPm0xmXticlQBOPI+d6ttdn\n\tCGv5G1Pzxzc6Q==",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Zach DeCook <zachdecook@librem.one>",
        "Subject": "[PATCH v2 2/2] build: use meson fs.relative_to for making relative\n\tsymlinks",
        "Date": "Sat, 15 Jun 2024 07:12:44 -0400",
        "Message-ID": "<20240615111244.4573-2-zachdecook@librem.one>",
        "In-Reply-To": "<20240615111244.4573-1-zachdecook@librem.one>",
        "References": "<20240615111244.4573-1-zachdecook@librem.one>",
        "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": "-r flag is not supported by e.g. busybox\n---\n src/py/libcamera/meson.build | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build\nindex 4807ca7d..74c861fc 100644\n--- a/src/py/libcamera/meson.build\n+++ b/src/py/libcamera/meson.build\n@@ -97,12 +97,13 @@ pycamera = shared_module('_libcamera',\n \n # Create symlinks from the build dir to the source dir so that we can use the\n # Python module directly from the build dir.\n-\n-run_command('ln', '-fsrT', files('__init__.py'),\n+relative_target = fs.relative_to(files('__init__.py'), meson.current_build_dir())\n+run_command('ln', '-fs', relative_target,\n             meson.current_build_dir() / '__init__.py',\n             check : true)\n \n-run_command('ln', '-fsrT', meson.current_source_dir() / 'utils',\n+relative_target = fs.relative_to(meson.current_source_dir() / 'utils', meson.current_build_dir())\n+run_command('ln', '-fsT', relative_target,\n             meson.current_build_dir() / 'utils',\n             check : true)\n \n",
    "prefixes": [
        "v2",
        "2/2"
    ]
}