get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224136,
    "url": "http://patchwork.ozlabs.org/api/patches/2224136/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260416225157.25398-1-fl@n621.de/",
    "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": "<20260416225157.25398-1-fl@n621.de>",
    "list_archive_url": null,
    "date": "2026-04-16T22:51:09",
    "name": "[1/2] package/libnfs: fix build on strict alignment archs",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c017dc5f3f523d56aae82368e6ffbe4e63a2f0ba",
    "submitter": {
        "id": 69614,
        "url": "http://patchwork.ozlabs.org/api/people/69614/?format=api",
        "name": "Florian Larysch",
        "email": "fl@n621.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260416225157.25398-1-fl@n621.de/mbox/",
    "series": [
        {
            "id": 500213,
            "url": "http://patchwork.ozlabs.org/api/series/500213/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=500213",
            "date": "2026-04-16T22:51:10",
            "name": "[1/2] package/libnfs: fix build on strict alignment archs",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500213/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224136/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224136/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=lPxaRSDl;\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 4fxYDX4l2Jz1yCv\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Fri, 17 Apr 2026 08:52:12 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 123B581214;\n\tThu, 16 Apr 2026 22:52:08 +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 P_Tpc1T_Tp8l; Thu, 16 Apr 2026 22:52:07 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id A1FA481211;\n\tThu, 16 Apr 2026 22:52:06 +0000 (UTC)",
            "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n by lists1.osuosl.org (Postfix) with ESMTP id 7ED944E0\n for <buildroot@buildroot.org>; Thu, 16 Apr 2026 22:52:04 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id 6D54781211\n for <buildroot@buildroot.org>; Thu, 16 Apr 2026 22:52:04 +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 axrQjqcbGACo for <buildroot@buildroot.org>;\n Thu, 16 Apr 2026 22:52:03 +0000 (UTC)",
            "from nyx.n621.de (v4gw.hekate.n621.de [136.243.2.102])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 425CE81210\n for <buildroot@buildroot.org>; Thu, 16 Apr 2026 22:52:03 +0000 (UTC)",
            "from eos.home.n621.de (localhost [127.0.0.1])\n by nyx.n621.de (Postfix) with ESMTP id 01D1EE00108;\n Fri, 17 Apr 2026 00:51:58 +0200 (CEST)"
        ],
        "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 A1FA481211",
            "OpenDKIM Filter v2.11.0 smtp1.osuosl.org 425CE81210"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1776379926;\n\tbh=kq4dI7pdEfrcveDxO4BVAEYwrO1datEt2EY/BvLuE8o=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=lPxaRSDl5ODZHcEYzCUs0x35Ad0chBtYni5nBgcUurpdV9ptCSsP2C0+d9Z/sjmIW\n\t AK7qirRtjN3eIL8TDv0fhX+kWVgie3FhsSICgpyDQP5uto/OO/6eAu68zCO0H981s8\n\t ABqQy86KSajyYvK6NNPUO1R/mT29Jmgyj5obZbYuUBBil806LFjVONgPDGoqw0F2q2\n\t F7b1nYh/yrtCZYBpxQazJt7H5Ul4Jjaqs5s1mWlkFYdcOZfPJPaxky7pLiHNd0hzoY\n\t yOAi3eIWcNk8gWcAG05O2oDvrPh+85j3fp2Qvwjb24kvtGtr+NgfD0D60dlTeDifxQ\n\t ygtU0d1X4iHVA==",
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=136.243.2.102;\n helo=nyx.n621.de; envelope-from=fl@n621.de; receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp1.osuosl.org 425CE81210",
        "From": "Florian Larysch <fl@n621.de>",
        "To": "buildroot@buildroot.org",
        "Cc": "Florian Larysch <fl@n621.de>",
        "Date": "Fri, 17 Apr 2026 00:51:09 +0200",
        "Message-ID": "<20260416225157.25398-1-fl@n621.de>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=n621.de; s=dkim; t=1776379919;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=o0P8iaG/NBpP4U7i7q1B1FiLfGfvd/0uNkNb3ad+ec0=;\n b=ixtRkwXkhGBxOdjKdZrrkjn9BRAWxCmU7zt0NxYZTtNCSzP2eZERxaSgfxxgaoB2yhMupn\n gjkGfaofnTCnRSQKnenJ+P/Cx+vMElTgIdDZkoU3+Oa1cw8z4rJHTKy93JohY1GNNExuPl\n twzvRDBWfUZezYHOFKNbR+AjDUId1Us=",
        "X-Mailman-Original-Authentication-Results": [
            "smtp1.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=n621.de",
            "smtp1.osuosl.org;\n dkim=pass (1024-bit key,\n unprotected) header.d=n621.de header.i=@n621.de header.a=rsa-sha256\n header.s=dkim header.b=ixtRkwXk"
        ],
        "Subject": "[Buildroot] [PATCH 1/2] package/libnfs: fix build on strict\n alignment archs",
        "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": "Building libnfs fails on targets that have alignment requirements via\n-Wcast-align even though the underlying buffers are sufficiently\naligned. Import the upstream fix that silences those warnings.\n\nFixes: https://autobuild.buildroot.org/results/d7c/d7c0bc5861afdf9bc26906e9abd217bef898fc48\n\nSigned-off-by: Florian Larysch <fl@n621.de>\n---\n ...void-cast-to-allow-compile-for-arm32.patch | 68 +++++++++++++++++++\n 1 file changed, 68 insertions(+)\n create mode 100644 package/libnfs/0003-socket-use-void-cast-to-allow-compile-for-arm32.patch",
    "diff": "diff --git a/package/libnfs/0003-socket-use-void-cast-to-allow-compile-for-arm32.patch b/package/libnfs/0003-socket-use-void-cast-to-allow-compile-for-arm32.patch\nnew file mode 100644\nindex 0000000000..1f71a391e7\n--- /dev/null\n+++ b/package/libnfs/0003-socket-use-void-cast-to-allow-compile-for-arm32.patch\n@@ -0,0 +1,68 @@\n+From c66dc9a65723e610fd02da38471d68b8289eb074 Mon Sep 17 00:00:00 2001\n+From: Rudi Heitbaum <rudi@heitbaum.com>\n+Date: Tue, 14 Jan 2025 14:09:36 +0000\n+Subject: [PATCH] socket: use void cast to allow compile for arm32\n+\n+When compiling for arm32 the error: cast increases required alignment\n+of target type occurs.\n+\n+/lib/socket.c: In function 'rpc_read_from_socket':\n+lib/socket.c:586:49: error: cast increases required alignment of target type [-Werror=cast-align]\n+  586 |                         rpc->rm_xid[1] = ntohl(*(uint32_t *)&buf[0]);\n+      |                                                 ^\n+lib/socket.c:587:61: error: cast increases required alignment of target type [-Werror=cast-align]\n+  587 |                         rpc->pdu = rpc_find_pdu(rpc, ntohl(*(uint32_t *)&buf[0]));\n+      |                                                             ^\n+lib/socket.c:799:35: error: cast increases required alignment of target type [-Werror=cast-align]\n+  799 |                                 *((uint32_t *)rpc->inbuf) = htonl(rpc->rm_xid[1]);\n+      |                                   ^\n+lib/socket.c:861:71: error: cast increases required alignment of target type [-Werror=cast-align]\n+  861 |                                                 const READ3res *res = (READ3res *) rpc->pdu->zdr_decode_buf;\n+      |                                                                       ^\n+\n+cast via (void *) to allow the compile to suceed, as all of the source buffers should be 32bit aligned.\n+\n+Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>\n+\n+Upstream: https://github.com/sahlberg/libnfs/commit/a01d42a0d9682d3e506d3c78680db8c7d158fe88\n+Signed-off-by: Florian Larysch <fl@n621.de>\n+---\n+ lib/socket.c | 8 ++++----\n+ 1 file changed, 4 insertions(+), 4 deletions(-)\n+\n+diff --git a/lib/socket.c b/lib/socket.c\n+index f51ca4d..5b9fce5 100644\n+--- a/lib/socket.c\n++++ b/lib/socket.c\n+@@ -583,8 +583,8 @@ rpc_read_from_socket(struct rpc_context *rpc)\n+ \t\t}\n+ \t\tif (!rpc->is_server_context) {\n+ \t\t\trpc->rm_xid[0] = count;\n+-\t\t\trpc->rm_xid[1] = ntohl(*(uint32_t *)&buf[0]);\n+-\t\t\trpc->pdu = rpc_find_pdu(rpc, ntohl(*(uint32_t *)&buf[0]));\n++\t\t\trpc->rm_xid[1] = ntohl(*(uint32_t *)(void *)&buf[0]);\n++\t\t\trpc->pdu = rpc_find_pdu(rpc, ntohl(*(uint32_t *)(void *)&buf[0]));\n+ \t\t\tif (rpc->pdu == NULL) {\n+ \t\t\t\trpc_set_error(rpc, \"Failed to match incoming PDU/XID.\"\n+ \t\t\t\t\t\t\" Ignoring PDU\");\n+@@ -796,7 +796,7 @@ rpc_read_from_socket(struct rpc_context *rpc)\n+                                 }\n+ \n+                                 /* Copy the next 4 bytes into inbuf */\n+-                                *((uint32_t *)rpc->inbuf) = htonl(rpc->rm_xid[1]);\n++                                *((uint32_t *)(void *)rpc->inbuf) = htonl(rpc->rm_xid[1]);\n+ \n+                                 /* but set inpos to 0, we will update it above\n+                                  * that we have already read these 4 bytes in\n+@@ -858,7 +858,7 @@ rpc_read_from_socket(struct rpc_context *rpc)\n+                                                  * If the READ failed, bail out here as there is no\n+                                                  * data.\n+                                                  */\n+-                                                const READ3res *res = (READ3res *) rpc->pdu->zdr_decode_buf;\n++                                                const READ3res *res = (READ3res *)(void *) rpc->pdu->zdr_decode_buf;\n+                                                 if (res->status != NFS3_OK) {\n+                                                         goto payload_finished;\n+                                                 }\n+-- \n+2.53.0\n+\n",
    "prefixes": [
        "1/2"
    ]
}