get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221385,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221385/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260409110310.3641004-1-bernd@kuhls.net/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260409110310.3641004-1-bernd@kuhls.net>",
    "list_archive_url": null,
    "date": "2026-04-09T11:03:09",
    "name": "[1/2] package/snappy: enable rtti",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "aeeb72464ef92c8da90f65184074bd5b3fac53bd",
    "submitter": {
        "id": 86624,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/86624/?format=api",
        "name": "Bernd Kuhls",
        "email": "bernd@kuhls.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260409110310.3641004-1-bernd@kuhls.net/mbox/",
    "series": [
        {
            "id": 499275,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/499275/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=499275",
            "date": "2026-04-09T11:03:09",
            "name": "[1/2] package/snappy: enable rtti",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499275/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221385/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221385/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=ra+0JdOd;\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 4frxqw2Ls5z1xy1\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Thu, 09 Apr 2026 21:03:22 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 719DA4109A;\n\tThu,  9 Apr 2026 11:03:19 +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 LgYUPnTQNrUW; Thu,  9 Apr 2026 11:03:16 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id C3EA541095;\n\tThu,  9 Apr 2026 11:03:16 +0000 (UTC)",
            "from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n by lists1.osuosl.org (Postfix) with ESMTP id CF952237\n for <buildroot@buildroot.org>; Thu,  9 Apr 2026 11:03:15 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id C10BA829DC\n for <buildroot@buildroot.org>; Thu,  9 Apr 2026 11:03:15 +0000 (UTC)",
            "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id j_8Vu5fOGnjy for <buildroot@buildroot.org>;\n Thu,  9 Apr 2026 11:03:14 +0000 (UTC)",
            "from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57])\n by smtp1.osuosl.org (Postfix) with ESMTPS id E8458829BB\n for <buildroot@buildroot.org>; Thu,  9 Apr 2026 11:03:13 +0000 (UTC)",
            "from fli4l.lan.fli4l (p4fd6ca66.dip0.t-ipconnect.de\n [79.214.202.102])\n by dd20012.kasserver.com (Postfix) with ESMTPSA id 74297A4C0A4D;\n Thu,  9 Apr 2026 13:03:10 +0200 (CEST)",
            "from bruckner.lan.fli4l ([192.168.1.1]:49956)\n by fli4l.lan.fli4l with esmtp (Exim 4.99.1)\n (envelope-from <bernd@kuhls.net>) id 1wAnAE-000000003uF-1U2W;\n Thu, 09 Apr 2026 11:03:10 +0000"
        ],
        "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 C3EA541095",
            "OpenDKIM Filter v2.11.0 smtp1.osuosl.org E8458829BB"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1775732596;\n\tbh=NT9nD4FCuweQ+IsNkZMp2HtI4AZpiPrxw0yIJarrxx8=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=ra+0JdOdwO81RpI79AVp5Vo5XNT9eQT5ktBj3ntlGKAXVx22gQXP8Dl0ziAVU84DO\n\t Wqq+5EIxGfah+U58jlLWT6LNmYE8AOdi/rTqAw1boVEH0O2evihtSd0X3HX+MeM0eq\n\t die1GeoTc4uYQY0OF6IC/l4viNafyZa70JsXSNJBfw3rD1OpLLDJdGcAYytap6EuYe\n\t worcnPm85van8AbN9iM3BA+dU6ZBXYFW0fST9LEWK/xtOjfe1IHOPehyOHsdzN54Tn\n\t m6UC4zr3r22WOqH7k3jfALzmjUoKdT71jlJ/uHTxz7TvRPGmPFYfacMWTpSr0IZjCL\n\t AD7+TSYlKUhwg==",
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=85.13.140.57;\n helo=dd20012.kasserver.com; envelope-from=bernd@kuhls.net;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp1.osuosl.org E8458829BB",
        "From": "Bernd Kuhls <bernd@kuhls.net>",
        "To": "buildroot@buildroot.org",
        "Cc": "Fabrice Fontaine <fontaine.fabrice@gmail.com>",
        "Date": "Thu,  9 Apr 2026 13:03:09 +0200",
        "Message-ID": "<20260409110310.3641004-1-bernd@kuhls.net>",
        "X-Mailer": "git-send-email 2.47.3",
        "MIME-Version": "1.0",
        "X-Spamd-Bar": "+",
        "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=kuhls.net;\n s=kas202511301023; t=1775732590;\n bh=fKafc9RnwyKD+LNCTE4nI9Ub9DwyRZQ0nErz8tc02UE=;\n h=From:To:Cc:Subject:Date:From;\n b=C+nAK1fC9xMA3fQW5y2rFDUPXFuxrhbzRVB+nTt9d50oFjAv/QxeXZWALbSEKiPu1\n VY1QgprOqKMSs+5y4qZ6M4n2eSybd/ZVfr7Km5tunPhjXXNa/FG0R22uBgkmoOuuUm\n 9vEQdBHJUecaY9H1xn7okSn5JNZMF/tPx0Xk42xZcNsNrEGPujGT/222gBCouEcn8L\n /FyqKjtz/iBe5TgmV7KeySUJAfQEw3Lwe9BpED2mqKpHEeUW1900YBth4BanEJ/iU0\n +Oseaz9iP676wL5ErBecnHhp1tkUqW+jLgs9Reuzn1mgAn87FvPXvhrXKHUwA6BCgs\n /7C2RwYW1YrMQ==",
        "X-Mailman-Original-Authentication-Results": [
            "smtp1.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=kuhls.net",
            "smtp1.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256\n header.s=kas202511301023 header.b=C+nAK1fC"
        ],
        "Subject": "[Buildroot] [PATCH 1/2] package/snappy: enable rtti",
        "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>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@buildroot.org",
        "Sender": "\"buildroot\" <buildroot-bounces@buildroot.org>"
    },
    "content": "Added patch to enable rtti, needed for upcoming bump of rocksdb to fix\nlink error:\n\noutput/per-package/rocksdb/host/bin/../lib/gcc/x86_64-buildroot-linux-\ngnu/15.2.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:\n librocksdb.so.10.7.5: undefined reference to `typeinfo for snappy::Sink'\n\nSigned-off-by: Bernd Kuhls <bernd@kuhls.net>\n---\n .../0002-add-option-to-enable-rtti.patch      | 52 +++++++++++++++++++\n package/snappy/snappy.mk                      |  5 +-\n 2 files changed, 56 insertions(+), 1 deletion(-)\n create mode 100644 package/snappy/0002-add-option-to-enable-rtti.patch",
    "diff": "diff --git a/package/snappy/0002-add-option-to-enable-rtti.patch b/package/snappy/0002-add-option-to-enable-rtti.patch\nnew file mode 100644\nindex 0000000000..e82328b0ff\n--- /dev/null\n+++ b/package/snappy/0002-add-option-to-enable-rtti.patch\n@@ -0,0 +1,52 @@\n+From 376f14b5933e91d08ade6a503fdd657a6e01a149 Mon Sep 17 00:00:00 2001\n+From: Max <tchristy001@outlook.com>\n+Date: Wed, 24 Nov 2021 12:16:23 -0600\n+Subject: [PATCH] add option to enable rtti, set default to current behavior\n+\n+Upstream: https://github.com/google/snappy/pull/147 (rejected)\n+\n+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>\n+[rebased for 1.2.2]\n+---\n+ CMakeLists.txt | 14 ++++++++++----\n+ 1 file changed, 10 insertions(+), 4 deletions(-)\n+\n+diff --git a/CMakeLists.txt b/CMakeLists.txt\n+index 6eef485..aefd35b 100644\n+--- a/CMakeLists.txt\n++++ b/CMakeLists.txt\n+@@ -53,8 +53,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL \"MSVC\")\n+   add_definitions(-D_HAS_EXCEPTIONS=0)\n+ \n+   # Disable RTTI.\n+-  string(REGEX REPLACE \"/GR\" \"\" CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS}\")\n+-  set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} /GR-\")\n++  if(NOT SNAPPY_ENABLE_RTTI)\n++    string(REGEX REPLACE \"/GR\" \"\" CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS}\")\n++    set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} /GR-\")\n++  endif(SNAPPY_ENABLE_RTTI)\n+ else(MSVC)\n+   # Use -Wall for clang and gcc.\n+   if(NOT CMAKE_CXX_FLAGS MATCHES \"-Wall\")\n+@@ -78,8 +80,10 @@ else(CMAKE_CXX_COMPILER_ID STREQUAL \"MSVC\")\n+   set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -fno-exceptions\")\n+ \n+   # Disable RTTI.\n+-  string(REGEX REPLACE \"-frtti\" \"\" CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS}\")\n+-  set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -fno-rtti\")\n++  if(NOT SNAPPY_ENABLE_RTTI)\n++    string(REGEX REPLACE \"-frtti\" \"\" CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS}\")\n++    set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -fno-rtti\")\n++  endif(SNAPPY_ENABLE_RTTI)\n+ endif(MSVC)\n+ \n+ # BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make\n+@@ -98,6 +102,8 @@ option(SNAPPY_REQUIRE_AVX2 \"Target processors with AVX2 support.\" OFF)\n+ \n+ option(SNAPPY_INSTALL \"Install Snappy's header and library\" ON)\n+ \n++option(SNAPPY_ENABLE_RTTI \"Enable RTTI for Snappy's library\" OFF)\n++\n+ include(TestBigEndian)\n+ test_big_endian(SNAPPY_IS_BIG_ENDIAN)\n+ \ndiff --git a/package/snappy/snappy.mk b/package/snappy/snappy.mk\nindex 57c688b673..cd61bbb078 100644\n--- a/package/snappy/snappy.mk\n+++ b/package/snappy/snappy.mk\n@@ -10,6 +10,9 @@ SNAPPY_LICENSE = BSD-3-Clause\n SNAPPY_LICENSE_FILES = COPYING\n SNAPPY_CPE_ID_VENDOR = google\n SNAPPY_INSTALL_STAGING = YES\n-SNAPPY_CONF_OPTS = -DSNAPPY_BUILD_BENCHMARKS=OFF -DSNAPPY_BUILD_TESTS=OFF\n+SNAPPY_CONF_OPTS = \\\n+\t-DSNAPPY_BUILD_BENCHMARKS=OFF \\\n+\t-DSNAPPY_BUILD_TESTS=OFF \\\n+\t-DSNAPPY_ENABLE_RTTI=ON\n \n $(eval $(cmake-package))\n",
    "prefixes": [
        "1/2"
    ]
}