Show a patch.

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

{
    "id": 17075,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/17075/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/17075/",
    "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": "<beec98c3ab67cb75851c1108f5c5eef29baa7f20.1660215299.git.nert.pinx@gmail.com>",
    "date": "2022-08-11T10:54:59",
    "name": "[libcamera-devel] build: Fix python dependency",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "21e511a8b19175deeec9e6bb5b480b4cc3b426ad",
    "submitter": {
        "id": 132,
        "url": "https://patchwork.libcamera.org/api/1.1/people/132/?format=api",
        "name": "Martin Kletzander",
        "email": "nert.pinx@gmail.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/17075/mbox/",
    "series": [
        {
            "id": 3403,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3403/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3403",
            "date": "2022-08-11T10:54:59",
            "name": "[libcamera-devel] build: Fix python dependency",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3403/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/17075/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/17075/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 DBDEEC3272\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 11 Aug 2022 10:55:15 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3B6EE6332D;\n\tThu, 11 Aug 2022 12:55:15 +0200 (CEST)",
            "from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com\n\t[IPv6:2a00:1450:4864:20::62b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A2C0B6330E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 11 Aug 2022 12:55:13 +0200 (CEST)",
            "by mail-ej1-x62b.google.com with SMTP id kb8so32850875ejc.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 11 Aug 2022 03:55:13 -0700 (PDT)",
            "from wheatley.localdomain (nat-pool-brq-t.redhat.com.\n\t[213.175.37.10]) by smtp.gmail.com with ESMTPSA id\n\tkx22-20020a170907775600b0072b342ad997sm3356618ejc.199.2022.08.11.03.55.12\n\tfor <libcamera-devel@lists.libcamera.org>\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 11 Aug 2022 03:55:12 -0700 (PDT)",
            "from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1])\n\tby wheatley.localdomain (Postfix) with ESMTP id EDD3A8CE426F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 11 Aug 2022 12:55:11 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1660215315;\n\tbh=hBuZ6itUtTd3AbMntYUKbt7iqZROLrOdyvDTsl2GsCw=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=gYhP+4kgFFrKsvFoiFaEmPQJOdeCi1Rg8tRbREwYe2zCojKJvY8IaJoF4QRDFJf/o\n\tiOAdmwH55hVXayoPxKGWI9ez6aFApVBTHC/yXVq5JlDgWPKS796Qu27VtnydT3pr/l\n\tGbxxb3RR3EzkSfSw4PgvcT/VmD9gwTH952AMN0AVdZPD2VbSYF7U1y7ixVuvuI1dMS\n\ttzO/PrxGvEpgQDp04SgvmnZAHhlLlOdSBELxrCYklBSxqSFaJ3oeCLP/i3v9cwzVbW\n\thyZaPEV8TN8Pf9ww2Jd28e1927UmRprPYQJQscUWyK8R60ebL17AJTtYSKHOGu2MWM\n\t5AEk9EixfgTiQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:to\n\t:from:from:to:cc;\n\tbh=P6KjMfnlhwgAEAcJfU3m7emgIWC9Re3R6s/WY5d2ZcA=;\n\tb=pCQN8jXLdJ+CCvSavEntUG0rlEKAO+V3QEDv8slw8GW5ivkxX9YHrqyo1tpmZeW8tS\n\tUyIPxaNHGk1wjFx8Xr6QiDdItC6d/8chsIabA8Hwl7hzGn/RmgVpMPEyoF3IEtCNStUj\n\tCFR5jHRjEm7gk9YAjqXhynjkDPLzJN5k1SbIS7Hck1hk5MZ79nidGo4kOzjlNq/Y3kgL\n\tqQtpmz9dfeAoZ/m6S4AvoEUYcXlwzvdHNgTDf3VDjV62atETxwJ85qBJwyhnnCuR1jwy\n\tPVBA9meeOjrq85aYDQ9M1QrGOMJvQhmxgBlEywkpzuLyqZht9soqChmP5qT4nZec2Ech\n\tjMkg=="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"pCQN8jXL\"; dkim-atps=neutral",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:to\n\t:from:x-gm-message-state:from:to:cc;\n\tbh=P6KjMfnlhwgAEAcJfU3m7emgIWC9Re3R6s/WY5d2ZcA=;\n\tb=PCftYDqNPndPhu7MZ1dQ6YClKVdVWEep97Spi3jIFlkgPB5DXsOx0voUtkXFCTB5Sk\n\tJKRiyGruKNV5zaO9B84IvK5ByP/RSNGxD+71wZUbePPRqd66bV/+u0PTwcxfPFea0txx\n\t6SO0VpTjRG8pkWAyLbZ5Q9hnJioU8J1aE2XMZvnDOgg0+x4tKEWRjzzHH+j9eZ8Dym3f\n\t0YepRvHKo3VEBLXpiazuKEtUgi6uumJo0AK7Avc77Fl/yRpV7ltGpSPGLI0qASQC51xn\n\tGZyAIjU8HqBgzSzJocDtzUQ2vlllZXsv3U9rwcNk1Xx4lhQ+MO66nsgsPREzvaL8pWhU\n\tGbhA==",
        "X-Gm-Message-State": "ACgBeo3UilVZxtYD/VYfujJ24WNAZzFsC0uRTGrhElm8u0Fs1R7J5kFa\n\tUtuifeQYiBx8Lfh/doa2hn5BwzoIJB4=",
        "X-Google-Smtp-Source": "AA6agR6YBYdaAHpL8HL006qi/uzQP3clg5nDn7y62+oOmn0nXyKylKBvnNOoeLYTX2yaOR8h5B1Jug==",
        "X-Received": "by 2002:a17:906:4fca:b0:731:5e07:e59a with SMTP id\n\ti10-20020a1709064fca00b007315e07e59amr12453748ejw.140.1660215313103; \n\tThu, 11 Aug 2022 03:55:13 -0700 (PDT)",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 11 Aug 2022 12:54:59 +0200",
        "Message-Id": "<beec98c3ab67cb75851c1108f5c5eef29baa7f20.1660215299.git.nert.pinx@gmail.com>",
        "X-Mailer": "git-send-email 2.35.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH] build: Fix python dependency",
        "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>",
        "From": "Martin Kletzander via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Martin Kletzander <nert.pinx@gmail.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Building with pycamera fails due to dependency search for 'python3'.  Fix that\nby using meson's python module which searches for the proper files and various\nversions.\n\nSigned-off-by: Martin Kletzander <nert.pinx@gmail.com>\n---\n src/py/libcamera/meson.build | 9 +++++----\n 1 file changed, 5 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build\nindex eb8845388692..cf2e9395de38 100644\n--- a/src/py/libcamera/meson.build\n+++ b/src/py/libcamera/meson.build\n@@ -1,8 +1,9 @@\n # SPDX-License-Identifier: CC0-1.0\n \n-py3_dep = dependency('python3', required : get_option('pycamera'))\n+pymod = import('python')\n+py3 = pymod.find_installation('python3', required : get_option('pycamera'))\n \n-if not py3_dep.found()\n+if not py3.found()\n     pycamera_enabled = false\n     subdir_done()\n endif\n@@ -60,7 +61,7 @@ pycamera_sources += custom_target('py_gen_formats',\n \n pycamera_deps = [\n     libcamera_public,\n-    py3_dep,\n+    py3.dependency(),\n     pybind11_dep,\n ]\n \n@@ -71,7 +72,7 @@ pycamera_args = [\n     '-DLIBCAMERA_BASE_PRIVATE',\n ]\n \n-destdir = get_option('libdir') / ('python' + py3_dep.version()) / 'site-packages' / 'libcamera'\n+destdir = get_option('libdir') / ('python' + py3.language_version()) / 'site-packages' / 'libcamera'\n \n pycamera = shared_module('_libcamera',\n                          pycamera_sources,\n",
    "prefixes": [
        "libcamera-devel"
    ]
}