Patch Detail
Show a patch.
GET /api/patches/25622/?format=api
{ "id": 25622, "url": "https://patchwork.libcamera.org/api/patches/25622/?format=api", "web_url": "https://patchwork.libcamera.org/patch/25622/", "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": "<20260105093130.1177121-1-barnabas.pocze@ideasonboard.com>", "date": "2026-01-05T09:31:30", "name": "[libcamera-ci,v1] Force libc++ with meson native files", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "f3ccdae7025d6069e399690f6a8e2e5ba995e5c0", "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/25622/mbox/", "series": [ { "id": 5681, "url": "https://patchwork.libcamera.org/api/series/5681/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5681", "date": "2026-01-05T09:31:30", "name": "[libcamera-ci,v1] Force libc++ with meson native files", "version": 1, "mbox": "https://patchwork.libcamera.org/series/5681/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/25622/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/25622/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 3DA3EBDCBF\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 5 Jan 2026 09:31:35 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id DCD7F61FBC;\n\tMon, 5 Jan 2026 10:31:34 +0100 (CET)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3B3AD61F84\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 5 Jan 2026 10:31:34 +0100 (CET)", "from pb-laptop.local (185.221.143.114.nat.pool.zt.hu\n\t[185.221.143.114])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 35DEC10D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 5 Jan 2026 10:31:14 +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=\"LJeVTctg\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1767605474;\n\tbh=jJ5v41v5UlXkgqH/naKKn9XrqbAf5sYCShlR12LlRvg=;\n\th=From:To:Subject:Date:From;\n\tb=LJeVTctghJUkGpLSsd2RsQA5oxOnzBfLp7VzGsrOlppKPsd1saAT95XN8paVV4ABy\n\tlVlz13s0C4tg93VmaZRA2I7O5bLPtKqftQO+JHwqhoxpRz4j/GPBzmaoIuvsuhT3J6\n\tgIB6Y3h09S3ek1otL+X5hZqCK2+LAWIib8r7D9xk=", "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Subject": "[libcamera-ci] [PATCH v1] Force libc++ with meson native files", "Date": "Mon, 5 Jan 2026 10:31:30 +0100", "Message-ID": "<20260105093130.1177121-1-barnabas.pocze@ideasonboard.com>", "X-Mailer": "git-send-email 2.52.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 libcamera's meson scripts force the usage of libc++ if clang\nis detected as the compiler. This is not ideal because it cannot be\noverridden by the user. So instead of depending on this behaviour\nfor libc++ testing, use meson native files to force the use of\nlibc++ with clang.\n\nUnfortunately on debian 13, due a meson bug, a workaround is needed\nto avoid a macro redefinition error[0].\n\n[0]: https://github.com/mesonbuild/meson/issues/13812\n\nLink: https://gitlab.freedesktop.org/camera/libcamera/-/issues/226\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\n .gitlab-ci/meson/clang.native | 3 +++\n .gitlab-ci/meson/libc++.native | 3 +++\n gitlab-ci.yml | 4 ++++\n 3 files changed, 10 insertions(+)\n create mode 100644 .gitlab-ci/meson/clang.native\n create mode 100644 .gitlab-ci/meson/libc++.native\n\n--\n2.52.0", "diff": "diff --git a/.gitlab-ci/meson/clang.native b/.gitlab-ci/meson/clang.native\nnew file mode 100644\nindex 0000000..f00b0f0\n--- /dev/null\n+++ b/.gitlab-ci/meson/clang.native\n@@ -0,0 +1,3 @@\n+[binaries]\n+c = ['clang']\n+cpp = ['clang++']\ndiff --git a/.gitlab-ci/meson/libc++.native b/.gitlab-ci/meson/libc++.native\nnew file mode 100644\nindex 0000000..9c99d5a\n--- /dev/null\n+++ b/.gitlab-ci/meson/libc++.native\n@@ -0,0 +1,3 @@\n+[built-in options]\n+cpp_args = ['-stdlib=libc++']\n+cpp_link_args = ['-stdlib=libc++']\ndiff --git a/gitlab-ci.yml b/gitlab-ci.yml\nindex 262d519..2e2c4c9 100644\n--- a/gitlab-ci.yml\n+++ b/gitlab-ci.yml\n@@ -30,6 +30,8 @@ variables:\n # clang fails to link with ASan if --no-undefined is enabled.\n MESON_CLANG_OPTIONS: >-\n -D b_lundef=false\n+ --native-file $CI_PROJECT_DIR/.gitlab-ci/meson/clang.native\n+ --native-file $CI_PROJECT_DIR/.gitlab-ci/meson/libc++.native\n PACKAGES: >-\n ca-certificates\n git\n@@ -322,6 +324,8 @@ build-full:debian:13:\n ${MESON_ALL_OPTIONS}\n ${MESON_CLANG_OPTIONS}\n -D qcam=disabled\n+ -D cpp_debugstl=false\n+ # `cpp_debugstl=false` needed due to https://github.com/mesonbuild/meson/issues/13812\n\n build-full:arch:\n extends:\n", "prefixes": [ "libcamera-ci", "v1" ] }