get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229080,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229080/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260427190410.101712-1-bernd@kuhls.net/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260427190410.101712-1-bernd@kuhls.net>",
    "date": "2026-04-27T19:04:10",
    "name": "[v2,1/1] package/sqlite: Fix build on riscv32",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1e10fe2fe6972aba033e98d496fde1243a059522",
    "submitter": {
        "id": 86624,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/86624/?format=api",
        "name": "Bernd Kuhls",
        "email": "bernd@kuhls.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260427190410.101712-1-bernd@kuhls.net/mbox/",
    "series": [
        {
            "id": 501705,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501705/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=501705",
            "date": "2026-04-27T19:04:10",
            "name": "[v2,1/1] package/sqlite: Fix build on riscv32",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/501705/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229080/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229080/checks/",
    "tags": {},
    "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=XIKpqHXj;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\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 4g4Cfk2NfRz1xvV\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Tue, 28 Apr 2026 05:04:28 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id DD1F9812D4;\n\tMon, 27 Apr 2026 19:04:25 +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 NeTvRHJZf0cz; Mon, 27 Apr 2026 19:04:22 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id D664E812D5;\n\tMon, 27 Apr 2026 19:04:21 +0000 (UTC)",
            "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by lists1.osuosl.org (Postfix) with ESMTP id D70AE1B8\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 19:04:19 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id BC5046071D\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 19:04:19 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id wgMZcwtZzMDv for <buildroot@buildroot.org>;\n Mon, 27 Apr 2026 19:04:16 +0000 (UTC)",
            "from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57])\n by smtp3.osuosl.org (Postfix) with ESMTPS id 67AD460715\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 19:04:14 +0000 (UTC)",
            "from fli4l.lan.fli4l (p4fd6c5b2.dip0.t-ipconnect.de\n [79.214.197.178])\n by dd20012.kasserver.com (Postfix) with ESMTPSA id 8F03FA4C060E\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 21:04:11 +0200 (CEST)",
            "from bruckner.lan.fli4l ([192.168.1.1]:38564)\n by fli4l.lan.fli4l with esmtp (Exim 4.99.1)\n (envelope-from <bernd@kuhls.net>) id 1wHRFa-000000001sf-2Gl9\n for buildroot@buildroot.org; Mon, 27 Apr 2026 19:04:11 +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 smtp1.osuosl.org D664E812D5",
            "OpenDKIM Filter v2.11.0 smtp3.osuosl.org 67AD460715"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777316661;\n\tbh=4EkvQJ3gAIwy9Xp3zC+Kl17ZWmZJoTriJ6r3n0cW6BA=;\n\th=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=XIKpqHXjkJkCoInWt+C/HQ/o9D5dtCpV88bQGC4ya21byX4MbP2KIUrNVsbBKkJcg\n\t +ehU/iJrwELaXALE4vy4bK6huUIjCJlaJkweYWXjNPmwYQWcdr2KKFDDs64kBGrMS4\n\t QwVyubj89gwQDjhrzsXw1vAU5+lq/TFROrI2APdnP79BsDtyO5hpzE1OPV/L8m1u/R\n\t gT7LxFr4cUbhDsSfNDDZOVHLZGmDGV0dDw8OxyIwmBg4sRNjUxoyEaSDTCO+lobgs9\n\t Xx3/H5DfGg1OXmdGjLvDM+DY/I9mmLfKw+sAzGkcrgbrWary+aRqCA4H7CBzidF3Fi\n\t uIh/1m/ocwOAQ==",
        "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 smtp3.osuosl.org 67AD460715",
        "From": "Bernd Kuhls <bernd@kuhls.net>",
        "To": "buildroot@buildroot.org",
        "Date": "Mon, 27 Apr 2026 21:04:10 +0200",
        "Message-ID": "<20260427190410.101712-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=1777316651;\n bh=s57sCY1dTHeriqxoOAOSZoq5dApBCnMIPDk1r0g3sbg=;\n h=From:To:Subject:Date:From;\n b=M5Y/ZW3OsNfmGZnT5B63okGTlSZ/FSQsiOoUWOCGFQsH4345X4U2j0CHRVG+29UlX\n KG3NQ4y74bxJ3D7Tf/KVlGLVXCBhykQpTzAnrgtxaaHHFKWeAbC/BSO9RJrXQBVEBE\n kuxBGxWhiHW454uWy/SsKin+PWGfW0R18HK0G627XMCSiC0GXbSMq+GwoL6aejBji4\n TzjE0AAGPoHX1Nd/DVMBjhjAM2oTk5rwG0Je6yl6Io9nTPKvL6HJbEX8jlFMw7bwQ7\n 7suSLcfAfQbCCHRD6F55FjLPQOavA7Ykf7FSKKyzotgW1apVN9wWzETFMK8tKPpiG7\n P7Jija4mnLGwA==",
        "X-Mailman-Original-Authentication-Results": [
            "smtp3.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=kuhls.net",
            "smtp3.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=M5Y/ZW3O"
        ],
        "Subject": "[Buildroot] [PATCH v2 1/1] package/sqlite: Fix build on riscv32",
        "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": "Buildroot commit 7cf7140b4832d1281fd352893d3f7cfc92e8eef3 bumped the\npackage from 3.51.3 to 3.53.0. Version 3.52.0 contains upstream commit\nhttps://github.com/sqlite/sqlite/commit/db84cdb747ac926d3f272933386fc6196c40cb19\nwhich added the usage of __uint128_t with a dependency on, among others,\n__riscv. This matches riscv32 and riscv64 but only riscv64 has\n__uint128_t defined.\n\nAdded upstream patch to fix the problem.\n\nFixes:\nhttps://autobuild.buildroot.net/results/a6e/a6e4f391081c8059d93fb5b7bd33e08c57b27dcf/\n\nSigned-off-by: Bernd Kuhls <bernd@kuhls.net>\n---\nv2: replaced patch with upstream commit\n\n ...tion-fix-for-uint128-on-RISCV-32-bit.patch | 70 +++++++++++++++++++\n 1 file changed, 70 insertions(+)\n create mode 100644 package/sqlite/0001-Feature-detection-fix-for-uint128-on-RISCV-32-bit.patch",
    "diff": "diff --git a/package/sqlite/0001-Feature-detection-fix-for-uint128-on-RISCV-32-bit.patch b/package/sqlite/0001-Feature-detection-fix-for-uint128-on-RISCV-32-bit.patch\nnew file mode 100644\nindex 0000000000..5d5a197b1f\n--- /dev/null\n+++ b/package/sqlite/0001-Feature-detection-fix-for-uint128-on-RISCV-32-bit.patch\n@@ -0,0 +1,70 @@\n+From 27e808ff2cdb6541c12793ccaa09949b5898f14b Mon Sep 17 00:00:00 2001\n+From: drh <>\n+Date: Mon, 27 Apr 2026 12:25:36 +0000\n+Subject: [PATCH] Feature detection fix for uint128 on RISCV 32-bit.\n+\n+FossilOrigin-Name: e3f318bf52932460890333c6dcae352ab4b0c943d7be67734649eff1ff9fc9fc\n+\n+Upstream: https://sqlite.org/src/info/e3f318bf52932460\n+\n+Patch created from github repo commit:\n+https://github.com/sqlite/sqlite/commit/27e808ff2cdb6541c12793ccaa09949b5898f14b\n+\n+[Bernd: rebased for \"the amalgamation\"\n+        https://sqlite.org/amalgamation.html]\n+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>\n+---\n+ sqlite3.c    | 17 +++++++++++------\n+ 1 file changed, 11 insertions(+), 6 deletions(-)\n+\n+diff --git a/sqlite3.c b/sqlite3.c\n+index 67e6e2ee03..57b98ad4c9 100644\n+--- a/sqlite3.c\n++++ b/sqlite3.c\n+@@ -458,15 +458,20 @@ u8 sqlite3StrIHash(const char *z){\n+   return h;\n+ }\n+ \n++#if !defined(SQLITE_DISABLE_INTRINSIC)               \\\n++  && (defined(__GNUC__) || defined(__clang__))       \\\n++  && (defined(__x86_64__) || defined(__aarch64__) || \\\n++      (defined(__riscv) && defined(__riscv_xlen) && (__riscv_xlen>32)))\n++#define SQLITE_USE_UINT128\n++#endif\n++\n+ /*\n+ ** Two inputs are multiplied to get a 128-bit result.  Write the\n+ ** lower 64-bits of the result into *pLo, and return the high-order\n+ ** 64 bits.\n+ */\n+ static u64 sqlite3Multiply128(u64 a, u64 b, u64 *pLo){\n+-#if (defined(__GNUC__) || defined(__clang__)) \\\n+-        && (defined(__x86_64__) || defined(__aarch64__) || defined(__riscv)) \\\n+-        && !defined(SQLITE_DISABLE_INTRINSIC)\n++#if defined(SQLITE_USE_UINT128)\n+   __uint128_t r = (__uint128_t)a * b;\n+   *pLo = (u64)r;\n+   return (u64)(r>>64);\n+@@ -500,9 +505,7 @@ static u64 sqlite3Multiply128(u64 a, u64 b, u64 *pLo){\n+ ** The lower 64 bits of A*B are discarded.\n+ */\n+ static u64 sqlite3Multiply160(u64 a, u32 aLo, u64 b, u32 *pLo){\n+-#if (defined(__GNUC__) || defined(__clang__)) \\\n+-        && (defined(__x86_64__) || defined(__aarch64__) || defined(__riscv)) \\\n+-        && !defined(SQLITE_DISABLE_INTRINSIC)\n++#if defined(SQLITE_USE_UINT128)\n+   __uint128_t r = (__uint128_t)a * b;\n+   r += ((__uint128_t)aLo * b) >> 32;\n+   *pLo = (r>>32)&0xffffffff;\n+@@ -540,6 +543,8 @@ static u64 sqlite3Multiply160(u64 a, u32 aLo, u64 b, u32 *pLo){\n+ #endif\n+ }\n+ \n++#undef SQLITE_USE_UINT128\n++\n+ /*\n+ ** Return a u64 with the N-th bit set.\n+ */\n+-- \n+2.47.3\n+\n",
    "prefixes": [
        "v2",
        "1/1"
    ]
}