Show a patch.

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

{
    "id": 26160,
    "url": "https://patchwork.libcamera.org/api/patches/26160/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/26160/",
    "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": "<20260216142843.482262-1-barnabas.pocze@ideasonboard.com>",
    "date": "2026-02-16T14:28:43",
    "name": "[libcamera-ci,RFC,v1] Add clang builds with libstdc++",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "6ea0bac9a96a38cd62753699395a2894c78e8db3",
    "submitter": {
        "id": 216,
        "url": "https://patchwork.libcamera.org/api/people/216/?format=api",
        "name": "Barnabás Pőcze",
        "email": "barnabas.pocze@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/26160/mbox/",
    "series": [
        {
            "id": 5791,
            "url": "https://patchwork.libcamera.org/api/series/5791/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5791",
            "date": "2026-02-16T14:28:43",
            "name": "[libcamera-ci,RFC,v1] Add clang builds with libstdc++",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5791/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/26160/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/26160/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 6E0C7C31E9\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 16 Feb 2026 14:28:49 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 8194C621EE;\n\tMon, 16 Feb 2026 15:28:48 +0100 (CET)",
            "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 F226F62084\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 16 Feb 2026 15:28:46 +0100 (CET)",
            "from pb-laptop.local (185.221.141.206.nat.pool.zt.hu\n\t[185.221.141.206])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 155B04B3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 16 Feb 2026 15:27:56 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"UfwuJ23n\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1771252076;\n\tbh=SpHborgIUfZ0mvxlZwaze9fQxXwBiC+EzbtukCaITlA=;\n\th=From:To:Subject:Date:From;\n\tb=UfwuJ23nOzh4HF0aFO4qhtlw5HwWE2tQLUy0fNfm4kwre4HDq22nbgPCqhjgme12F\n\tzxo9zoo7R/8gnnar33EXLsx7lFjvI5LJ8oKLYOp+2ccQbTMbA2EPgHgpn6xY59popo\n\tiOU8mpw3hLmgVKI0teQi/nh/V5zPXoKQbgryQ5Hg=",
        "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Subject": "[libcamera-ci] [RFC PATCH v1] Add clang builds with libstdc++",
        "Date": "Mon, 16 Feb 2026 15:28:43 +0100",
        "Message-ID": "<20260216142843.482262-1-barnabas.pocze@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "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": "Currently clang is only used to test libc++ builds. This, however, prevents\nthe build testing of e.g. qcam since the packaged qt libraries use libstdc++,\nso it needs to be disabled when using libc++.\n\nSo duplicate every current clang job for libstdc++ testing.\n\nLink: https://gitlab.freedesktop.org/camera/libcamera/-/issues/315\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\nMaybe it's not worth duplicating each clang job, but adding at least one\n(clang, libstdc++) build is probably worth it.\n---\n .gitlab-ci/meson/libstdc++.native |  3 +++\n gitlab-ci.yml                     | 36 ++++++++++++++-----------------\n 2 files changed, 19 insertions(+), 20 deletions(-)\n create mode 100644 .gitlab-ci/meson/libstdc++.native\n\n--\n2.53.0",
    "diff": "diff --git a/.gitlab-ci/meson/libstdc++.native b/.gitlab-ci/meson/libstdc++.native\nnew file mode 100644\nindex 0000000..3116043\n--- /dev/null\n+++ b/.gitlab-ci/meson/libstdc++.native\n@@ -0,0 +1,3 @@\n+[built-in options]\n+cpp_args = ['-stdlib=libstdc++']\n+cpp_link_args = ['-stdlib=libstdc++']\ndiff --git a/gitlab-ci.yml b/gitlab-ci.yml\nindex 6256335..e51266c 100644\n--- a/gitlab-ci.yml\n+++ b/gitlab-ci.yml\n@@ -29,7 +29,12 @@ variables:\n   # clang fails to link with ASan if --no-undefined is enabled.\n   MESON_CLANG_OPTIONS: >-\n     -D b_lundef=false\n+  MESON_CLANG_LIBCPP_OPTIONS: >-\n+    ${MESON_CLANG_OPTIONS}\n     --native-file $CI_PROJECT_DIR/.gitlab-ci/meson/libc++.native\n+  MESON_CLANG_LIBSTDCPP_OPTIONS: >-\n+    ${MESON_CLANG_OPTIONS}\n+    --native-file $CI_PROJECT_DIR/.gitlab-ci/meson/libstdc++.native\n   PACKAGES: >-\n     ca-certificates\n     git\n@@ -194,21 +199,14 @@ build-full:debian:12:\n           ${MESON_ALL_OPTIONS}\n           -D b_sanitize=none\n       - ARCH: amd64\n-        BUILD_TYPE: debug\n-        CC: clang\n-        CXX: clang++\n-        MESON_OPTIONS: >-\n-          ${MESON_ALL_OPTIONS}\n-          ${MESON_CLANG_OPTIONS}\n-          -D qcam=disabled\n-      - ARCH: amd64\n-        BUILD_TYPE: release\n+        BUILD_TYPE:\n+          - debug\n+          - release\n         CC: clang\n         CXX: clang++\n-        MESON_OPTIONS: >-\n-          ${MESON_ALL_OPTIONS}\n-          ${MESON_CLANG_OPTIONS}\n-          -D qcam=disabled\n+        MESON_OPTIONS:\n+          - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBCPP_OPTIONS} -D qcam=disabled\n+          - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBSTDCPP_OPTIONS}\n\n build-full:debian:12:as-subproject:\n   extends:\n@@ -256,13 +254,11 @@ build-full:debian:13:\n       - ARCH: amd64\n         CC: clang\n         CXX: clang++\n-        MESON_OPTIONS: >-\n-          ${MESON_ALL_OPTIONS}\n-          ${MESON_CLANG_OPTIONS}\n-          -D qcam=disabled\n-          -D cpp_debugstl=false\n-        # `cpp_debugstl=false` needed approximately between meson 1.4.0 and 1.9.3\n-        # with clang 18 or later due to https://github.com/mesonbuild/meson/issues/13812\n+        MESON_OPTIONS:\n+          # `cpp_debugstl=false` needed approximately between meson 1.4.0 and 1.9.3\n+          # with clang 18 or later due to https://github.com/mesonbuild/meson/issues/13812\n+          - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBCPP_OPTIONS} -D qcam=disabled -D cpp_debugstl=false\n+          - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBSTDCPP_OPTIONS}\n       - ARCH: armhf\n       - ARCH: arm64\n\n",
    "prefixes": [
        "libcamera-ci",
        "RFC",
        "v1"
    ]
}