Show a patch.

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

{
    "id": 3164,
    "url": "https://patchwork.libcamera.org/api/patches/3164/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/3164/",
    "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": "<20200318115846.7975-3-kgupta@es.iitr.ac.in>",
    "date": "2020-03-18T11:58:42",
    "name": "[libcamera-devel,v3,2/6] libcamera: ipa_proxy: rearrange proxies precedence",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "ef3f55405ad05c244b558abdebdea1001d2c2171",
    "submitter": {
        "id": 39,
        "url": "https://patchwork.libcamera.org/api/people/39/?format=api",
        "name": "Kaaira Gupta",
        "email": "kgupta@es.iitr.ac.in"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/3164/mbox/",
    "series": [
        {
            "id": 731,
            "url": "https://patchwork.libcamera.org/api/series/731/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=731",
            "date": "2020-03-18T11:58:40",
            "name": "libcamera: determine IPA_PROXY_PATH at runtime",
            "version": 3,
            "mbox": "https://patchwork.libcamera.org/series/731/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/3164/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/3164/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<kgupta@es.iitr.ac.in>",
        "Received": [
            "from mail-pg1-x541.google.com (mail-pg1-x541.google.com\n\t[IPv6:2607:f8b0:4864:20::541])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B23DA60419\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 18 Mar 2020 12:59:18 +0100 (CET)",
            "by mail-pg1-x541.google.com with SMTP id 7so13573798pgr.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 18 Mar 2020 04:59:18 -0700 (PDT)",
            "from kaaira-HP-Pavilion-Notebook ([103.113.213.153])\n\tby smtp.gmail.com with ESMTPSA id\n\ti11sm2378519pje.30.2020.03.18.04.59.16\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 18 Mar 2020 04:59:16 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=rdfoQjGn5hqOOYCxvBAN9ITJhTDA0Hwl1+8XEz2sZtE=;\n\tb=U4mgLJKKTss/QeKt+ZeZQNKSqkOq1Bo+q4ARsafwKOmEIBgv1xscvEmunYWmAsEXJC\n\t32IUnj/pQ6pgD2S6QmdarbwWp7bCKZbNOXviyjLdi0jLSAoPv3LHcP1LMqGSaagZAm40\n\tuPlwxdvBd1hppYgAF/GnT99eatuJW2kgsEREfDsE5jByUsVprgZ8ceUWM6gk3mGbTqFb\n\tTM92rlxRe8UcplkEKlpYHCS/NMvWa0SM4IptzMX4OgTOcwM6FPkCEwXJs96skKPy/Rvm\n\tTLsr8RNSfkjwQxUR3sdWrhsA1POZt9V0aw6j5fvF/aU2Gqcai3iELxgQBfoacP7BoOFt\n\tnXpw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=rdfoQjGn5hqOOYCxvBAN9ITJhTDA0Hwl1+8XEz2sZtE=;\n\tb=LaivrbllxBG30DqnRuG5zisyDszY9pmaRNzuMquuz8Xm4G2JgW/+Jdu0SHc4Ftlsu6\n\t8gIgyF1UDSPnEKbqaIvU5JM5P0uFz8cJP0XUR4euLcx4cBu2ix+fcOheUIgCgxkYv3hD\n\twTToj1AiURn8xg3VTWl1LdADFWTJrrfxLi51A0QPOgECD4hQ//sOPdJ/hlsep0X8FqyX\n\tKqIM8haVRefjd3dlESGOfSSe3BsYBuMLuecI82irZbwAh7qZbzLjrLwZZRs3dPE5hOjF\n\tB9E0pBKjhX51hF05v7tqDtn9cFvAs6Ta546l8t7Mxu24OY7uMijH6McOaA05luFcISa9\n\t/rDQ==",
        "X-Gm-Message-State": "ANhLgQ1ILhFASZzMaTrbhkBOAXfFa4I8KtT06lcUJ8iCKN7tcgaS27mv\n\tNNMBSNUZn6UkKyf0V7encoKLiA==",
        "X-Google-Smtp-Source": "ADFU+vsM8m9D1kccTl9URjP4XBkRY4fifT7+vai8XGdZbW58ArRroxp+dYQR9/+sTubk5zSx7eHrQQ==",
        "X-Received": "by 2002:aa7:8f22:: with SMTP id y2mr4072001pfr.300.1584532757300;\n\tWed, 18 Mar 2020 04:59:17 -0700 (PDT)",
        "From": "Kaaira Gupta <kgupta@es.iitr.ac.in>",
        "To": "Helen Koike <helen.koike@collabora.com>,\n\tVaishali Thakkar <vthakkar@vaishalithakkar.in>,\n\tkieran.bingham@ideasonboard.com, libcamera-devel@lists.libcamera.org",
        "Cc": "Kaaira Gupta <kgupta@es.iitr.ac.in>",
        "Date": "Wed, 18 Mar 2020 17:28:42 +0530",
        "Message-Id": "<20200318115846.7975-3-kgupta@es.iitr.ac.in>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200318115846.7975-1-kgupta@es.iitr.ac.in>",
        "References": "<20200318115846.7975-1-kgupta@es.iitr.ac.in>",
        "Subject": "[libcamera-devel] [PATCH LIBCAMERA v3 2/6] libcamera: ipa_proxy:\n\trearrange proxies precedence",
        "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>",
        "X-List-Received-Date": "Wed, 18 Mar 2020 11:59:18 -0000"
    },
    "content": "User environment path in LIBCAMERA_IPA_PROXY_PATH should take precedence\nover system loading locations. Change precedence accordingly\n\nSigned-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>\n---\n src/libcamera/ipa_proxy.cpp | 11 ++++++-----\n 1 file changed, 6 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/src/libcamera/ipa_proxy.cpp b/src/libcamera/ipa_proxy.cpp\nindex c7347c8..b409e1d 100644\n--- a/src/libcamera/ipa_proxy.cpp\n+++ b/src/libcamera/ipa_proxy.cpp\n@@ -75,13 +75,9 @@ IPAProxy::~IPAProxy()\n  */\n std::string IPAProxy::resolvePath(const std::string &file) const\n {\n-\t/* Try finding the exec target from the install directory first */\n \tstd::string proxyFile = \"/\" + file;\n-\tstd::string proxyPath = std::string(IPA_PROXY_DIR) + proxyFile;\n-\tif (!access(proxyPath.c_str(), X_OK))\n-\t\treturn proxyPath;\n \n-\t/* No exec target in install directory; check env variable. */\n+\t/* Check env variable first. */\n \tconst char *execPaths = utils::secure_getenv(\"LIBCAMERA_IPA_PROXY_PATH\");\n \tif (execPaths) {\n \t\tfor (const auto &dir : utils::split(execPaths, \":\")) {\n@@ -95,6 +91,11 @@ std::string IPAProxy::resolvePath(const std::string &file) const\n \t\t}\n \t}\n \n+\t/* Try finding the exec target from the install directory. */\n+\tstd::string proxyPath = std::string(IPA_PROXY_DIR) + proxyFile;\n+\tif (!access(proxyPath.c_str(), X_OK))\n+\t\treturn proxyPath;\n+\n \treturn std::string();\n }\n \n",
    "prefixes": [
        "libcamera-devel",
        "v3",
        "2/6"
    ]
}