get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196938,
    "url": "http://patchwork.ozlabs.org/api/patches/2196938/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260216-openscap_cpp-v2-1-a61c7bb50837@bootlin.com/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260216-openscap_cpp-v2-1-a61c7bb50837@bootlin.com>",
    "list_archive_url": null,
    "date": "2026-02-16T16:13:05",
    "name": "[v2] package/openscap: add patch to enforce project as C project",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "64ce4f22abb4f77a0c420d736c38c7248cb67ecc",
    "submitter": {
        "id": 85775,
        "url": "http://patchwork.ozlabs.org/api/people/85775/?format=api",
        "name": "Alexis Lothoré",
        "email": "alexis.lothore@bootlin.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260216-openscap_cpp-v2-1-a61c7bb50837@bootlin.com/mbox/",
    "series": [
        {
            "id": 492326,
            "url": "http://patchwork.ozlabs.org/api/series/492326/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=492326",
            "date": "2026-02-16T16:13:05",
            "name": "[v2] package/openscap: add patch to enforce project as C project",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492326/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196938/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196938/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@buildroot.org>",
        "X-Original-To": [
            "incoming-buildroot@patchwork.ozlabs.org",
            "buildroot@buildroot.org"
        ],
        "Delivered-To": [
            "patchwork-incoming-buildroot@legolas.ozlabs.org",
            "buildroot@buildroot.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=C/4corPq;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=140.211.166.137; helo=smtp4.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fF79t08Zqz1xwF\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Tue, 17 Feb 2026 03:13:38 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id E4CF640A06;\n\tMon, 16 Feb 2026 16:13:35 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id OgNeDeI1SorM; Mon, 16 Feb 2026 16:13:35 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id D9B7640A0B;\n\tMon, 16 Feb 2026 16:13:34 +0000 (UTC)",
            "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists1.osuosl.org (Postfix) with ESMTP id 053581EB\n for <buildroot@buildroot.org>; Mon, 16 Feb 2026 16:13:33 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id EA60940A00\n for <buildroot@buildroot.org>; Mon, 16 Feb 2026 16:13:32 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id 5yEkKT7ZU7RK for <buildroot@buildroot.org>;\n Mon, 16 Feb 2026 16:13:32 +0000 (UTC)",
            "from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56])\n by smtp4.osuosl.org (Postfix) with ESMTPS id BB383409E0\n for <buildroot@buildroot.org>; Mon, 16 Feb 2026 16:13:31 +0000 (UTC)",
            "from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n by smtpout-02.galae.net (Postfix) with ESMTPS id BF7411A0FDB\n for <buildroot@buildroot.org>; Mon, 16 Feb 2026 16:13:28 +0000 (UTC)",
            "from mail.galae.net (mail.galae.net [212.83.136.155])\n by smtpout-01.galae.net (Postfix) with ESMTPS id 94CE4606CF\n for <buildroot@buildroot.org>; Mon, 16 Feb 2026 16:13:28 +0000 (UTC)",
            "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 5DBD610369167; Mon, 16 Feb 2026 17:13:26 +0100 (CET)"
        ],
        "X-Virus-Scanned": [
            "amavis at osuosl.org",
            "amavis at osuosl.org"
        ],
        "X-Comment": "SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ",
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 smtp4.osuosl.org D9B7640A0B",
            "OpenDKIM Filter v2.11.0 smtp4.osuosl.org BB383409E0"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1771258414;\n\tbh=YMJSC3SX/JA2DGh9sIpuAbLGzDJcKRZSvsGEV4RAgus=;\n\th=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From:Reply-To:From;\n\tb=C/4corPqy1/r7ThOeuYzEaBOCkc0tOemzGl7FI8/EVcMzwqTNXD/M4DzNxSA4ZZh2\n\t iqwLEn2tx0PHU/50acI2g6cXMEWh0vgSZvpoCO6uJ1hLW4Iyrkd7bz83KWCJxn6ut/\n\t 44Zz0EUUtQFEJjGAmJooNDqFBr263G9UEXovo6rloyo3Cp5wnFTDI5eIcI0f2BlFqS\n\t 6+U7TPblCcs+s4EADk4Os4Zg12HtvF+CQoRZ493x+V4w1iaPD4iLWNAX7L+FuM981b\n\t aEe3XLIiZmdyJN4qiVTub8nYwdxHBqrlUx+LvN6nSEAGy+42j/akzXoISAsk/ZGd2f\n\t t1eBSS1Xk+O1A==",
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=185.246.84.56;\n helo=smtpout-02.galae.net; envelope-from=alexis.lothore@bootlin.com;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp4.osuosl.org BB383409E0",
        "Date": "Mon, 16 Feb 2026 17:13:05 +0100",
        "MIME-Version": "1.0",
        "Message-Id": "<20260216-openscap_cpp-v2-1-a61c7bb50837@bootlin.com>",
        "X-B4-Tracking": "v=1; b=H4sIAAAAAAAC/3XMQQrCMBCF4auUWRtJ0qZVV95DirTJ1A5oJiQlK\n KV3N3bv8n/wvhUSRsIEl2qFiJkSsS+hDxXYefAPFORKg5a6lVq1ggP6ZIdwtyEIg42sjevcOJ2\n gXELEid47d+tLz5QWjp9dz+q3/oGyEkrUdadVc3aDGeV1ZF6e5I+WX9Bv2/YFTIRjZqoAAAA=",
        "X-Change-ID": "20260216-openscap_cpp-5e4035d7dbf8",
        "To": "buildroot@buildroot.org",
        "Cc": "Thomas Petazzoni <thomas.petazzoni@bootlin.com>, =?utf-8?q?Alexis_Lothor?=\n\t=?utf-8?q?=C3=A9?= <alexis.lothore@bootlin.com>",
        "X-Mailer": "b4 0.14.3",
        "X-Last-TLS-Session-Version": "TLSv1.3",
        "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bootlin.com; s=dkim;\n t=1771258408; h=from:subject:date:message-id:to:cc:mime-version:content-type:\n content-transfer-encoding; bh=EGEuWJrybdO/2z9XMzph3gMuXp3RGjAgxF4MT8VG9aY=;\n b=sQB1rnuyps1ujfotUNKQn+FFVSU5EHYq/Q2hjGlvVZc8/OSP9vD+Qhg38PTan8r+jjz8aR\n a/F9C8NpvtzCKrY/5QhFYsaBmwpxT8ngHU1jsueWcsVbrFSQxDQaqckTNLMN46DLp9d2As\n o7aDYqeRSIRL9+/9WrdgimWLfS/UtOZC5jjaHxUZ7mkcmjEpf180DQsUNp/8FL0OuMtc/e\n 7HyzbuaDJMY/KGGa+alQkY8tx528IEG5WYxIdJzkOTLjrhoMDHQBHvfh6ic27jYGiuTW34\n 4eUoa+HT5+6R7NBzCtNPqGW6Q8xXPxGoGpXn5u8j+muWkkMND7L/l+J8jIODPw==",
        "X-Mailman-Original-Authentication-Results": [
            "smtp4.osuosl.org;\n dmarc=pass (p=reject dis=none)\n header.from=bootlin.com",
            "smtp4.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=sQB1rnuy"
        ],
        "Subject": "[Buildroot] [PATCH v2] package/openscap: add patch to enforce\n project as C project",
        "X-BeenThere": "buildroot@buildroot.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.buildroot.org>",
        "List-Unsubscribe": "<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.buildroot.org/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@buildroot.org>",
        "List-Help": "<mailto:buildroot-request@buildroot.org?subject=help>",
        "List-Subscribe": "<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>",
        "From": "=?utf-8?q?Alexis_Lothor=C3=A9_via_buildroot?= <buildroot@buildroot.org>",
        "Reply-To": "=?utf-8?q?Alexis_Lothor=C3=A9?= <alexis.lothore@bootlin.com>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "buildroot-bounces@buildroot.org",
        "Sender": "\"buildroot\" <buildroot-bounces@buildroot.org>"
    },
    "content": "When the toolchain involved in openscap build does not support C++, the\nconfigure step fails with the following error:\n\n  -- Detecting CXX compiler ABI info\n  -- Detecting CXX compiler ABI info - failed\n  -- Check for working CXX compiler: /bin/false\n  -- Check for working CXX compiler: /bin/false - broken\n  CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:73 (message):\n    The C++ compiler\n\n      \"/bin/false\"\n\n    is not able to compile a simple test program.\n\n    It fails with the following output:\n\n      Change Dir: '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n\n      Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_1834b/fast\n      make[1]: Entering directory '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n      /usr/bin/make  -f CMakeFiles/cmTC_1834b.dir/build.make CMakeFiles/cmTC_1834b.dir/build\n      make[2]: Entering directory '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n      Building CXX object CMakeFiles/cmTC_1834b.dir/testCXXCompiler.cxx.o /bin/false    -o CMakeFiles/cmTC_1834b.dir/testCXXCompiler.cxx.o -c /home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI/testCXXCompiler.cxx\n      make[2]: *** [CMakeFiles/cmTC_1834b.dir/build.make:81: CMakeFiles/cmTC_1834b.dir/testCXXCompiler.cxx.o] Error 1\n      make[2]: Leaving directory '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n      make[1]: *** [Makefile:134: cmTC_1834b/fast] Error 2\n      make[1]: Leaving directory '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n\n    CMake will not be able to correctly generate this project.\n  Call Stack (most recent call first):\n    CMakeLists.txt:11 (project)\n\n  -- Configuring incomplete, errors occurred!\n  make: *** [package/pkg-generic.mk:263: /home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/.stamp_configured] Error 1\n  make: Leaving directory '/home/autobuild/autobuild/instance-6/buildroot'\n\nThe openscap project does not contain any C++ file, and so does not need\na C++ capable compiler. Bring the to-be-integrated-upstream patch\nenforcing C language in CMakeLists.txt to prevent this build failure.\n\nFixes: https://autobuild.buildroot.org/results/1fe550ffa79f0a083a450ae03fe067a8ab7336be\nFixes: https://autobuild.buildroot.org/results/e9d52b52658544916022050c78dcb137ca6c97e0\nFixes: https://autobuild.buildroot.org/results/4a9c21763aaddb217ee5f8bb8947faad9767baa3\nSigned-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>\n---\nChanges in v2:\n- fix upstream CMakeLists.txt rather than enabling C++ support in toolchain\n- bring in the to-be-integrated-upstream corresponding patch\n- Link to v1: https://lore.kernel.org/r/20260216-openscap_cpp-v1-1-3372149da5b0@bootlin.com\n---\n .../openscap/0001-set-project-as-c-project.patch   | 78 ++++++++++++++++++++++\n 1 file changed, 78 insertions(+)\n\n\n---\nbase-commit: 78d38d9ddda81d7c6bff9b520656fe4f46f0f692\nchange-id: 20260216-openscap_cpp-5e4035d7dbf8\n\nBest regards,",
    "diff": "diff --git a/package/openscap/0001-set-project-as-c-project.patch b/package/openscap/0001-set-project-as-c-project.patch\nnew file mode 100644\nindex 000000000000..c794fbaf44dc\n--- /dev/null\n+++ b/package/openscap/0001-set-project-as-c-project.patch\n@@ -0,0 +1,78 @@\n+From a742647efd215b682e4cd26b15ac3e580c10ef9f Mon Sep 17 00:00:00 2001\n+From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= <alexis.lothore@bootlin.com>\n+Date: Mon, 16 Feb 2026 13:50:48 +0100\n+Subject: [PATCH] Set project as C project in CMakeLists.txt\n+MIME-Version: 1.0\n+Content-Type: text/plain; charset=UTF-8\n+Content-Transfer-Encoding: 8bit\n+\n+The openscap tool has been recently integrated in the buildroot build\n+system ([1]), which makes the openscap tool buildable for a wide variety\n+or architectures/OSes, with a wide variety of _compilers_. And so when\n+such compilers are not supporting C++ projects (as it is the case with a\n+default buildroot toolchain), the build breaks on the following error\n+(see [2] for an example):\n+\n+  -- Detecting CXX compiler ABI info\n+  -- Detecting CXX compiler ABI info - failed\n+  -- Check for working CXX compiler: /bin/false\n+  -- Check for working CXX compiler: /bin/false - broken\n+  CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:73 (message):\n+    The C++ compiler\n+\n+      \"/bin/false\"\n+\n+    is not able to compile a simple test program.\n+\n+    It fails with the following output:\n+\n+      Change Dir: '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n+\n+      Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_1834b/fast\n+      make[1]: Entering directory '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n+      /usr/bin/make  -f CMakeFiles/cmTC_1834b.dir/build.make CMakeFiles/cmTC_1834b.dir/build\n+      make[2]: Entering directory '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n+      Building CXX object CMakeFiles/cmTC_1834b.dir/testCXXCompiler.cxx.o\n+      /bin/false    -o CMakeFiles/cmTC_1834b.dir/testCXXCompiler.cxx.o -c /home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI/testCXXCompiler.cxx\n+      make[2]: *** [CMakeFiles/cmTC_1834b.dir/build.make:81: CMakeFiles/cmTC_1834b.dir/testCXXCompiler.cxx.o] Error 1\n+      make[2]: Leaving directory '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n+      make[1]: *** [Makefile:134: cmTC_1834b/fast] Error 2\n+      make[1]: Leaving directory '/home/autobuild/autobuild/instance-6/output-1/build/openscap-1.3.12/buildroot-build/CMakeFiles/CMakeScratch/TryCompile-tUydqI'\n+\n+    CMake will not be able to correctly generate this project.\n+  Call Stack (most recent call first):\n+    CMakeLists.txt:11 (project)\n+\n+openscap does not have any C++ code to build, so restricting builds to\n+toolchains supporting C++ is overconstraining, the configuration step\n+should rather not try to check C++ support.\n+\n+Enforce the project as a C project in CMakeLists.txt to make sure not to\n+test C++ features on the used toolchain.\n+\n+[1] https://buildroot.org/\n+[2] https://autobuild.buildroot.org/results/1fe550ffa79f0a083a450ae03fe067a8ab7336be/build-end.log\n+\n+Upstream: https://github.com/OpenSCAP/openscap/pull/2312\n+[patch slightly adapted to be applicable on v1.3.12]\n+Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>\n+---\n+ CMakeLists.txt | 2 +-\n+ 1 file changed, 1 insertion(+), 1 deletion(-)\n+\n+diff --git a/CMakeLists.txt b/CMakeLists.txt\n+index cb13debb47cf..05b054327951 100644\n+--- a/CMakeLists.txt\n++++ b/CMakeLists.txt\n+@@ -8,7 +8,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)\n+ \t\t\"MinSizeRel\" \"RelWithDebInfo\")\n+ endif()\n+ \n+-project(\"openscap\")\n++project(\"openscap\" C)\n+ set(OPENSCAP_VERSION_MAJOR \"1\")\n+ set(OPENSCAP_VERSION_MINOR \"3\")\n+ set(OPENSCAP_VERSION_PATCH \"12\")\n+-- \n+2.53.0\n+\n",
    "prefixes": [
        "v2"
    ]
}